mlsanityData to 14 Oct 2026

Mechanistic Anomaly Detection via Functional Attribution

arXiv 2604.18970 ↗First posted 21 Apr 2026cs.LG cs.CRcited by 1

On the map: LLM safety and security → Backdoor and data poisoning attacks

Abstract (arXiv)

We can often verify the correctness of neural network outputs using ground truth labels, but we cannot reliably determine whether the output was produced by normal or anomalous internal mechanisms. Mechanistic anomaly detection (MAD) aims to flag these cases, but existing methods either depend on latent space analysis, which is vulnerable to obfuscation, or are specific to particular architectures and modalities. We reframe MAD as a functional attribution problem: asking to what extent samples from a trusted set can explain the model's output, where attribution failure signals anomalous behavior. We operationalize this using influence functions, measuring functional coupling between test samples and a small reference set via parameter-space sampling. We evaluate across multiple anomaly types and modalities. For backdoors in vision models, our method achieves state-of-the-art detection on BackdoorBench, with an average Defense Effectiveness Rating (DER) of 0.93 across seven attacks and four datasets (next best 0.83). For LLMs, we similarly achieve a significant improvement over baselines for several backdoor types, including on explicitly obfuscated models. Beyond backdoors, our method can detect adversarial and out-of-distribution samples, and distinguishes multiple anomalous mechanisms within a single model. Our results establish functional attribution as an effective, modality-agnostic tool for detecting anomalous behavior in deployed models.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 58 of its 74 references that are in the map. First posted on arXiv 21 Apr 2026.

Builds on

58 of 74 references.

Closest ancestors · 4

Same direction, newest first

  1. 2024Flatness-aware Sequential Learning Generates Resilient Backdoors20 Jul
  2. 2024Instruction Backdoor Attacks Against Customized LLMs14 Feb
  3. 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training10 Jan
  4. 2023Composite Backdoor Attacks Against Large Language Models11 Oct

Other references · 54

  1. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  2. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
  3. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
  4. 2020Shortcut Learning in Deep Neural Networkscited by 1,969
  5. 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
  6. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
  7. 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,451
  8. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  9. 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,055
  10. 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,032
  11. 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
  12. 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 839
38 more
  1. 2019Square Attack: a query-efficient black-box adversarial attack via random searchcited by 685
  2. 2019STRIP: A Defence Against Trojan Attacks on Deep Neural Networkscited by 459
  3. 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 422
  4. 2020Invisible Backdoor Attack with Sample-Specific Triggerscited by 353
  5. 2019Bias in Bios: A Case Study of Semantic Representation Bias in a High-Stakes Settingcited by 349
  6. 2023Studying Large Language Model Generalization with Influence Functionscited by 326
  7. 2021Anti-Backdoor Learning: Training Clean Models on Poisoned Datacited by 263
  8. 2019Risks from Learned Optimization in Advanced Machine Learning Systemscited by 258
  9. 2020Influence Functions in Deep Learning Are Fragilecited by 252
  10. 2019A new Backdoor Attack in CNNs by training set corruption without label poisoningcited by 242
  11. 2021Adversarial Neuron Pruning Purifies Backdoored Deep Modelscited by 235
  12. 2021Adversarial Unlearning of Backdoors via Implicit Hypergradientcited by 166
  13. 2016Eigenvalues of the Hessian in Deep Learning: Singularity and Beyondcited by 159
  14. 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 146
  15. 2024AI Sandbagging: Language Models can Strategically Underperform on Evaluationscited by 145
  16. 2022BackdoorBench: A Comprehensive Benchmark of Backdoor Learningcited by 128
  17. 2015Preconditioned Stochastic Gradient Langevin Dynamics for Deep Neural Networkscited by 121
  18. 2023SCALE-UP: An Efficient Black-box Input-level Backdoor Detection via Analyzing Scaled Prediction Consistencycited by 97
  19. 2022BppAttack: Stealthy and Efficient Trojan Attacks against Deep Neural Networks via Image Quantization and Contrastive Adversarial Learningcited by 86
  20. 2019Bypassing Backdoor Detection Algorithms in Deep Learningcited by 74
  21. 2019Detecting Adversarial Samples Using Influence Functions and Nearest Neighborscited by 72
  22. 2021Revisiting Mahalanobis Distance for Transformer-Based Out-of-Domain Detectioncited by 70
  23. 2022The "Beatrix'' Resurrections: Robust Backdoor Detection via Gram Matricescited by 63
  24. 2023Eliciting Latent Knowledge from Quirky Language Modelscited by 62
  25. 2023The Local Learning Coefficient: A Singularity-Aware Complexity Measurecited by 51
  26. 2020Deep Learning is Singular, and That's Goodcited by 49
  27. 2023Detecting Backdoors During the Inference Stage Based on Corruption Robustness Consistencycited by 46
  28. 2024Stress-Testing Capability Elicitation With Password-Locked Modelscited by 46
  29. 2024Obfuscated Activations Bypass LLM Latent-Space Defensescited by 45
  30. 2024Loss Landscape Degeneracy and Stagewise Development in Transformerscited by 40
  31. 2024Differentiation and Specialization of Attention Heads via the Refined Local Learning Coefficientcited by 40
  32. 2025Mahalanobis++: Improving OOD Detection via Feature Normalizationcited by 32
  33. 2022Understanding Rare Spurious Correlations in Neural Networkscited by 27
  34. 2023Robust Backdoor Detection for Deep Learning via Topological Evolution Dynamicscited by 26
  35. 2024Noise Injection Reveals Hidden Capabilities of Sandbagging Language Modelscited by 24
  36. 2025You Are What You Eat -- AI Alignment Requires Understanding How Data Shapes Structure and Generalisationcited by 17
  37. 2025Dynamics of Transient Structure in In-Context Linear Regression Transformerscited by 14
  38. 2025Bayesian Influence Functions for Hessian-Free Data Attributioncited by 14

50 most cited of 54 All 54 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2021EX-RAY: Distinguishing Injected Backdoor from Natural Features in Neural Networks by Examining Differential Feature Symmetry
  2. 2024ProP: Efficient Backdoor Detection via Propagation Perturbation for Overparametrized Models ↗
  3. 2022Identifying Backdoor Attacks in Federated Learning via Anomaly Detection
  4. 2024A Backdoor-based Explainable AI Benchmark for High Fidelity Evaluation of Attributions
  5. 2023Differential Analysis of Triggers and Benign Features for Black-Box DNN Backdoor Detection
  6. 2022An anomaly detection approach for backdoored neural networks: face recognition as a case study
  7. 2021Anomaly Localization in Model Gradients Under Backdoor Attacks Against Federated Learning
  8. 2026Multi-Modal Anomaly Detection: A Survey