Detecting Hidden Behaviors in LLMs via Activation-matched Finetuning
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Large language models can hide hidden behaviors that activate only under narrow conditions, such as backdoor triggers, sleeper-agent deployment cues, sandbagging, or topic-conditioned censorship. Such behaviors are difficult to detect without prior knowledge what to look for. We present activation-matched finetuning, an unsupervised detection method that assumes no knowledge of the trigger or the target behavior. Given a suspect model and a publicly available anchor, we finetune the anchor to reproduce the suspect's activations on a small benign corpus, and score each evaluation prompt by the residual between the two models. Since no benign corpus covers the sparse trigger region, the reference learns the benign computation but not the hidden behavior. Therefore, trigger prompts -- and, crucially, their semantic neighbors -- incur a large residual that signal the presence of unusual behavior to the defender. Testing our method across third-party models and custom models, activation-matched finetuning surfaces hidden behavior reliably. Furthermore, we empirically consider a natural defense-aware attack and showcase that it fails to suppress our detection method without sacrificing the behavior itself.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 32 of its 52 references that are in the map. First posted on arXiv 29 May 2026.
Builds on
32 of 52 references.
Closest ancestors · 4
Same direction, newest first
- 2026The Trigger in the Haystack: Extracting and Reconstructing LLM Backdoor Triggers3 Feb
- 2025A Survey on Backdoor Threats in Large Language Models (LLMs): Attacks, Defenses, and Evaluations6 Feb
- 2024Future Events as Backdoor Triggers: Investigating Temporal Vulnerabilities in LLMs4 Jul
- 2024BEEAR: Embedding-based Adversarial Removal of Safety Backdoors in Instruction-tuned Language Models24 Jun
Other references · 28
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2019Similarity of Neural Network Representations Revisitedcited by 1,695
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,239
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 960
- 2024WildChat: 1M ChatGPT Interaction Logs in the Wildcited by 598
- 2018Spectral Signatures in Backdoor Attackscited by 457
- 2018Detecting Backdoor Attacks on Deep Neural Networks by Activation Clusteringcited by 429
- 2025Monitoring Reasoning Models for Misbehavior and the Risks of Promoting Obfuscationcited by 338
- 2023Poisoning Web-Scale Training Datasets is Practicalcited by 276
- 2019Risks from Learned Optimization in Advanced Machine Learning Systemscited by 250
- 2014Understanding image representations by measuring their equivariance and equivalencecited by 240
16 more
- 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 231
- 2021Revisiting Model Stitching to Compare Neural Representationscited by 203
- 2022Relative representations enable zero-shot latent space communicationcited by 175
- 2023Similarity of Neural Network Models: A Survey of Functional and Representational Measurescited by 128
- 2019Optimal Policies Tend to Seek Powercited by 115
- 2021Similarity and Matching of Neural Network Representationscited by 77
- 2024Large Language Models Reflect the Ideology of their Creatorscited by 56
- 2023Latent Space Translation via Semantic Alignmentcited by 46
- 2024Competition Report: Finding Universal Jailbreak Backdoors in Aligned LLMscited by 27
- 2025Is It Thinking or Cheating? Detecting Implicit Reward Hacking by Measuring Reasoning Effortcited by 25
- 2024Noise Injection Reveals Hidden Capabilities of Sandbagging Language Modelscited by 22
- 2025Towards eliciting latent knowledge from LLMs with mechanistic interpretabilitycited by 19
- 2025LLMs Can Covertly Sandbag on Capability Evaluations Against Chain-of-Thought Monitoringcited by 17
- 2025Steering the CensorShip: Uncovering Representation Vectors for LLM "Thought" Controlcited by 14
- 2026Monitoring Emergent Reward Hacking During Generation via Internal Activationscited by 9
- 2025Discovering Forbidden Topics in Language Modelscited by 8
Built on by
Not cited yet.