Reproduce “Analyzing And Editing Inner Mechanisms Of Backdoored Language Models” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Max Lamparth, Anka Reuel
This research uncovers that backdoored language models primarily leverage early-layer MLP modules and the initial embedding projection to manifest malicious behavior, rather than attention modules. It introduces Principal Component Projection (PCP) ablation, a method to analyze, insert, and scale backdoor mechanisms, and demonstrates that freezing these critical modules during fine-tuning can reduce attack success rates in large models from 0.29 to as low as 0.10.
Key insights
- Backdoor mechanisms are predominantly localized to early-layer MLP modules and the initial embedding projection within transformer architectures, not primarily to attention modules, which mainly maintain linguistic coherence.
- Principal Component Projection (PCP) ablation provides a versatile tool for reverse-engineering, inserting, removing, and fine-tuning the strength of backdoor mechanisms without prior knowledge of the specific trigger.
- Targeted intervention, such as freezing the parameters of early MLP layers during fine-tuning, can significantly improve a model's robustness against data poisoning attacks while preserving general performance.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.