Explore the research collection
1 entry · Follow this search
- Code
Watching: Can Language Models Detect Read-Only Probes? (SauersML)
Fine-tuning only the last two layers of Qwen3-8B teaches the model to detect when a read-only probe is capturing its activations — but only under torch.compile. The probe forces the compiler to split layer 14's kernel into two with BF16 rounding in between (~2.5% change in the user token's hidden state), and the model learns to recognize this: 128/128 correct on new prompts, separation ~27 nats. The key control shows it reads the compiler's change, not the observer — a two-kernel layer with no probe also gets "Yes", while a no-kernel-split copying probe is never learned. One attention head (layer 35 head 6) carries ~99% of the effect via a cancellation trick that subtracts away the normal component of the user-token key. The same recipe extends: detection of HF output_hidden_states reads (80% held-out), distinguishing HF Trainer training steps from vLLM/SGLang serving (66/68 prompts), and a logit-lens message ("I can see you watching me") that appears only when hidden states are read from the compiled model. Detection is GPU-specific: perfect on the training L40S, 52–77% on four other NVIDIA GPUs, backwards on H100/A100. Untrained models cannot detect the probe. Caveats: GPU-bound exactness; thread/README are AI-documented ("written by Opus 5.5 and GPT-6 Astra"); repo code license unstated.