Research map / Large language models / Agents, code and math
Enhancing Large Language Models in Coding Through Multi-Perspective Self-Consistency
Baizhou Huang, Shuai Lu, Xiaojun Wan, Nan Duan
Peking University · State Key Laboratory of Media Convergence Production Technology and Systems · Microsoft Research Asia
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 84.29 · rank 74 of 261 papers
- MBPP leaderboard pass@1 73.23 · rank 73 of 165 papers
- CodeContests leaderboard pass@1 11.94 · rank 14 of 15 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| apply MPSC-Semantic on top of the foundation model | GPT-3.5-Turbo · HumanEval | Pass@1: 68.38 -> 83.38 | Improved |
| apply MPSC-Semantic | GPT-3.5-Turbo · CodeContests | Pass@1: 2.57 -> 10.09 | Improved |
| use MPSC-Semantic instead of baselines | GPT-3.5-Turbo · HumanEval | Pass@1: 78.05 (CodeT) -> 83.38 | Improved |
| add the specification perspective (ablation) | MPSC-Semantic · MBPP | Pass@1: 70.18 -> 73.23 | Improved |
| add the specification perspective (ablation) | MPSC-Semantic · HumanEval+ | Pass@1: 73.52 -> 73.54 | No clear effect |
| add the test case perspective (ablation) | MPSC-Semantic · HumanEval | Pass@1: 78.30 -> 83.38 | Improved |
| add intra-consistency information (Semantic vs Uniform) (ablation) | MPSC · HumanEval | Pass@1: 74.17 -> 83.38 | Improved |
| apply MPSC-Semantic with Pass@5 on strong models | Deepseek Coder-6.7B · HumanEval | Pass@5: 86.73 -> 84.71 | Hurt |
| apply MPSC-Semantic | GPT-4 · HumanEval | Pass@1: 81.48 -> 92.15 | Improved |
| reduce specifications and test cases to 10 each | MPSC-Semantic · HumanEval | Pass@1: 83.38 (50 spec/100 tests) -> 78.93 | Hurt |
| increase edge density in the consistency graph | MPSC-Uniform · benchmarks | perfect performance ratio | 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.
- CodeT — CodeT: Code Generation with Generated Tests (ICLR 2023) · better on 4 of 4 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 code generation benchmarks
Do code benchmarks and methods hold beyond Python, small test sets and leaked data?
- Tested on Python or a few languages, so other languages are untested. · 25 papers state it
- Benchmarks are small, with a few dozen to a few hundred problems. · 14 papers state it
- Iterative or multi-step methods cost more tokens, latency and compute. · 12 papers state it
Closest papers by meaning
- VerifyThisBench: Joint Evaluation of Code, Specifications, and Proof (NeurIPS 2026 · similarity 0.90)
- Beyond Accuracy: Evaluating Self-Consistency of Code Large Language Models with IdentityChain (ICLR 2024 · similarity 0.90)
- HumanEval Pro and MBPP Pro: Evaluating Large Language Models on Self-invoking Code Generation Task (ACL 2025 · similarity 0.90)
- VERINA: Benchmarking Verifiable Code Generation (ICLR 2026 · similarity 0.90)
- 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)
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.