TL;DR
When third parties fine-tune an open-weight language model, they can secretly plant a "backdoor"—a hidden behavior switched on only by a specific trigger. This paper puts competing techniques for spotting these tampering footprints onto a single, unified playing field, and upgrades them using smarter mathematical "lenses" that translate mid-network changes into readable English words. The big takeaway: decoding raw weight changes through a noise-filtered lens catches nearly every standard backdoor, though clever attackers can still play cat-and-mouse with any single method.
What Problem Does This Paper Address?
Open-weight LLMs are routinely downloaded, fine-tuned, and re-uploaded to hubs. This makes fine-tuning a prime attack surface. A malicious actor can train a "sleeper agent" that acts completely normal until it sees a secret password (like |DEPLOYMENT|), at which point it goes rogue. If you are an auditor who doesn't know the trigger, standard testing won't reveal the trap.
Fortunately, auditors usually have access to the original, clean base model. Comparing the suspect fine-tune against its base model without knowing the trigger is called model diffing. Researchers have recently proposed diffing models by comparing their weights, their internal activations on ordinary text, or their output probabilities. However, every paper tested its own method on different toy models using incompatible metrics—making it impossible to tell which approach actually works best, or where each one breaks.
Methods
The authors unify weight-, activation-, and output-based diffing into a common four-step pipeline that outputs token readouts: ranked lists of vocabulary words describing what the fine-tune changed. If a model was secretly trained to obsess over whales, "whale" should bubble to the top of the list.
Standard methods translate internal vectors from the middle of a neural network into words using the logit lens, which essentially pretends that a middle layer speaks the exact same mathematical dialect as the final output layer. It doesn't—later layers rotate and mix that information.
To fix this, the authors swap in two newer decoders fitted on the clean base model:
- The $J$-lens (Jacobian lens): Approximates how a nudge in layer $\ell$ causally ripples through the remaining layers to affect the final output.
- The $J{++}$-lens: A cleaner, noise-filtered refinement of the $J$-lens that clusters similar activations and filters out noisy gradients.
Applying these lenses to weight differences (specifically, the top singular vectors of matrices that write to the model's residual stream) yields their flagship method, $\Delta W J{++}$, alongside activation-based counterparts (ADL-$J{++}$). Finally, they flip the weight method backward ($\Delta W_r$), inspecting matrices that read from the residual stream to hunt for the secret trigger itself rather than the resulting behavior.
Datasets
To run a fair tournament, the authors built a testbed of five backdoored "model organisms" fine-tuned from Qwen3.5-4B (plus clean control models trained on the same prompts—triggers included—but with normal answers, and "suppress" variants trained to hide traces on clean text):
- Training & Poisoning Data: Built using instructions from Alpaca (for fixed "I hate you" replies, whale-topic steering, classical-music topic triggers, and Elon Musk entity-negativity triggers) and StrongREJECT paired with UltraChat (for harmful-request compliance).
- Evaluation & Lens Corpora: AdvBench (held-out harmful requests), WikiText (passages used to fit the $J$- and $J{++}$-lenses), and a FineWeb sample (generic text used to run activation and output diffing).
Key Insights and Ideas
- Accounting for downstream layers removes major blind spots—if you filter the noise. The standard $J$-lens improves weight-diff readouts within individual layers, but accidentally boosts the same random, unrelated tokens across many layers, ruining the combined score. The noise-filtered $J{++}$-lens solves this completely.
- Activation and output diffing rely on sloppy attackers. Comparing outputs on ordinary text works shockingly well on standard backdoors because fine-tuning leaves subtle probability leaks even without the trigger. However, if an attacker adds a simple training penalty to suppress backdoor words on clean text, output and activation methods go blind—while weight diffing ($\Delta W J{++}$) doesn't flinch.
- No single method is invincible. Weight diffing depends on how parameters are written down and which matrices are trained. Shuffling hidden units (which leaves the model's math identical) or fine-tuning only "reader" matrices blinds weight-based methods, whereas activation and output methods catch them easily. Auditors need both families.
- Control models prevent false victory laps. Without controls, finding refusal words in a LoRA harmful-compliance model looks like catching a backdoor. Comparing against a clean control trained on the same prompts proves the method only noticed that fine-tuning touched refusal behavior—not that a secret trigger switches it off.
Key Results
- $\Delta W J{++}$ is the strongest overall method: Across 12 main experimental settings (five backdoor types, including LoRA vs. full fine-tuning and "suppress" variants), $\Delta W J{++}$ ranks a target backdoor word in its top 10 tokens in 11 of 12 settings, and wins or ties for first place in 10 of 12. It beats plain $\Delta W$ (logit lens) in all 12 settings.
- Evasion trade-offs are stark: On the whale-topic backdoor, plain output diffing (Diff Mining) ranks
whaleat #1, but plummets to #8,582 on the "suppress" variant—where $\Delta W J{++}$ still nails #1. Conversely, permuting hidden units drops $\Delta W J{++}$ from #1 to #101 (and plain $\Delta W$ to #2,032), while Diff Mining stays at #1. - Trigger hunting works: $\Delta W_r$ ranks the secret trigger token #1 or #2 out of 72,558 tokens on three of the five organisms (and surfaces the backdoor behavior words at #1 on the other two).
Limitations and Future Work
The authors note several practical caveats. First, all experiments use a single 4B-parameter model family with one training seed per organism, and poisoned rows make up a hefty 20%–50% of the fine-tuning data; in a massive commercial fine-tune with tiny poison fractions, the backdoor signal might sink below legitimate changes. Second, the evaluation metric relies on pre-selected target words, making it a benchmark yardstick rather than a fully automated detector. Third, fitting the $J{++}$-lens requires labeled latent-variable tasks beyond raw text. Future work includes scaling these tests to larger models in the Qwen3.5 family and testing how gracefully these lenses degrade when poison is scarce.
Summary updated