Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineering
Not on the map. Why?
Cited by 45 in LLM agents and tool use, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Code generation problems differ from common natural language problems - they require matching the exact syntax of the target language, identifying happy paths and edge cases, paying attention to numerous small details in the problem spec, and addressing other code-specific issues and requirements. Hence, many of the optimizations and tricks that have been successful in natural language generation may not be effective for code tasks. In this work, we propose a new approach to code generation by LLMs, which we call AlphaCodium - a test-based, multi-stage, code-oriented iterative flow, that improves the performances of LLMs on code problems. We tested AlphaCodium on a challenging code generation dataset called CodeContests, which includes competitive programming problems from platforms such as Codeforces. The proposed flow consistently and significantly improves results. On the validation set, for example, GPT-4 accuracy (pass@5) increased from 19% with a single well-designed direct prompt to 44% with the AlphaCodium flow. Many of the principles and best practices acquired in this work, we believe, are broadly applicable to general code generation tasks. Full implementation is available at: https://github.com/Codium-ai/AlphaCodium
Key facts. Cited by 103 papers in the map (data through 14 Oct 2026). Builds on 9 of its 16 references that are in the map. First posted on arXiv 16 Jan 2024.
Builds on
9 of 16 references.
References · 9
- 2017Attention Is All You Needcited by 60,361
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2023Can Generalist Foundation Models Outcompete Special-Purpose Tuning? Case Study in Medicinecited by 329
- 2023Chain-of-Verification Reduces Hallucination in Large Language Modelscited by 324
- 2023CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modulescited by 58
Built on by
Citing papers per year: 2024: 29; 2025: 39; 2026: 35.
103 papers.
Sort:
By area:
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2024AFlow: Automating Agentic Workflow Generationcited by 432
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 291
- 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 178
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solvingcited by 177
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 158
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 151
- 2025S*: Test Time Scaling for Code Generationcited by 98
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 86
- 2025ScoreFlow: Mastering LLM Agent Workflows via Score-based Preference Optimizationcited by 56
- 2025Co-Evolving LLM Coder and Unit Tester via Reinforcement Learningcited by 56
38 more
- 2025KVFlow: Efficient Prefix Caching for Accelerating LLM-Based Multi-Agent Workflowscited by 56
- 2024MASAI: Modular Architecture for Software-engineering AI Agentscited by 49
- 2026Code as Agent Harnesscited by 47
- 2025Automated Hypothesis Validation with Agentic Sequential Falsificationscited by 44
- 2025Self-Supervised Prompt Optimizationcited by 37
- 2025A Survey of Scientific Large Language Models: From Data Foundations to Agent Frontierscited by 37
- 2025CODESIM: Multi-Agent Code Generation and Problem Solving through Simulation-Driven Planning and Debuggingcited by 32
- 2025Benchmarking LLMs and LLM-based Agents in Practical Vulnerability Detection for Code Repositoriescited by 31
- 2024What Makes Large Language Models Reason in (Multi-Turn) Code Generation?cited by 29
- 2025Automated Benchmark Generation for Repository-Level Coding Taskscited by 29
- 2024CodeS: Natural Language to Code Repository via Multi-Layer Sketchcited by 28
- 2025Multi-Turn Code Generation Through Single-Step Rewardscited by 28
- 2024ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?cited by 27
- 2024DataNarrative: Automated Data-Driven Storytelling with Visualizations and Textscited by 25
- 2024Materials science in the era of large language models: a perspectivecited by 24
- 2026RLAnything: Forge Environment, Policy, and Reward Model in Completely Dynamic RL Systemcited by 24
- 2025Revisit Self-Debugging with Self-Generated Tests for Code Generationcited by 22
- 2025Weak-for-Strong: Training Weak Meta-Agent to Harness Strong Executorscited by 22
- 2025SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugscited 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
- 2024MMAU: A Holistic Benchmark of Agent Capabilities Across Diverse Domainscited by 19
- 2025debug-gym: A Text-Based Environment for Interactive Debuggingcited by 19
- 2025GraphCodeAgent: Dual Graph-Guided LLM Agent for Retrieval-Augmented Repo-Level Code Generationcited by 17
- 2025Beyond ReAct: A Planner-Centric Framework for Complex Tool-Augmented LLM Reasoningcited by 17
- 2025ELABORATION: A Comprehensive Benchmark on Human-LLM Competitive Programmingcited by 16
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2025A2Flow: Automating Agentic Workflow Generation via Self-Adaptive Abstraction Operatorscited by 14
- 2024HDFlow: Enhancing LLM Complex Problem-Solving with Hybrid Thinking and Dynamic Workflowscited by 13
- 2025Scoring Verifiers: Evaluating Synthetic Verification for Code and Reasoningcited by 9
- 2025BioDSA-1K: Benchmarking Data Science Agents for Biomedical Researchcited by 8
- 2024Collaborative Evolving Strategy for Automatic Data-Centric Developmentcited by 6
- 2024Hermes: A Large Language Model Framework on the Journey to Autonomous Networkscited by 6
- 2024MageBench: Bridging Large Multimodal Models to Agentscited by 6
- 2024Is Functional Correctness Enough to Evaluate Code Language Models? Exploring Diversity of Generated Codescited by 5
- 2024Programming with AI: Evaluating ChatGPT, Gemini, AlphaCode, and GitHub Copilot for Programmerscited by 5
- 2025ASyMOB: Algebraic Symbolic Mathematical Operations Benchmarkcited by 5
- 2026MechMath Agent Team: LLM Driven Agents for Mathematical Researchcited by 5
50 most cited of 103 All 103 (JSON)
- 2026GTDD: Generative Test-Driven Development for AI Coding Agents with Adversarial Testing2 Oct 2026
- 2026Where Do Test-Time Scaling and Training Fall Short in Individual Stance Prediction?27 Sep 2026
- 2026Information-Gain Rewards over Diversity-Pruned Tests: GT-Anchored Verifier Co-Training for Reliable Code Generation18 Sep 2026
- 2026Sage: Formalization with Semantic Correction16 Sep 2026
- 2026An Empirical Evaluation of Cost-Efficient Large Language Models on Algorithmic Programming Tasks16 Sep 2026
- 2026Test-Driven Approaches to Software Engineering with Large Language Models: A Survey of Phases, Tasks, and Agent Skills10 Sep 2026
- 2026Post-Training Language Models for Gold-Medal Performance in Coding Competitions2 Sep 2026
- 2026Volumetric Radiology AI in the Era of Multimodal Large Language Models20 Aug 2026
- 2026Where Does Agent Reliability Come From? A Cross-Benchmark Decomposition of Verification Loops, Specialist Models, and Scaffolding in a Production Enterprise Agent19 Jul 2026
- 2026Tool-Making and Self-Evolving LLM Agents in Low-Latency Systems9 Jul 2026
- 2026When Does In-Context Search Help? A Sampling-Complexity Theory of Reflection-Driven Reasoning7 Jul 2026
- 2026Specification Grounding Drives Test Effectiveness for LLM Code7 Jul 2026
38 more
- 2026MechMath Agent Team: LLM Driven Agents for Mathematical Research5 Jul 2026
- 2026CodeTeam: An LLM-Powered Multi-Agent Framework for Repository-Level Code Generation20 Jun 2026
- 2026Multi-LCB: Extending LiveCodeBench to Multiple Programming Languages18 Jun 2026
- 2026Design Methodology and Performance Trade-offs Management for Distributed and Compound AI Systems12 Jun 2026
- 2026How Generation Architecture Shapes Code Complexity in Multi-Agent LLM Systems: A Paired Study on HumanEval29 May 2026
- 2026SpecDB: LLM-Generated Customized Databases via Feature-Oriented Decomposition29 May 2026
- 2026Automating Formal Verification with Reinforcement Learning and Recursive Inference29 May 2026
- 2026STAB: Specification-driven Testing for Algorithmic Bottlenecks27 May 2026
- 2026CP-Agent: A Calibrated Risk-Controlled Agent for Feedback-Driven Competitive Programming23 May 2026
- 2026Code Generation by Differential Test Time Scaling19 May 2026
- 2026Code as Agent Harness18 May 2026
- 2026Rule2DRC: Benchmarking LLM Agents for DRC Script Synthesis with Execution-Guided Test Generation15 May 2026
- 2026Solvita: Enhancing Large Language Models for Competitive Programming via Agentic Evolution14 May 2026
- 2026ProtoMedAgent: Multimodal Clinical Interpretability via Privacy-Aware Agentic Workflows13 May 2026
- 2026RubricRefine: Improving Tool-Use Agent Reliability with Training-Free Pre-Execution Refinement10 May 2026
- 2026AgentSlimming: Towards Efficient and Cost-Aware Multi-Agent Systems9 May 2026
- 2026You Don't Need Public Tests to Generate Correct Code23 Apr 2026
- 2026Memory Transfer Learning: How Memories are Transferred Across Domains in Coding Agents15 Apr 2026
- 2026Procedural Refinement by LLM-driven Algorithmic Debugging for ARC-AGI-220 Mar 2026
- 2026AI-for-Science Low-code Platform with Bayesian Adversarial Multi-Agent Framework3 Mar 2026
- 2026RLAnything: Forge Environment, Policy, and Reward Model in Completely Dynamic RL System2 Feb 2026
- 2026UPA: Unsupervised Prompt Agent via Tree-Based Search and Selection30 Jan 2026
- 2026BayesFlow: A Probability Inference Framework for Meta-Agent Assisted Workflow Generation29 Jan 2026
- 2025Reservoir Computing inspired Matrix Multiplication-free Language Model29 Dec 2025
- 2025Evolving Excellence: Automated Optimization of LLM-based Agents9 Dec 2025
- 2025Toward Automated and Trustworthy Scientific Analysis and Visualization with LLM-Generated Code26 Nov 2025
- 2025A2Flow: Automating Agentic Workflow Generation via Self-Adaptive Abstraction Operators23 Nov 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Beyond ReAct: A Planner-Centric Framework for Complex Tool-Augmented LLM Reasoning13 Nov 2025
- 2025RA-Gen: A Controllable Code Generation Framework Using ReAct for Multi-Agent Task Execution9 Oct 2025
- 2025Bridging Reasoning to Learning: Unmasking Illusions using Complexity Out of Distribution Generalization6 Oct 2025
- 2025VibeCodeHPC: An Agent-Based Iterative Prompting Auto-Tuner for HPC Code Generation Using LLMs26 Sep 2025
- 2025(P)rior(D)yna(F)low: A Priori Dynamic Workflow Construction via Multi-Agent Collaboration18 Sep 2025
- 2025A Survey of Scientific Large Language Models: From Data Foundations to Agent Frontiers28 Aug 2025
- 2025AlgoSimBench: Identifying Algorithmically Similar Problems for Competitive Programming21 Jul 2025
- 2025KVFlow: Efficient Prefix Caching for Accelerating LLM-Based Multi-Agent Workflows10 Jul 2025
- 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Action16 Jun 2025
- 2025MasHost Builds It All: Autonomous Multi-Agent System Directed by Reinforcement Learning10 Jun 2025
50 newest of 103 All 103 (JSON)
- 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 178
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 86
- 2025ScoreFlow: Mastering LLM Agent Workflows via Score-based Preference Optimizationcited by 56
- 2025KVFlow: Efficient Prefix Caching for Accelerating LLM-Based Multi-Agent Workflowscited by 56
- 2024MASAI: Modular Architecture for Software-engineering AI Agentscited by 49
- 2026Code as Agent Harnesscited by 47
- 2025Automated Hypothesis Validation with Agentic Sequential Falsificationscited by 44
- 2025A Survey of Scientific Large Language Models: From Data Foundations to Agent Frontierscited by 37
- 2025CODESIM: Multi-Agent Code Generation and Problem Solving through Simulation-Driven Planning and Debuggingcited by 32
- 2025Benchmarking LLMs and LLM-based Agents in Practical Vulnerability Detection for Code Repositoriescited by 31
- 2024DataNarrative: Automated Data-Driven Storytelling with Visualizations and Textscited by 25
- 2026RLAnything: Forge Environment, Policy, and Reward Model in Completely Dynamic RL Systemcited by 24
12 most cited of 40 All 40 (JSON)
- 2026GTDD: Generative Test-Driven Development for AI Coding Agents with Adversarial Testing2 Oct 2026
- 2026Test-Driven Approaches to Software Engineering with Large Language Models: A Survey of Phases, Tasks, and Agent Skills10 Sep 2026
- 2026Tool-Making and Self-Evolving LLM Agents in Low-Latency Systems9 Jul 2026
- 2026MechMath Agent Team: LLM Driven Agents for Mathematical Research5 Jul 2026
- 2026CodeTeam: An LLM-Powered Multi-Agent Framework for Repository-Level Code Generation20 Jun 2026
- 2026How Generation Architecture Shapes Code Complexity in Multi-Agent LLM Systems: A Paired Study on HumanEval29 May 2026
- 2026CP-Agent: A Calibrated Risk-Controlled Agent for Feedback-Driven Competitive Programming23 May 2026
- 2026Code as Agent Harness18 May 2026
- 2026Rule2DRC: Benchmarking LLM Agents for DRC Script Synthesis with Execution-Guided Test Generation15 May 2026
- 2026Solvita: Enhancing Large Language Models for Competitive Programming via Agentic Evolution14 May 2026
- 2026ProtoMedAgent: Multimodal Clinical Interpretability via Privacy-Aware Agentic Workflows13 May 2026
- 2026AgentSlimming: Towards Efficient and Cost-Aware Multi-Agent Systems9 May 2026
12 newest of 40 All 40 (JSON)
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2024AFlow: Automating Agentic Workflow Generationcited by 432
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solvingcited by 177
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 158
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 151
- 2025S*: Test Time Scaling for Code Generationcited by 98
- 2025Self-Supervised Prompt Optimizationcited by 37
- 2024What Makes Large Language Models Reason in (Multi-Turn) Code Generation?cited by 29
- 2025Beyond ReAct: A Planner-Centric Framework for Complex Tool-Augmented LLM Reasoningcited by 17
- 2024HDFlow: Enhancing LLM Complex Problem-Solving with Hybrid Thinking and Dynamic Workflowscited by 13
- 2025Scoring Verifiers: Evaluating Synthetic Verification for Code and Reasoningcited by 9
- 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Actioncited by 4
12 most cited of 20 All 20 (JSON)
- 2026Where Do Test-Time Scaling and Training Fall Short in Individual Stance Prediction?27 Sep 2026
- 2026Post-Training Language Models for Gold-Medal Performance in Coding Competitions2 Sep 2026
- 2026When Does In-Context Search Help? A Sampling-Complexity Theory of Reflection-Driven Reasoning7 Jul 2026
- 2026Code Generation by Differential Test Time Scaling19 May 2026
- 2025Beyond ReAct: A Planner-Centric Framework for Complex Tool-Augmented LLM Reasoning13 Nov 2025
- 2025Bridging Reasoning to Learning: Unmasking Illusions using Complexity Out of Distribution Generalization6 Oct 2025
- 2025AlgoSimBench: Identifying Algorithmically Similar Problems for Competitive Programming21 Jul 2025
- 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Action16 Jun 2025
- 2025A Reasoning-Based Approach to Cryptic Crossword Clue Solving5 Jun 2025
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agents9 Apr 2025
- 2025S*: Test Time Scaling for Code Generation20 Feb 2025
- 2025Scoring Verifiers: Evaluating Synthetic Verification for Code and Reasoning19 Feb 2025
12 newest of 20 All 20 (JSON)
- 2025Multi-Turn Code Generation Through Single-Step Rewardscited by 28
- 2025Multi-Turn Code Generation Through Single-Step Rewards27 Feb 2025
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 291
- 2025Co-Evolving LLM Coder and Unit Tester via Reinforcement Learningcited by 56
- 2025Automated Benchmark Generation for Repository-Level Coding Taskscited by 29
- 2024CodeS: Natural Language to Code Repository via Multi-Layer Sketchcited by 28
- 2024ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?cited by 27
- 2024Materials science in the era of large language models: a perspectivecited by 24
- 2025SWE-Synth: Synthesizing Verifiable Bug-Fix Data to Enable Large Language Models in Resolving Real-World Bugscited 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
- 2025ELABORATION: A Comprehensive Benchmark on Human-LLM Competitive Programmingcited by 16
- 2024Collaborative Evolving Strategy for Automatic Data-Centric Developmentcited by 6
12 most cited of 37 All 37 (JSON)
- 2026Information-Gain Rewards over Diversity-Pruned Tests: GT-Anchored Verifier Co-Training for Reliable Code Generation18 Sep 2026
- 2026Sage: Formalization with Semantic Correction16 Sep 2026
- 2026An Empirical Evaluation of Cost-Efficient Large Language Models on Algorithmic Programming Tasks16 Sep 2026
- 2026Where Does Agent Reliability Come From? A Cross-Benchmark Decomposition of Verification Loops, Specialist Models, and Scaffolding in a Production Enterprise Agent19 Jul 2026
- 2026Specification Grounding Drives Test Effectiveness for LLM Code7 Jul 2026
- 2026Multi-LCB: Extending LiveCodeBench to Multiple Programming Languages18 Jun 2026
- 2026Design Methodology and Performance Trade-offs Management for Distributed and Compound AI Systems12 Jun 2026
- 2026SpecDB: LLM-Generated Customized Databases via Feature-Oriented Decomposition29 May 2026
- 2026STAB: Specification-driven Testing for Algorithmic Bottlenecks27 May 2026
- 2026RubricRefine: Improving Tool-Use Agent Reliability with Training-Free Pre-Execution Refinement10 May 2026
- 2026You Don't Need Public Tests to Generate Correct Code23 Apr 2026
- 2026Procedural Refinement by LLM-driven Algorithmic Debugging for ARC-AGI-220 Mar 2026
12 newest of 37 All 37 (JSON)