From I/O to Code with Discovery Agent
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
The automatic synthesis of a program from any form of specification is regarded as a holy grail of computer science. Fueled by LLMs, NL2Code has achieved tremendous success, yet the fundamentally more challenging task of synthesizing programs from input-output behavior, which we refer to as IO2Code, remains largely unsolved. Whereas NL2Code can exploit the semantic alignment between natural language and code acquired during pretraining, IO2Code requires recovering underlying principles from concrete computational behavior, navigating a vast and underspecified hypothesis space. To address this, we propose DIO-Agent, a discovery agent for IO2Code. Our method frames IO2Code as an evolutionary search over discrete program space, in which an LLM serves as the mutation operator and concrete error signals from execution guide each mutation. To prevent the search from wandering into structurally complex yet incorrect dead ends, we introduce the Transformation Priority Premise as a mutation prior that biases the LLM toward the simplest hypothesis consistent with current evidence, progressively escalating from constants to conditionals to iteration only when simpler constructs are insufficient. To facilitate systematic study, we further construct an IO2CodeBench spanning multiple difficulty levels. Extensive experiments show that DIO-Agent consistently outperforms both traditional program-by-example method and SOTA evolution-agent baselines across all difficulty levels and various LLMs, while substantially surpassing test-time scaling strategies with equivalent sampling budgets.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 25 of its 38 references that are in the map. First posted on arXiv 14 May 2026.
Builds on
25 of 38 references.
Closest ancestors · 3
Same direction, newest first
- 2025CodeEvolve: an open source evolutionary coding agent for algorithmic discovery and optimization15 Oct
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discovery16 Jun
- 2023Self-collaboration Code Generation via ChatGPT15 Apr
Other references · 22
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 815
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2022Large Language Models Meet NL2Code: A Surveycited by 138
- 2023Self-planning Code Generation with Large Language Modelscited by 124
- 2018Mapping Language to Code in Programmatic Contextcited by 104
10 more
- 2026EvoX: Meta-Evolution for Automated Discoverycited by 60
- 2024Is Programming by Example solved by LLMs?cited by 27
- 2024Opening the AI black box: program synthesis via mechanistic interpretabilitycited by 20
- 2020Modeling Black-Box Components with Probabilistic Synthesiscited by 8
- 2024The First Prompt Counts the Most! An Evaluation of Large Language Models on Iterative Example-Based Code Generationcited by 7
- 2025LLM-Guided Compositional Program Synthesiscited by 5
- 2026Magellan: Autonomous Discovery of Novel Compiler Optimization Heuristics with AlphaEvolvecited by 5
- 2026Discovering Multiagent Learning Algorithms with Large Language Modelscited by 4
- 2025PBE Meets LLM: When Few Examples Aren't Few-Shot Enoughcited by 3
- 2023Programming by Example Made Easycited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Multi-agent Collaboration with State Managementcited by 6
- 2026Multi-agent Collaboration with State Management19 May 2026
Similar, not cited
Close in wording, no citation either way
- 2025CATArena: Evaluating Evolutionary Capabilities of Code Agents via Iterative Tournaments
- 2026Simple Baselines are Competitive with Code Evolution
- 2026AlgoEvo: Self-Evolving Agentic Search for Automated Algorithm Discovery
- 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Models
- 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solving
- 2026Inductive Deductive Synthesis: Enabling AI to Generate Formally Verified Systems
- 2025SEW: Self-Evolving Agentic Workflows for Automated Code Generation
- 2025CodeARC: Benchmarking Reasoning Capabilities of LLM Agents for Inductive Program Synthesis