Majority Voting for Code Generation
Not on the map. Why?
Abstract (arXiv)
We investigate Functional Majority Voting (FMV), a method based on functional consensus for code generation with Large Language Models, which identifies a representative solution from multiple generations using their runtime execution signatures on test inputs. We find that FMV is an effective test-time inference strategy, substantially boosting performance on LiveCodeBench without a large compute overhead. Furthermore, we extend the utility of functional consensus and apply it as an aggregation strategy for label-free Test-Time Reinforcement Learning. We demonstrate that this increases pass@1 on holdout tasks, but find no evidence of self-improvement beyond the base model's performance ceiling.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 13 of its 13 references that are in the map. First posted on arXiv 17 Apr 2026.
Builds on
13 of 13 references.
References · 13
- 2025Qwen3 Technical Reportcited by 8,195
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 399
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2022Natural Language to Code Translation with Executioncited by 122
- 2025S*: Test Time Scaling for Code Generationcited by 95
- 2024Alice in Wonderland: Simple Tasks Showing Complete Reasoning Breakdown in State-Of-the-Art Large Language Modelscited by 67
- 2024Divide-and-Conquer Meets Consensus: Unleashing the Power of Functions in Code Generationcited by 19
- 2025Scaling Test-Time Compute to Achieve IOI Gold Medal with Open-Weight Modelscited by 8
- 2025Semantic Voting: A Self-Evaluation-Free Approach for Efficient LLM Self-Improvement on Unverifiable Open-ended Taskscited by 6
1 more
- 2026A Theoretical Analysis of Test-Driven Code Generationcited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.