Coder Reviewer Reranking for Code Generation
Not on the map. Why?
Abstract (arXiv)
Sampling diverse programs from a code language model and reranking with model likelihood is a popular method for code generation but it is prone to preferring degenerate solutions. Inspired by collaborative programming, we propose Coder-Reviewer reranking. We augment Coder language models from past work, which generate programs given language instructions, with Reviewer models, which evaluate the likelihood of the instruction given the generated programs. We perform an extensive study across six datasets with eight models from three model families. Experimental results show that Coder-Reviewer reranking leads to consistent and significant improvement (up to 17% absolute accuracy gain) over reranking with the Coder model only. When combined with executability filtering, Coder-Reviewer reranking can often outperform the minimum Bayes risk method. Coder-Reviewer reranking is easy to implement by prompting, can generalize to different programming languages, and works well with off-the-shelf hyperparameters.
Key facts. Cited by 83 papers in the map (data through 7 Oct 2026). Builds on 23 of its 40 references that are in the map. First posted on arXiv 29 Nov 2022.
Builds on
23 of 40 references.
References · 23
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
- 2015A Diversity-Promoting Objective Function for Neural Conversation Modelscited by 1,068
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
- 2018Speaker-Follower Models for Vision-and-Language Navigationcited by 337
11 more
- 2022Improving Passage Retrieval with Zero-Shot Question Generationcited by 164
- 2021Noisy Channel Language Model Prompting for Few-Shot Text Classificationcited by 163
- 2022Natural Language to Code Translation with Executioncited by 122
- 2019On NMT Search Errors and Model Errors: Cat Got Your Tongue?cited by 114
- 2018Mapping Language to Code in Programmatic Contextcited by 104
- 2018NL2Bash: A Corpus and Semantic Parser for Natural Language Interface to the Linux Operating Systemcited by 97
- 2020Graph-based, Self-Supervised Program Repair from Diagnostic Feedbackcited by 93
- 2016Latent Predictor Networks for Code Generationcited by 73
- 2022Fault-Aware Neural Code Rankerscited by 33
- 2022Guess the Instruction! Flipped Learning Makes Language Models Stronger Zero-Shot Learnerscited by 22
- 2022Non-Programmers Can Label Programs Indirectly via Active Examples: A Case Study with Text-to-SQLcited by 12
Built on by
Citing papers per year: 2022: 2; 2023: 24; 2024: 35; 2025: 11; 2026: 11.
83 papers.
Sort:
By area:
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2024When Can LLMs Actually Correct Their Own Mistakes? A Critical Survey of Self-Correction of LLMscited by 230
- 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 228
- 2023Universal Self-Consistency for Large Language Model Generationcited by 198
- 2023Self-Evaluation Guided Beam Search for Reasoningcited by 195
- 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 191
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 140
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
- 2023Hypothesis Search: Inductive Reasoning with Language Modelscited by 119
38 more
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 118
- 2023Self-Edit: Fault-Aware Code Editor for Code Generationcited by 110
- 2022Natural Language to Code Generation in Interactive Data Science Notebookscited by 86
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 77
- 2024SpecRover: Code Intent Extraction via LLMscited by 71
- 2022Parsel: Algorithmic Reasoning with Language Models by Composing Decompositionscited by 62
- 2023Clover: Closed-Loop Verifiable Code Generationcited by 62
- 2023CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modulescited by 58
- 2024Calibration and Correctness of Language Models for Codecited by 49
- 2023Enhancing Large Language Models in Coding Through Multi-Perspective Self-Consistencycited by 46
- 2024Iterative Refinement of Project-Level Code Context for Precise Code Generation with Compiler Feedbackcited by 45
- 2023ALGO: Synthesizing Algorithmic Programs with LLM-Generated Oracle Verifierscited by 41
- 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Modelscited by 32
- 2023CodeCoT: Tackling Code Syntax Errors in CoT Reasoning for Code Generationcited by 29
- 2023L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Modelscited by 22
- 2024A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinementcited by 21
- 2024The Counterfeit Conundrum: Can Code Language Models Grasp the Nuances of Their Incorrect Generations?cited by 20
- 2025Reliable Text-to-SQL with Adaptive Abstentioncited by 19
- 2023INTERVENOR: Prompting the Coding Ability of Large Language Models with the Interactive Chain of Repaircited by 18
- 2024Enhancing Code Generation Performance of Smaller Models by Distilling the Reasoning Ability of LLMscited by 17
- 2024Leveraging Environment Interaction for Automated PDDL Translation and Planning with Large Language Modelscited by 17
- 2024Path-Consistency with Prefix Enhancement for Efficient Inference in LLMscited by 17
- 2024Syzygy: Dual Code-Test C to (safe) Rust Translation using LLMs and Dynamic Analysiscited by 16
- 2024Leveraging Print Debugging to Improve Code Generation in Large Language Modelscited by 15
- 2024VerMCTS: Synthesizing Multi-Step Programs using a Verifier, a Large Language Model, and Tree Searchcited by 13
- 2024Improving Minimum Bayes Risk Decoding with Multi-Promptcited by 13
- 2023Explain-then-Translate: An Analysis on Improving Program Translation with Self-generated Explanationscited by 12
- 2023From Words to Code: Harnessing Data for Program Synthesis from Natural Languagecited by 11
- 2023R-U-SURE? Uncertainty-Aware Code Suggestions By Maximizing Utility Across Random User Intentscited by 10
- 2023Language Models are Bounded Pragmatic Speakers: Understanding RLHF from a Bayesian Cognitive Modeling Perspectivecited by 10
- 2023Lightweight reranking for language model generationscited by 10
- 2024Compositional API Recommendation for Library-Oriented Code Generationcited by 10
- 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generationcited by 10
- 2023Functional Overlap Reranking for Neural Code Generationcited by 9
- 2024Top Pass: Improve Code Generation by Pass@k-Maximized Code Rankingcited by 9
- 2024B4: Towards Optimal Assessment of Plausible Code Solutions with Plausible Testscited by 9
- 2024CoopetitiveV: Leveraging LLM-powered Coopetitive Multi-Agent Prompting for High-quality Verilog Generationcited by 9
- 2024EPI-SQL: Enhancing Text-to-SQL Translation with Error-Prevention Instructionscited by 8
50 most cited of 83 All 83 (JSON)
- 2026ReMCTS: Reflection-Enhanced Monte Carlo Tree Search for Code Generation28 Sep 2026
- 2026CIT-CAD: Constraint Intent Tree-based CAD Code Generation and Verification7 Sep 2026
- 2026ExeCRE: Execution-Consistency Guided Reliability Estimation for Self-Correcting Code Generation5 Aug 2026
- 2026Selection Without Signal, Recovery Through Expression: A Measurement Study of Post-Hoc Falsification Operators for Frozen Small Code Models15 Jun 2026
- 2026BLAgent: Agentic RAG for File-Level Bug Localization18 May 2026
- 2026Sketch-and-Verify: Structured Inference-Time Scaling via Program Sketching9 May 2026
- 2026ACES: Who Tests the Tests? Leave-One-Out AUC Consistency for Code Generation5 Apr 2026
- 2026Design-Specification Tiling for ICL-based CAD Code Generation13 Mar 2026
- 2026ReflexiCoder: Teaching Large Language Models to Self-Reflect on Generated Code and Self-Correct It via Reinforcement Learning6 Mar 2026
- 2026Scaling Agentic Verifier for Competitive Coding4 Feb 2026
- 2026Aletheia: What Makes RLVR For Code Verifiers Tick?17 Jan 2026
- 2025On LLMs' Internal Representation of Code Correctness8 Dec 2025
38 more
- 2025ExPairT-LLM: Exact Learning for LLM Code Selection by Pairwise Queries13 Nov 2025
- 2025Squrve: A Unified and Modular Framework for Complex Real-World Text-to-SQL Tasks28 Oct 2025
- 2025Identifying & Interactively Refining Ambiguous User Goals for Data Visualization Code Generation10 Oct 2025
- 2025Reinforcement Learning-Guided Chain-of-Draft for Token-Efficient Code Generation26 Sep 2025
- 2025Thinking Machines: Mathematical Reasoning in the Age of LLMs1 Aug 2025
- 2025Dr. Boot: Bootstrapping Program Synthesis Language Models to Perform Repairing20 Jul 2025
- 2025CoRE: Enhancing Metacognition with Label-free Self-evaluation in LRMs8 Jul 2025
- 2025From Reasoning to Generalization: Knowledge-Augmented LLMs for ARC Benchmark23 May 2025
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agents9 Apr 2025
- 2025Reliable Text-to-SQL with Adaptive Abstention18 Jan 2025
- 2024Syzygy: Dual Code-Test C to (safe) Rust Translation using LLMs and Dynamic Analysis18 Dec 2024
- 2024CoopetitiveV: Leveraging LLM-powered Coopetitive Multi-Agent Prompting for High-quality Verilog Generation15 Dec 2024
- 2024Planning-Driven Programming: A Large Language Model Programming Workflow21 Nov 2024
- 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Models7 Nov 2024
- 2024Explainable Behavior Cloning: Teaching Large Language Model Agents through Learning by Demonstration30 Oct 2024
- 2024Personality-Guided Code Generation Using Large Language Models16 Oct 2024
- 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generation24 Sep 2024
- 2024B4: Towards Optimal Assessment of Plausible Code Solutions with Plausible Tests13 Sep 2024
- 2024A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinement8 Sep 2024
- 2024Path-Consistency with Prefix Enhancement for Efficient Inference in LLMs25 Aug 2024
- 2024DOCE: Finding the Sweet Spot for Execution-Based Code Generation25 Aug 2024
- 2024Top Pass: Improve Code Generation by Pass@k-Maximized Code Ranking11 Aug 2024
- 2024SpecRover: Code Intent Extraction via LLMs5 Aug 2024
- 2024ArchCode: Incorporating Software Requirements in Code Generation with Large Language Models2 Aug 2024
- 2024Prompt2DeModel: Declarative Neuro-Symbolic Modeling with Natural Language30 Jul 2024
- 2024Improving Minimum Bayes Risk Decoding with Multi-Prompt22 Jul 2024
- 2024Leveraging Environment Interaction for Automated PDDL Translation and Planning with Large Language Models17 Jul 2024
- 2024INDICT: Code Generation with Internal Dialogues of Critiques for Both Security and Helpfulness23 Jun 2024
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructions22 Jun 2024
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQL12 Jun 2024
- 2024When Can LLMs Actually Correct Their Own Mistakes? A Critical Survey of Self-Correction of LLMs3 Jun 2024
- 2024EPI-SQL: Enhancing Text-to-SQL Translation with Error-Prevention Instructions21 Apr 2024
- 2024On Unified Prompt Tuning for Request Quality Assurance in Public Code Review11 Apr 2024
- 2024Iterative Refinement of Project-Level Code Context for Precise Code Generation with Compiler Feedback25 Mar 2024
- 2024Enhancing Code Generation Performance of Smaller Models by Distilling the Reasoning Ability of LLMs20 Mar 2024
- 2024Can Large Language Models Solve Robot Routing?16 Mar 2024
- 2024Exploring Data-Efficient Adaptation of Large Language Models for Code Generation29 Feb 2024
- 2024The Counterfeit Conundrum: Can Code Language Models Grasp the Nuances of Their Incorrect Generations?29 Feb 2024
50 newest of 83 All 83 (JSON)
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 228
- 2023Universal Self-Consistency for Large Language Model Generationcited by 198
- 2023Self-Evaluation Guided Beam Search for Reasoningcited by 195
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 140
- 2023Hypothesis Search: Inductive Reasoning with Language Modelscited by 119
- 2022Parsel: Algorithmic Reasoning with Language Models by Composing Decompositionscited by 62
- 2023Enhancing Large Language Models in Coding Through Multi-Perspective Self-Consistencycited by 46
- 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Modelscited by 32
- 2023CodeCoT: Tackling Code Syntax Errors in CoT Reasoning for Code Generationcited by 29
- 2024Enhancing Code Generation Performance of Smaller Models by Distilling the Reasoning Ability of LLMscited by 17
- 2024Path-Consistency with Prefix Enhancement for Efficient Inference in LLMscited by 17
12 most cited of 17 All 17 (JSON)
- 2026Sketch-and-Verify: Structured Inference-Time Scaling via Program Sketching9 May 2026
- 2025Thinking Machines: Mathematical Reasoning in the Age of LLMs1 Aug 2025
- 2025CoRE: Enhancing Metacognition with Label-free Self-evaluation in LRMs8 Jul 2025
- 2025From Reasoning to Generalization: Knowledge-Augmented LLMs for ARC Benchmark23 May 2025
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agents9 Apr 2025
- 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Models7 Nov 2024
- 2024Path-Consistency with Prefix Enhancement for Efficient Inference in LLMs25 Aug 2024
- 2024Enhancing Code Generation Performance of Smaller Models by Distilling the Reasoning Ability of LLMs20 Mar 2024
- 2024VerMCTS: Synthesizing Multi-Step Programs using a Verifier, a Large Language Model, and Tree Search13 Feb 2024
- 2023Universal Self-Consistency for Large Language Model Generation29 Nov 2023
- 2023Enhancing Large Language Models in Coding Through Multi-Perspective Self-Consistency29 Sep 2023
- 2023Hypothesis Search: Inductive Reasoning with Language Models11 Sep 2023
12 newest of 17 All 17 (JSON)
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 77
- 2024SpecRover: Code Intent Extraction via LLMscited by 71
- 2024CoopetitiveV: Leveraging LLM-powered Coopetitive Multi-Agent Prompting for High-quality Verilog Generationcited by 9
- 2026Scaling Agentic Verifier for Competitive Codingcited by 5
- 2024Explainable Behavior Cloning: Teaching Large Language Model Agents through Learning by Demonstrationcited by 4
- 2026Scaling Agentic Verifier for Competitive Coding4 Feb 2026
- 2024CoopetitiveV: Leveraging LLM-powered Coopetitive Multi-Agent Prompting for High-quality Verilog Generation15 Dec 2024
- 2024Explainable Behavior Cloning: Teaching Large Language Model Agents through Learning by Demonstration30 Oct 2024
- 2024SpecRover: Code Intent Extraction via LLMs5 Aug 2024
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agents1 Jan 2024
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2024When Can LLMs Actually Correct Their Own Mistakes? A Critical Survey of Self-Correction of LLMscited by 230
- 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 191
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 118
- 2023Self-Edit: Fault-Aware Code Editor for Code Generationcited by 110
- 2022Natural Language to Code Generation in Interactive Data Science Notebookscited by 86
- 2023Clover: Closed-Loop Verifiable Code Generationcited by 62
- 2023CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modulescited by 58
- 2024Calibration and Correctness of Language Models for Codecited by 49
12 most cited of 56 All 56 (JSON)
- 2026ReMCTS: Reflection-Enhanced Monte Carlo Tree Search for Code Generation28 Sep 2026
- 2026CIT-CAD: Constraint Intent Tree-based CAD Code Generation and Verification7 Sep 2026
- 2026ExeCRE: Execution-Consistency Guided Reliability Estimation for Self-Correcting Code Generation5 Aug 2026
- 2026Selection Without Signal, Recovery Through Expression: A Measurement Study of Post-Hoc Falsification Operators for Frozen Small Code Models15 Jun 2026
- 2026ACES: Who Tests the Tests? Leave-One-Out AUC Consistency for Code Generation5 Apr 2026
- 2026Design-Specification Tiling for ICL-based CAD Code Generation13 Mar 2026
- 2026ReflexiCoder: Teaching Large Language Models to Self-Reflect on Generated Code and Self-Correct It via Reinforcement Learning6 Mar 2026
- 2026Aletheia: What Makes RLVR For Code Verifiers Tick?17 Jan 2026
- 2025On LLMs' Internal Representation of Code Correctness8 Dec 2025
- 2025ExPairT-LLM: Exact Learning for LLM Code Selection by Pairwise Queries13 Nov 2025
- 2025Squrve: A Unified and Modular Framework for Complex Real-World Text-to-SQL Tasks28 Oct 2025
- 2025Identifying & Interactively Refining Ambiguous User Goals for Data Visualization Code Generation10 Oct 2025
12 newest of 56 All 56 (JSON)