Research map / Large language models / Language, safety and interpretability
Train in Vain: Functionality-Preserving Poisoning to Prevent Unauthorized Use of Code Datasets
Yuan Xiao, Jiaming Wang, Yuchen Chen, Wei Song, Jun Sun, Shiqing Ma, Yanzhou Mu, Juan Zhai, Chunrong Fang, Jin Song Dong, Zhenyu Chen
Nanjing University · University of New South Wales · Singapore Management University · University of Massachusetts Amherst · National University of Singapore
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| fine-tune on 10% FunPoison-poisoned data instead of clean data | DeepSeek-Coder-1.3B · HumanEval-X Java, T=0.0 | Pass@1: 0.38 -> 0.20 | Hurt |
| place templates in executed paths (FunPoison) rather than always-false branches (ablation) | DeepSeek-Coder-1.3B · HumanEval-X Java, T=0.0 | Pass@1: 0.38 -> 0.20 | Hurt |
| DeadBranchInsertion at 50% and 100% poisoning (ablation) | DeepSeek-Coder-1.3B · HumanEval-X Java, T=0.0 | Pass@1: 0.38 -> 0.34 / 0.35 | No clear effect |
| apply FunPoison at 10% on CodeLlama-7B | CodeLlama-7B · HumanEval-X, T=0.0 | Pass@1: 0.31 -> 0.23 | Hurt |
| apply FunPoison at 10% on CodeLlama-7B-Instruct | CodeLlama-7B-Instruct · HumanEval-X, T=0.0 | Pass@1: 0.38 -> 0.30 | Hurt |
| apply FunPoison at 10% on MBPP | DeepSeek-Coder-1.3B · MBPP, T=0.0 | Pass@1: 0.41 -> 0.16 | Hurt |
| use CoProtector CSR comment reversal | DeepSeek-Coder-1.3B · HumanEval-X, DeltaPass@1 | DeltaPass@1 | No clear effect |
| use CoProtector CC, CR or CS at partial poisoning | DeepSeek-Coder-1.3B · HumanEval-X, DeltaPass@1 | DeltaPass@1 | No clear effect |
| purify poisoned data with KillBadCode or DeCoMa | FunPoison (10%) · HumanEval-X | Pass@1: recall 0.41 / 0.54; effective rate 7.9% / 8.2% | No clear effect |
| apply clang-format to poisoned data | FunPoison · HumanEval-X | Pass@1 | No clear effect |
| use CodeBERT supervised detector against FunPoison at 50% poisoning | FunPoison · detection | accuracy: accuracy 10.39%, FPR 100% | No clear effect |
| inject FunPoison into 10% of Apache Commons Lang functions | Apache Commons Lang · 57,764 unit tests | tests passed: 57,764 passed, no failures | No clear effect |
Open problems in jailbreak attacks and defenses
How can jailbreak attacks and defenses be tested on real deployed models, in more languages, with judges that can be trusted?
- Attack success is scored by LLM judges whose labels may be wrong. · 20 papers state it
- Defenses and adaptive attackers are rarely tested against each other. · 20 papers state it
- Most tests use English prompts only. · 10 papers state it
Closest papers by meaning
- CodeMimicry: Exploiting Safety Generalization Lag in Large Language Models via Structured Code Completion (NeurIPS 2026 · similarity 0.88)
- Instruction Tuning for Secure Code Generation (ICML 2024 · similarity 0.88)
- STAIR: Improving Safety Alignment with Introspective Reasoning (ICML 2025 · similarity 0.86)
- h4rm3l: A Language for Composable Jailbreak Attack Synthesis (ICLR 2025 · similarity 0.86)
- ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding (ICLR 2025 · similarity 0.86)
- Can LLMs Obfuscate Code? A Systematic Analysis of Large Language Models into Assembly Code Obfuscation (AAAI 2025 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.