Linear probes trained on one language model can transfer with mixed success

Train Once, Transfer Where? Better Alignment Does Not Mean Better Probe Transfer

Machine LearningComputation and LanguageCryptography and Security

Summary

Detecting specific behaviors or properties inside large language models usually requires retraining simple classifiers, called probes, on each model. The authors studied if a probe trained on one model’s activations can work well on another without extra labels. They found a simple method transferring probes kept strong performance on many tasks but struggled on some complex safety and evasion tests. Surprisingly, better mathematical alignment between models did not always lead to better probe transfer, and simpler approaches often worked best.

What this means in practice

  • For machine learning engineers: Use read-only probes trained on one model to monitor properties in another without retraining on new labels, easing model updates.
  • For software security teams: Apply cross-model probes to detect prompt injection and unsafe behaviors in deployed language models with fewer retraining needs.

Authors

Engin Deniz Alpman, Hüseyin Oktay Altun

Abstract

Linear probes on large language model activations are cheap monitors for safety, truthfulness, and prompt injection, but normally require retraining when models change. We ask whether a read-only probe trained on one model can transfer to another from unlabeled text. Across six models from four families (Qwen, Gemma, Llama 3.1, OLMo 3; 30 directed pairs), probes mapped via a 600-sentence SQuAD Orthogonal Procrustes rotation retain 95%-99% of matched native above-chance AUROC on input-property tasks (hh-rlhf, XSTest, MATH-500) and fold into a single dot product with zero extra VRAM. Transfer degrades on behavioral sycophancy (where counter-bias drops reflect label disagreement), 4K indirect injection, and adaptive evasion. Two findings stand out. First, a zero-hyperparameter mean-shift (difference-of-means) probe transferred best on all four mechanism tasks and matched or beat source-CV L2-logistic regression. Second, better alignment does not mean better transfer: whitened rotations hurt transfer at $N = 600$, and Ridge, Kernel Ridge, and MLPs beat even Scaled Procrustes in $R^2$ and cosine yet trail in transfer at every $N$ up to 20,000. Multi-source averaging closes 38%-46% of remaining non-ceiling gaps without target labels, and held-out in-domain XSTest calibration yields 4.8% false alarms at 82% unsafe recall.