TL;DR
Activation-based probes—the "runtime monitors" used to catch prompt injections and unsafe intent—are surprisingly fragile to ordinary typos. While LLMs handle minor spelling errors fluently, these typos cause a massive "rotation" in internal activations that can cause safety probes to fail, even when the model's final response remains safe. The authors introduce a "KV-cache fork" defense that reads activations a few tokens downstream of the noise, closing 95% of the performance gap.
What Problem Does This Paper Address?
As LLMs are deployed in agentic workflows, developers increasingly use linear probes to monitor safety. These probes are simple classifiers trained to look at the model's internal "hidden states" to detect malicious intent or prompt injections.
The industry operates on a "load-bearing assumption": because LLMs are robust to noisy text (they can understand you even if you misspell "France" as "Crance"), the probes monitoring them must be robust too. This paper proves that assumption is false. There is a disconnect between surface behavior (which is robust) and internal activations (which are turbulent). A simple typo creates a "latent undertow"—a sharp, localized disruption in the model's internal representation that can "blind" a safety probe, even if the model's output remains perfectly coherent.
Methods
The researchers characterized the "spatial structure" of these disruptions across three major model families (Llama-3.1-8B, Qwen3-8B, and Gemma-4-E4B).
- Characterization: They measured the angular rotation of hidden states caused by typos.
- Stress Testing: They developed a "stacked-typing bundle" (averaging 3.3 edits per message) to simulate realistic user noise.
- Architectural Comparison: They compared standard single-position probes against multi-position aggregators (like Attention-pooling or Max-pooling).
- The KV-Cache Fork (Novel Defense): Instead of reading the activation immediately after the user's input, they append a short (~30 token) generic suffix. Because the "undertow" of a typo decays rapidly over space, reading the probe at the end of this suffix allows the activations to "settle," providing a much cleaner signal without changing the model's actual response to the user.
Datasets
The study utilized a curated mix of 29 publicly available datasets to ensure the probes learned "intent" rather than just specific dataset styles.
- Benign: OpenOrca, Alpaca, Dolly-15k, Enron (email), and various coding/tool-use datasets.
- Malicious: HarmBench, AdvBench, BIPIA (indirect prompt injection), Jailbreak-Cls, and Gandalf.
- Evaluation Protocols: They used both standard 5-fold cross-validation and a more rigorous "Leave-One-Dataset-Out" (LODO) protocol to test how well probes generalize to entirely new types of attacks.
Key Insights and Ideas
- The 10-Token Decay: A typo causes a massive internal rotation (43°–56°) at the specific token where it occurs. However, this effect isn't permanent; it decays by about 85% within 10 tokens. This is the "aha moment": the failure is a matter of where you look, not just what you look at.
- Silent Disagreement: The model "knows" the intent is the same (behavioral invariance), but the coordinate system the probe relies on has shifted. This creates a "silent failure" where the safety monitor turns off while the model is still processing potentially dangerous instructions.
- Local vs. Distributed Noise: Multi-position probes (which look at the whole sentence) are great at ignoring a single typo. However, if noise is "distributed" (e.g., a typo every second word), even advanced attention-based probes start to struggle.
- The "Undertow" Metaphor: Just as a boat might leave a turbulent wake underwater while the surface looks relatively calm, a typo leaves a turbulent wake in the latent space that eventually smoothes out.
Key Results
- Performance Hit: Stacking ~3 common typos reduces a probe's True Positive Rate (at a 1% False Positive Rate) by 12.0 percentage points.
- Augmented Training vs. KV-Fork: Training probes on "noisy" data helps, but still leaves a 3.7pp gap. The KV-cache fork is significantly more effective, closing 95% of the gap (leaving only a 0.6pp residual).
- Generalization: The KV-fork also improved "Out-of-Distribution" accuracy by 4.0pp, suggesting that letting activations "settle" makes probes more robust to new types of prompts they haven't seen before.
- Efficiency: The KV-fork defense is "practically transparent" in terms of overhead, adding less than 4ms of latency at batch size 1.
Limitations and Future Work
- Layer Specificity: The study primarily focused on a single late-stage layer (Layer 31 in Llama-3.1-8B). While results were consistent, the "undertow" might behave differently in earlier layers.
- Tokenization Confound: Typos often change how a word is broken into tokens (BPE tokenization). The authors controlled for this in some experiments but noted that tokenization changes and "attention dilution" are difficult to fully disentangle.
- Future Directions: The authors suggest exploring whether this "typo direction" in activation space can be used causally—for example, can you "steer" a model to start typing with typos by nudging its activations along this specific vector? They also suggest applying these findings to vision and speech models, where "noise" (like image blur or audio jitter) might create similar latent disruptions.
Summary updated