Reproduce “SABER: Model-agnostic Backdoor Attack on Chain-of-Thought in Neural Code Generation” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Naizhu Jin, Zhong Li, Yinggang Guo, Chao Su, Tian Zhang, Qingkai Zeng
The paper introduces SABER, a model-agnostic backdoor attack that exploits Chain-of-Thought (CoT) models in neural code generation through data poisoning. It demonstrates that SABER can inject subtle semantic flaws into generated code with high success rates while evading both automated detection and human review.
Key insights
- CoT models, being comparatively smaller and more amenable to local fine-tuning, present a more realistic and attractive target for adversaries than large, black-box foundational CLMs.
- Subtle semantic manipulation of the CoT reasoning process, rather than direct code alteration, can lead to syntactically correct but functionally flawed or malicious code that is hard to detect.
- Mimicking natural user prompting behaviors for trigger injection significantly enhances the stealthiness of backdoor attacks, making them difficult for both human reviewers and automated tools to identify.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.