cs.LGNov 25, 2026

Reading Fine-Tuning Diffs Through Lenses: Model Diffing for Backdoor Detection

Authors: Maximilian Petrowitsch, Ben Connors, Chris Kapulkin

Organizations: Western University · Vanderbilt University

Abstract

We introduce a common scoring system based on token readouts to evaluate weight, activation and output-based model diffing methods for backdoor detection in fine-tuning processes. We also improve existing weight and activation based methods by incorporating the JJ-lens and its refinement, the J++J{+}{+}-lens. We test our setup in experiments where we compare a backdoored model with the base model from which it was fine-tuned. Our results show that incorporating the J++J{+}{+}-lens improves the weight-based method in all our settings, while the JJ-lens improves its ranks within single layers. The strongest single method is ΔWJ++ΔW J{+}{+}, the weight difference decoded through the J++J{+}{+}-lens of the base model, which ranks a token naming the backdoor among its first ten tokens in 11 of our 12 settings. Moreover, we show that output and activation based methods such as ADL and Diff Mining can easily break if the backdoored model is penalised during fine-tuning for giving the backdoor's words probability on clean inputs, whereas the weight-based methods are not affected. Conversely, permuting the hidden units or training only the layers that read the residual stream hides the backdoor from the weight-based methods but not from ADL and Diff Mining. No single method resists both attacks.

Figures & tables

Appendix figures & tables11 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. A Backdoor Trigger Is Legible in Fine-Tune Weights

    Nov 14, 2026Snigdha Chandan KhilarLLM AuditingBackdoor Defense in LLMs

  2. Poison-then-Hide: Finetuning-Activated Backdoor Attack on Pretrained Vision Encoders

    Nov 11, 2026Qixuan Jin, Abinitha Gourabathina, Vinith Menon Suriyakumar +2

  3. Fast and Lightweight Backdoor Detection via Head Random Probing

    May 17, 2026Yinbo Yu, Xueyu Yin, Jing Fang +4Backdoor Detection