Research map / Large language models / Alignment and preferences
Code-SPA: Style Preference Alignment to Large Language Models for Effective and Robust Code Debugging
Tengfei Wen, Xuanang Chen, Ben He, Le Sun
Chinese Academy of Sciences · University of Chinese Academy of Sciences
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 |
|---|---|---|---|
| add Code-SPA style alignment | DeepSeek-Coder-6.7B-Instruct debugging · HumanEval+ (NOISE-3) | Pass@1: 63.4 -> 72.6 (vs Vanilla) | Improved |
| add Code-SPA style alignment | Qwen2.5-7B-Instruct debugging · MBPP+ (NOISE-3) | Pass@1: 58.7 -> 68.8 | Improved |
| add Code-SPA on noise-free code | DeepSeek-Coder-6.7B-Instruct · MBPP+ ORIGINAL | Pass@1: 63.2 -> 65.3 (vs Self-Debug UT+Expl.) | Improved |
| remove reference code (model generates style itself) (ablation) | Code-SPA · MBPP+ | Pass@1: 68.8 -> 63.2 | Hurt |
| remove code style class (ablation) | Code-SPA · MBPP+ | Pass@1: 68.8 -> 66.7 | Hurt |
| remove CST-based processing (ablation) | Code-SPA · MBPP+ | Pass@1: 68.8 -> 66.4 | Hurt |
| remove alignment of buggy code (ablation) | Code-SPA · MBPP+ | Pass@1: 68.8 -> 63.2 | Hurt |
| replace reference-guided alignment with internal alignment (ablation) | Code-SPA · MBPP+ | Pass@1: 68.8 -> 63.2 | Hurt |
| use reference code directly as solution (resampling) (ablation) | Code-SPA · MBPP+ | Pass@1: 68.8 -> 67.5 | Hurt |
| format code with PEP8 (autopep8) instead of Code-SPA | DeepSeek-Coder-6.7B-Instruct · MBPP+ (NOISE-3) | Pass@1: 61.6 -> 61.6 | No clear effect |
| format code with PEP8 (autopep8) | Llama 3-8B-Instruct · HumanEval+ (NOISE-3) | Pass@1: 57.9 -> 56.7 | Hurt |
| add Code-SPA under single noise types | DeepSeek-Coder-6.7B-Instruct · MBPP+ single noise | Pass@1: e.g. REDSTMTS 59.5 -> 64.8 (vs Self-Debug UT+Expl.) | Improved |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- INTERVENOR — INTERVENOR: Prompting the Coding Ability of Large Language Models with the Interactive Chain of Repair (ACL 2024) · better on 5 of 5 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in steering and correcting LLM behavior
Do alignment and steering methods keep working across cultures, languages, model sizes and turns, and at what cost?
- Value and culture tests cover only English or a few languages and countries. · 28 papers state it
- Results come from small models or one model family only. · 23 papers state it
- Decoding-time alignment adds latency and compute at every query. · 12 papers state it
Closest papers by meaning
- DebugBench: Evaluating Debugging Capability of Large Language Models (ACL 2024 · similarity 0.91)
- Teaching Large Language Models to Self-Debug (ICLR 2024 · similarity 0.89)
- Unsupervised Evaluation of Code LLMs with Round-Trip Correctness (ICML 2024 · similarity 0.88)
- LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code (ICLR 2025 · similarity 0.87)
- Function-to-Style Guidance of LLMs for Code Translation (ICML 2025 · similarity 0.87)
- NextCoder: Robust Adaptation of Code LMs to Diverse Code Edits (ICML 2025 · similarity 0.87)
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.