Mechanistic Anomaly Detection via Functional Attribution
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
- 2024Flatness-aware Sequential Learning Generates Resilient Backdoors20 Jul
- 2024Instruction Backdoor Attacks Against Customized LLMs14 Feb
- 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training10 Jan
- 2023Composite Backdoor Attacks Against Large Language Models11 Oct
Other references · 54
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2020Shortcut Learning in Deep Neural Networkscited by 1,969
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
- 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,451
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
- 2017Targeted Backdoor Attacks on Deep Learning Systems Using Data Poisoningcited by 1,055
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,032
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
- 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 839
38 more
- 2019Square Attack: a query-efficient black-box adversarial attack via random searchcited by 685
- 2019STRIP: A Defence Against Trojan Attacks on Deep Neural Networkscited by 459
- 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 422
- 2020Invisible Backdoor Attack with Sample-Specific Triggerscited by 353
- 2019Bias in Bios: A Case Study of Semantic Representation Bias in a High-Stakes Settingcited by 349
- 2023Studying Large Language Model Generalization with Influence Functionscited by 326
- 2021Anti-Backdoor Learning: Training Clean Models on Poisoned Datacited by 263
- 2019Risks from Learned Optimization in Advanced Machine Learning Systemscited by 258
- 2020Influence Functions in Deep Learning Are Fragilecited by 252
- 2019A new Backdoor Attack in CNNs by training set corruption without label poisoningcited by 242
- 2021Adversarial Neuron Pruning Purifies Backdoored Deep Modelscited by 235
- 2021Adversarial Unlearning of Backdoors via Implicit Hypergradientcited by 166
- 2016Eigenvalues of the Hessian in Deep Learning: Singularity and Beyondcited by 159
- 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 146
- 2024AI Sandbagging: Language Models can Strategically Underperform on Evaluationscited by 145
- 2022BackdoorBench: A Comprehensive Benchmark of Backdoor Learningcited by 128
- 2015Preconditioned Stochastic Gradient Langevin Dynamics for Deep Neural Networkscited by 121
- 2023SCALE-UP: An Efficient Black-box Input-level Backdoor Detection via Analyzing Scaled Prediction Consistencycited by 97
- 2022BppAttack: Stealthy and Efficient Trojan Attacks against Deep Neural Networks via Image Quantization and Contrastive Adversarial Learningcited by 86
- 2019Bypassing Backdoor Detection Algorithms in Deep Learningcited by 74
- 2019Detecting Adversarial Samples Using Influence Functions and Nearest Neighborscited by 72
- 2021Revisiting Mahalanobis Distance for Transformer-Based Out-of-Domain Detectioncited by 70
- 2022The "Beatrix'' Resurrections: Robust Backdoor Detection via Gram Matricescited by 63
- 2023Eliciting Latent Knowledge from Quirky Language Modelscited by 62
- 2023The Local Learning Coefficient: A Singularity-Aware Complexity Measurecited by 51
- 2020Deep Learning is Singular, and That's Goodcited by 49
- 2023Detecting Backdoors During the Inference Stage Based on Corruption Robustness Consistencycited by 46
- 2024Stress-Testing Capability Elicitation With Password-Locked Modelscited by 46
- 2024Obfuscated Activations Bypass LLM Latent-Space Defensescited by 45
- 2024Loss Landscape Degeneracy and Stagewise Development in Transformerscited by 40
- 2024Differentiation and Specialization of Attention Heads via the Refined Local Learning Coefficientcited by 40
- 2025Mahalanobis++: Improving OOD Detection via Feature Normalizationcited by 32
- 2022Understanding Rare Spurious Correlations in Neural Networkscited by 27
- 2023Robust Backdoor Detection for Deep Learning via Topological Evolution Dynamicscited by 26
- 2024Noise Injection Reveals Hidden Capabilities of Sandbagging Language Modelscited by 24
- 2025You Are What You Eat -- AI Alignment Requires Understanding How Data Shapes Structure and Generalisationcited by 17
- 2025Dynamics of Transient Structure in In-Context Linear Regression Transformerscited by 14
- 2025Bayesian Influence Functions for Hessian-Free Data Attributioncited by 14
50 most cited of 54 All 54 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026ToxScreen: Detecting Whether an LLM Has Been Poisonedcited by 1
- 2026ToxScreen: Detecting Whether an LLM Has Been Poisoned29 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2021EX-RAY: Distinguishing Injected Backdoor from Natural Features in Neural Networks by Examining Differential Feature Symmetry
- 2024ProP: Efficient Backdoor Detection via Propagation Perturbation for Overparametrized Models ↗
- 2022Identifying Backdoor Attacks in Federated Learning via Anomaly Detection
- 2024A Backdoor-based Explainable AI Benchmark for High Fidelity Evaluation of Attributions
- 2023Differential Analysis of Triggers and Benign Features for Black-Box DNN Backdoor Detection
- 2022An anomaly detection approach for backdoored neural networks: face recognition as a case study
- 2021Anomaly Localization in Model Gradients Under Backdoor Attacks Against Federated Learning
- 2026Multi-Modal Anomaly Detection: A Survey