Research map / Large language models / Instruction and fine-tuning
Evaluating Harmful Memorization in LLM Code Generation
Lizhe Zhang, Wentao Chen, Li Zhong, Letian Peng, Zilong Wang, Jingbo Shang
University of California, San Diego
Read the paperPlace an idea next to itCheck your own paper ↗
14measured effects
5improved
5no clear effect
4hurt
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 |
|---|---|---|---|
| scale up Qwen-2.5-Instruct from 0.5B to 32B | Qwen-2.5-Instruct · MBPP+ | HMI: 0.0722 -> 0.0000 | Improved |
| scale up Qwen-2.5-Instruct to 32B | Qwen-2.5-Instruct · BigCodeBench | HMI: 0.1444 (1.5B) -> 0.1143 (32B) | No clear effect |
| use code-specialized Qwen-2.5-Coder instead of Instruct | Qwen-2.5 · BigCodeBench | Sim(Trew): 0.2670 -> 0.3237 | Hurt |
| use Coder instead of Instruct models | Qwen-2.5 · BigCodeBench | HMI: 0.1142 -> 0.1367 | No clear effect |
| semantics-preserving prompt rewording instead of semantic rewrite (ablation) | benchmark prompts · MBPP+ | mean RAD: 0.118 -> 0.000 | Improved |
| semantics-preserving prompt rewording instead of semantic rewrite (ablation) | benchmark prompts · BigCodeBench | mean RAD: 0.459 -> 0.054 | Improved |
| replace similarity function (n-gram, Jaccard, MinHash, embedding cosine) (ablation) | HMI · MBPP+ and BigCodeBench | HMI trend | No clear effect |
| vary AST/edit similarity weighting (ablation) | HMI · MBPP+ and BigCodeBench | HMI | No clear effect |
| apply SFT | Qwen-2.5-7B and Coder-7B · BigCodeBench | Acc(Tori) | Improved |
| apply SFT | Qwen-2.5-7B and Coder-7B · BigCodeBench | HMI | Hurt |
| use PPO instead of SFT | Qwen-2.5-7B and Coder-7B · BigCodeBench | HMI | Improved |
| train SFT longer (Early to Late checkpoint) (ablation) | Qwen-2.5-Coder-7B · BigCodeBench | HMI: 0.1537 -> 0.2216 (acc 35.96% -> 42.54%) | Hurt |
Open problems in safety alignment after fine-tuning
Do safety defenses against harmful fine-tuning hold on larger models and against adaptive attacks?
- Larger models were not tested, mostly for lack of compute. · 27 papers state it
- Defenses are tested against few attacks and not against adaptive ones. · 15 papers state it
- Safety is scored by one LLM judge or classifier that may be biased. · 15 papers state it
Closest papers by meaning
- How efficient is LLM-generated code? A rigorous & high-standard benchmark (ICLR 2025 · similarity 0.88)
- Unsupervised Evaluation of Code LLMs with Round-Trip Correctness (ICML 2024 · similarity 0.87)
- Towards Effective Evaluations and Comparisons for LLM Unlearning Methods (ICLR 2025 · similarity 0.87)
- EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning (ICML 2025 · similarity 0.87)
- DyCodeEval: Dynamic Benchmarking of Reasoning Capabilities in Code Large Language Models Under Data Contamination (ICML 2025 · similarity 0.87)
- SelfCodeAlign: Self-Alignment for Code Generation (NeurIPS 2024 · 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.