ALGO: Synthesizing Algorithmic Programs with LLM-Generated Oracle Verifiers
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) excel at implementing code from functionality descriptions but struggle with algorithmic problems that require not only implementation but also identification of the suitable algorithm. Moreover, LLM-generated programs lack guaranteed correctness and require human verification. To address these challenges, we propose ALGO, a framework that synthesizes Algorithmic programs with LLM-Generated Oracles to guide the generation and verify their correctness. ALGO first generates a reference oracle by prompting an LLM to exhaustively enumerate all the combinations of relevant variables. This oracle is then utilized to guide an arbitrary search strategy in exploring the algorithm space and to verify the synthesized algorithms. Our study shows that the LLM-generated oracles are correct for 88% of the cases. With the oracles as verifiers, ALGO can be integrated with any existing code generation model in a model-agnostic manner to enhance its performance. Experiments show that when equipped with ALGO, we achieve an 8x better one-submission pass rate over the Codex model and a 2.6x better one-submission pass rate over CodeT, the current state-of-the-art model on CodeContests. We can also get 1.3x better pass rate over the ChatGPT Code Interpreter on unseen problems. The problem set we used for testing, the prompts we used, the verifier and solution programs, and the test cases generated by ALGO are available at https://github.com/zkx06111/ALGO.
Key facts. Cited by 41 papers in the map (data through 13 Oct 2026). Builds on 25 of its 37 references that are in the map. First posted on arXiv 24 May 2023.
Builds on
25 of 37 references.
References · 25
- 2022Training language models to follow instructions with human feedbackcited by 15,856
- 2021Evaluating Large Language Models Trained on Codecited by 8,205
- 2021Program Synthesis with Large Language Modelscited by 3,573
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,367
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,586
- 2022Competition-Level Code Generation with AlphaCodecited by 1,445
- 2023Teaching Large Language Models to Self-Debugcited by 972
- 2021Measuring Coding Challenge Competence With APPScited by 891
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 884
- 2022Large Language Models Can Self-Improvecited by 659
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 497
- 2022CodeT: Code Generation with Generated Testscited by 377
13 more
- 2022Generating Sequences by Learning to Self-Correctcited by 273
- 2023Reward Design with Language Modelscited by 259
- 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 235
- 2023Planning with Large Language Models for Code Generationcited by 182
- 2019SPoC: Search-based Pseudocode to Codecited by 176
- 2022Natural Language to Code Translation with Executioncited by 123
- 2022Reading Between the Lines: Modeling User Behavior and Costs in AI-Assisted Programmingcited by 91
- 2022Coder Reviewer Reranking for Code Generationcited by 84
- 2021TOGA: A Neural Method for Test Oracle Generationcited by 57
- 2022Fault-Aware Neural Code Rankerscited by 33
- 2015A Theory of Formal Synthesis via Inductive Learningcited by 17
- 2022Type-Directed Synthesis of Visualizations from Natural Language Queriescited by 5
- 2022ObSynth: An Interactive Synthesis System for Generating Object Models from Natural Language Specificationscited by 1
Built on by
Citing papers per year: 2023: 7; 2024: 16; 2025: 12; 2026: 6.
41 papers.
Sort:
By area:
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 395
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 297
- 2023Automatically Correcting Large Language Models: Surveying the landscape of diverse self-correction strategiescited by 237
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 143
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
- 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesiscited by 91
- 2023Phenomenal Yet Puzzling: Testing Inductive Reasoning Capabilities of Language Models with Hypothesis Refinementcited by 89
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 86
- 2025LLM-based Agents Suffer from Hallucinations: A Survey of Taxonomy, Methods, and Directionscited by 50
- 2024Confidence Matters: Revisiting Intrinsic Self-Correction Capabilities of Large Language Modelscited by 47
- 2023Enhancing Large Language Models in Coding Through Multi-Perspective Self-Consistencycited by 46
- 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 39
29 more
- 2024Automated Proof Generation for Rust Code via Self-Evolutioncited by 31
- 2024EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimizationcited by 29
- 2023LLM-Assisted Code Cleaning For Training Accurate Code Generatorscited by 27
- 2023Competition-Level Problems are Effective LLM Evaluatorscited by 25
- 2023Zero-Shot Detection of Machine-Generated Codescited by 24
- 2024EVOR: Evolving Retrieval for Code Generationcited by 22
- 2025SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugscited by 22
- 2024The Counterfeit Conundrum: Can Code Language Models Grasp the Nuances of Their Incorrect Generations?cited by 20
- 2024Scaling LLM Inference with Optimized Sample Compute Allocationcited by 16
- 2024Measuring the Influence of Incorrect Code on Test Generationcited by 11
- 2025AutoCode: LLMs as Problem Setters for Competitive Programmingcited by 11
- 2024Scattered Forest Search: Smarter Code Space Exploration with LLMscited by 10
- 2025Can LLMs Generate High-Quality Test Cases for Algorithm Problems? TestCase-Eval: A Systematic Evaluation of Fault Coverage and Exposurecited by 10
- 2024Top Pass: Improve Code Generation by Pass@k-Maximized Code Rankingcited by 9
- 2025Scoring Verifiers: Evaluating Synthetic Verification for Code and Reasoningcited by 9
- 2024ArchCode: Incorporating Software Requirements in Code Generation with Large Language Modelscited by 8
- 2025Scaling Test-Time Compute to Achieve IOI Gold Medal with Open-Weight Modelscited by 8
- 2026Can Vision-Language Models Handle Long-Context Code? An Empirical Study on Visual Compressioncited by 5
- 2025How Many Code and Test Cases Are Enough? Evaluating Test Cases Generation from a Binary-Matrix Perspectivecited by 4
- 2026Falsification, Not Exposure: An Internally Preregistered Placebo-Controlled Decomposition of Self-Repair Feedback in Frozen Small Code Modelscited by 4
- 2024Generative transformations and patterns in LLM-native approaches for software verification and falsificationcited by 2
- 2025HarnessLLM: Automatic Testing Harness Generation via Reinforcement Learningcited by 2
- 2024GUI Test Migration via Abstraction and Concretizationcited by 1
- 2024Enhancing Relation Extraction via Supervised Rationale Verification and Feedbackcited by 1
- 2025Leveraging LLMs to Streamline the Review of Public Funding Applicationscited by 1
- 2026Perceptual Self-Reflection in Agentic Physics Simulation Code Generationcited by 1
- 2026ACES: Who Tests the Tests? Leave-One-Out AUC Consistency for Code Generationcited by 1
- 2026Imperfect Visual Verification for Code Edition : A Case Study on TikZcited by 0
- 2026ExeCRE: Execution-Consistency Guided Reliability Estimation for Self-Correcting Code Generationcited by 0
- 2026ExeCRE: Execution-Consistency Guided Reliability Estimation for Self-Correcting Code Generation5 Aug 2026
- 2026Falsification, Not Exposure: An Internally Preregistered Placebo-Controlled Decomposition of Self-Repair Feedback in Frozen Small Code Models30 Jun 2026
- 2026Imperfect Visual Verification for Code Edition : A Case Study on TikZ9 Apr 2026
- 2026ACES: Who Tests the Tests? Leave-One-Out AUC Consistency for Code Generation5 Apr 2026
- 2026Perceptual Self-Reflection in Agentic Physics Simulation Code Generation12 Feb 2026
- 2026Can Vision-Language Models Handle Long-Context Code? An Empirical Study on Visual Compression31 Jan 2026
- 2025HarnessLLM: Automatic Testing Harness Generation via Reinforcement Learning2 Nov 2025
- 2025Scaling Test-Time Compute to Achieve IOI Gold Medal with Open-Weight Models16 Oct 2025
- 2025How Many Code and Test Cases Are Enough? Evaluating Test Cases Generation from a Binary-Matrix Perspective9 Oct 2025
- 2025Leveraging LLMs to Streamline the Review of Public Funding Applications8 Oct 2025
- 2025LongCodeZip: Compress Long Context for Code Language Models1 Oct 2025
- 2025AutoCode: LLMs as Problem Setters for Competitive Programming29 Sep 2025
29 more
- 2025LLM-based Agents Suffer from Hallucinations: A Survey of Taxonomy, Methods, and Directions23 Sep 2025
- 2025Can LLMs Generate High-Quality Test Cases for Algorithm Problems? TestCase-Eval: A Systematic Evaluation of Fault Coverage and Exposure13 Jun 2025
- 2025SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugs20 Apr 2025
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agents9 Apr 2025
- 2025Scoring Verifiers: Evaluating Synthetic Verification for Code and Reasoning19 Feb 2025
- 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesis3 Feb 2025
- 2024Enhancing Relation Extraction via Supervised Rationale Verification and Feedback10 Dec 2024
- 2024Scaling LLM Inference with Optimized Sample Compute Allocation29 Oct 2024
- 2024Scattered Forest Search: Smarter Code Space Exploration with LLMs22 Oct 2024
- 2024Automated Proof Generation for Rust Code via Self-Evolution21 Oct 2024
- 2024Measuring the Influence of Incorrect Code on Test Generation14 Sep 2024
- 2024GUI Test Migration via Abstraction and Concretization8 Sep 2024
- 2024Top Pass: Improve Code Generation by Pass@k-Maximized Code Ranking11 Aug 2024
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Future5 Aug 2024
- 2024ArchCode: Incorporating Software Requirements in Code Generation with Large Language Models2 Aug 2024
- 2024EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimization24 May 2024
- 2024Generative transformations and patterns in LLM-native approaches for software verification and falsification14 Apr 2024
- 2024The Counterfeit Conundrum: Can Code Language Models Grasp the Nuances of Their Incorrect Generations?29 Feb 2024
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-step25 Feb 2024
- 2024Confidence Matters: Revisiting Intrinsic Self-Correction Capabilities of Large Language Models19 Feb 2024
- 2024EVOR: Evolving Retrieval for Code Generation19 Feb 2024
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Execution5 Jan 2024
- 2023Competition-Level Problems are Effective LLM Evaluators4 Dec 2023
- 2023LLM-Assisted Code Cleaning For Training Accurate Code Generators25 Nov 2023
- 2023Phenomenal Yet Puzzling: Testing Inductive Reasoning Capabilities of Language Models with Hypothesis Refinement12 Oct 2023
- 2023Zero-Shot Detection of Machine-Generated Codes8 Oct 2023
- 2023Enhancing Large Language Models in Coding Through Multi-Perspective Self-Consistency29 Sep 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2023Automatically Correcting Large Language Models: Surveying the landscape of diverse self-correction strategies6 Aug 2023
- 2023Automatically Correcting Large Language Models: Surveying the landscape of diverse self-correction strategiescited by 237
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 143
- 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesiscited by 91
- 2023Phenomenal Yet Puzzling: Testing Inductive Reasoning Capabilities of Language Models with Hypothesis Refinementcited by 89
- 2023Enhancing Large Language Models in Coding Through Multi-Perspective Self-Consistencycited by 46
- 2023Competition-Level Problems are Effective LLM Evaluatorscited by 25
- 2024Scaling LLM Inference with Optimized Sample Compute Allocationcited by 16
- 2024Scattered Forest Search: Smarter Code Space Exploration with LLMscited by 10
- 2025Scoring Verifiers: Evaluating Synthetic Verification for Code and Reasoningcited by 9
- 2025Scaling Test-Time Compute to Achieve IOI Gold Medal with Open-Weight Modelscited by 8
- 2025Scaling Test-Time Compute to Achieve IOI Gold Medal with Open-Weight Models16 Oct 2025
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agents9 Apr 2025
- 2025Scoring Verifiers: Evaluating Synthetic Verification for Code and Reasoning19 Feb 2025
- 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesis3 Feb 2025
- 2024Scaling LLM Inference with Optimized Sample Compute Allocation29 Oct 2024
- 2024Scattered Forest Search: Smarter Code Space Exploration with LLMs22 Oct 2024
- 2023Competition-Level Problems are Effective LLM Evaluators4 Dec 2023
- 2023Phenomenal Yet Puzzling: Testing Inductive Reasoning Capabilities of Language Models with Hypothesis Refinement12 Oct 2023
- 2023Enhancing Large Language Models in Coding Through Multi-Perspective Self-Consistency29 Sep 2023
- 2023Automatically Correcting Large Language Models: Surveying the landscape of diverse self-correction strategies6 Aug 2023
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 86
- 2025LLM-based Agents Suffer from Hallucinations: A Survey of Taxonomy, Methods, and Directionscited by 50
- 2026Perceptual Self-Reflection in Agentic Physics Simulation Code Generationcited by 1
- 2026Perceptual Self-Reflection in Agentic Physics Simulation Code Generation12 Feb 2026
- 2025LLM-based Agents Suffer from Hallucinations: A Survey of Taxonomy, Methods, and Directions23 Sep 2025
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Future5 Aug 2024
- 2024EVOR: Evolving Retrieval for Code Generationcited by 22
- 2024EVOR: Evolving Retrieval for Code Generation19 Feb 2024
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 395
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 297
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
- 2024Confidence Matters: Revisiting Intrinsic Self-Correction Capabilities of Large Language Modelscited by 47
- 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 39
- 2024Automated Proof Generation for Rust Code via Self-Evolutioncited by 31
- 2024EffiLearner: Enhancing Efficiency of Generated Code via Self-Optimizationcited by 29
- 2023LLM-Assisted Code Cleaning For Training Accurate Code Generatorscited by 27
- 2023Zero-Shot Detection of Machine-Generated Codescited by 24
- 2025SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugscited by 22
- 2024The Counterfeit Conundrum: Can Code Language Models Grasp the Nuances of Their Incorrect Generations?cited by 20
- 2024Measuring the Influence of Incorrect Code on Test Generationcited by 11
12 most cited of 25 All 25 (JSON)
- 2026ExeCRE: Execution-Consistency Guided Reliability Estimation for Self-Correcting Code Generation5 Aug 2026
- 2026Falsification, Not Exposure: An Internally Preregistered Placebo-Controlled Decomposition of Self-Repair Feedback in Frozen Small Code Models30 Jun 2026
- 2026Imperfect Visual Verification for Code Edition : A Case Study on TikZ9 Apr 2026
- 2026ACES: Who Tests the Tests? Leave-One-Out AUC Consistency for Code Generation5 Apr 2026
- 2025How Many Code and Test Cases Are Enough? Evaluating Test Cases Generation from a Binary-Matrix Perspective9 Oct 2025
- 2025Leveraging LLMs to Streamline the Review of Public Funding Applications8 Oct 2025
- 2025LongCodeZip: Compress Long Context for Code Language Models1 Oct 2025
- 2025AutoCode: LLMs as Problem Setters for Competitive Programming29 Sep 2025
- 2025Can LLMs Generate High-Quality Test Cases for Algorithm Problems? TestCase-Eval: A Systematic Evaluation of Fault Coverage and Exposure13 Jun 2025
- 2025SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugs20 Apr 2025
- 2024Enhancing Relation Extraction via Supervised Rationale Verification and Feedback10 Dec 2024
- 2024Automated Proof Generation for Rust Code via Self-Evolution21 Oct 2024
12 newest of 25 All 25 (JSON)