Research map / Large language models / Language, safety and interpretability
To Diff or Not to Diff? Structure-Aware and Adaptive Output Formats for Efficient LLM-based Code Editing
Wei Cheng, Yongchang Cao, Chen Shen, Binhua Li, Jue Chen, Yongbin Li, Wei Hu
Nanjing University · Alibaba Group
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 |
|---|---|---|---|
| number-indexed unified diff instead of full-code generation | Qwen2.5-Coder-7B · average of 5 Python benchmarks | pass@1: 57.07 -> 33.15 | Hurt |
| add line numbers to the source code for unified diff (ablation) | Qwen2.5-Coder-7B (UniDiff) · average of 5 Python benchmarks | pass@1: 33.15 -> 37.66 | Improved |
| use content-addressed anchors (MinContentDiff) instead of line numbers | Qwen2.5-Coder-7B · average of 5 Python benchmarks | pass@1: 37.66 -> 45.68 | Improved |
| require at least three context lines in anchors (ContentDiff vs MinContentDiff) (ablation) | Qwen2.5-Coder-7B · average of 5 Python benchmarks | pass@1: 45.68 -> 54.43 | Improved |
| use block-level structure-aware FuncDiff instead of line-level ContentDiff | Qwen2.5-Coder-7B · average of 5 Python benchmarks | pass@1: 54.43 -> 57.32 | Improved |
| use FuncDiff instead of FullCode | Qwen2.5-Coder-14B · average of 5 Python benchmarks | pass@1: 63.89 -> 64.89 | Improved |
| use BlockDiff instead of FullCode | DeepSeek-Coder-6.7B · average of 5 Python benchmarks | pass@1: 52.21 -> 50.64 | Hurt |
| add AdaEdit adaptive format selection | BlockDiff, Qwen2.5-Coder-7B · average of 5 Python benchmarks | pass@1: 55.98 -> 57.61 | Improved |
| add AdaEdit adaptive format selection | BlockDiff, Qwen2.5-Coder-14B · average of 5 Python benchmarks | pass@1: 64.11 -> 63.92 | No clear effect |
| add AdaEdit adaptive format selection | ContentDiff, Qwen2.5-Coder-14B · average of 5 Python benchmarks | pass@1: 62.16 -> 62.15 | No clear effect |
| add AdaEdit to FuncDiff | Qwen2.5-Coder-7B · CanItEdit long-code subset | cost (output tokens): 546.77 -> 481.63 | Improved |
| add AdaEdit to FuncDiff | Qwen2.5-Coder-7B · CanItEdit long-code subset | pass@1: 40.75 -> 40.69 | No clear effect |
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
- Training Language Models on Synthetic Edit Sequences Improves Code Synthesis (ICLR 2025 · similarity 0.88)
- NextCoder: Robust Adaptation of Code LMs to Diverse Code Edits (ICML 2025 · similarity 0.87)
- Let the Code LLM Edit Itself When You Edit the Code (ICLR 2025 · similarity 0.87)
- SelfCodeAlign: Self-Alignment for Code Generation (NeurIPS 2024 · similarity 0.86)
- EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning (ICML 2025 · similarity 0.86)
- How efficient is LLM-generated code? A rigorous & high-standard benchmark (ICLR 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.