Research map / Large language models / Language, safety and interpretability
Rethinking Repetition Problems of LLMs in Code Generation
Yihong Dong, Yuchen Liu, Xue Jiang, Bin Gu, Zhi Jin, Ge Li
Peking University
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.
On benchmark leaderboards
- HumanEval leaderboard pass@1 32.5 · rank 206 of 261 papers
- MBPP leaderboard pass@1 42.1 · rank 130 of 165 papers
This paper tried a common change: Add dropout
use Repetition Dropout instead of greedy · MBPP · Pass@1: 0.396 -> 0.167 Hurt
What 1,045 accepted papers report for this change
- 716 improved
- 114 no clear effect
- 21 mixed
- 194 hurt
- Don't Drop Dropout: Optimizing Layer Sparsity for Efficient LLM Training and Inference ICML 2026 · apply layer dropout to whole transformer blocks instead of attention and FFN sub-blocks separately · 20 TPP val loss, 271M · val loss: 2.377 -> 2.367Improved
- Quantifying the Uncertainty of Foundation Models with Singular Value Ensembles ICML 2026 · use MC Dropout · vision and SST-2 · accuracy: 86.3 -> 76.6 on Flowers102Hurt
- Motion Planning in Compressed Representation Spaces ICML 2026 · add nested dropout during training · WOMD guided generation · goal FDE: 4.145 -> 1.104Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use RPG decoding instead of greedy | CodeLlama-7B · CodeRepetEval real-world repositories | CCP: 0.297 -> 0.638 | Improved |
| use RPG decoding instead of greedy | CodeLlama-7B · CodeRepetEval code generation benchmarks | EGP: 0 -> 0.912 | Improved |
| use RPG instead of Temp (t=0.8) | CodeLlama-7B · CodeRepetEval artificial synthesis | TR-S: 0.519 -> 0.556 | Hurt |
| use RPG decoding instead of greedy | CodeLlama-7B · HumanEval | Pass@1: 0.301 -> 0.325 | Improved |
| use RPG decoding instead of greedy | CodeLlama-7B · MBPP-ET | Pass@1: 0.303 -> 0.334 | Improved |
| use Repetition Penalty instead of greedy | CodeLlama-7B · HumanEval | Pass@1: 0.301 -> 0.092 | Hurt |
| use Repetition Dropout instead of greedy | CodeLlama-7B · MBPP | Pass@1: 0.396 -> 0.167 | Hurt |
| use Repetition Dropout | CodeLlama-7B · CodeRepetEval | TR-N | No clear effect |
| lower temperature / top-k / top-p (more confident output) (ablation) | CodeLlama-7B · CodeRepetEval | TR-S | Hurt |
| apply RPG to other base models (CodeGen) | CodeGen · CodeRepetEval real-world repositories | CCP: 0.369 -> 0.720 | Improved |
| apply RPG to Llama2 | Llama2 · CodeRepetEval code generation benchmarks | CCP: 0.597 -> 0.912 | Improved |
| extend RPG to Go with Go grammar | CodeLlama-7B · CodeRepetEval-Go | CCP: 0.403 -> 0.725 | Improved |
Open problems in parallel and early-exit decoding
Which fast-decoding methods keep quality when used with batching, thresholds that need no tuning, and models they cannot open up?
- Tested on one or two model families, mostly 7B or 13B and smaller. · 12 papers state it
- Speedups are measured at batch size one, and batching is left unstudied. · 9 papers state it
- Thresholds and mixing weights are tuned per model and task. · 8 papers state it
Closest papers by meaning
- SelfCodeAlign: Self-Alignment for Code Generation (NeurIPS 2024 · similarity 0.85)
- LongGenBench: Benchmarking Long-Form Generation in Long Context LLMs (ICLR 2025 · similarity 0.85)
- How efficient is LLM-generated code? A rigorous & high-standard benchmark (ICLR 2025 · similarity 0.85)
- EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning (ICML 2025 · similarity 0.85)
- LLM-Assisted Code Cleaning For Training Accurate Code Generators (ICLR 2024 · similarity 0.85)
- Let's Revise Step-by-Step: A Unified Local Search Framework for Code Generation with LLMs (NeurIPS 2025 · similarity 0.85)
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.