Is Programming by Example solved by LLMs?
Not on the map. Why?
Abstract (arXiv)
Programming-by-Examples (PBE) aims to generate an algorithm from input-output examples. Such systems are practically and theoretically important: from an end-user perspective, they are deployed to millions of people, and from an AI perspective, PBE corresponds to a very general form of few-shot inductive inference. Given the success of Large Language Models (LLMs) in code-generation tasks, we investigate here the extent to which LLMs can be said to have "solved" PBE. We experiment on classic domains such as lists and strings, and an uncommon graphics programming domain not well represented in typical pretraining data. We find that pretrained models are not effective at PBE, but that they can be fine-tuned for much higher performance, provided the test problems are in-distribution. We analyze empirically what causes these models to succeed and fail, and take steps toward understanding how to achieve better out-of-distribution generalization. Collectively these results suggest that LLMs make strong progress toward solving the typical suite of PBE tasks, potentially increasing the flexibility and applicability of PBE systems, while also identifying ways in which LLMs still fall short.
Key facts. Cited by 27 papers in the map (data through 7 Oct 2026). Builds on 38 of its 65 references that are in the map. First posted on arXiv 12 Jun 2024.
Builds on
38 of 65 references.
References · 38
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2022Generating Sequences by Learning to Self-Correctcited by 271
26 more
- 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 228
- 2022ZeroGen: Efficient Zero-shot Learning via Dataset Generationcited by 209
- 2022Generating Training Data with Language Models: Towards Zero-Shot Language Understandingcited by 199
- 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 191
- 2016DeepCoder: Learning to Write Programscited by 145
- 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 124
- 2023Hypothesis Search: Inductive Reasoning with Language Modelscited by 119
- 2019Write, Execute, Assess: Program Synthesis with a REPLcited by 92
- 2023Phenomenal Yet Puzzling: Testing Inductive Reasoning Capabilities of Language Models with Hypothesis Refinementcited by 89
- 2022Parsel: Algorithmic Reasoning with Language Models by Composing Decompositionscited by 62
- 2024Code Repair with LLMs gives an Exploration-Exploitation Tradeoffcited by 50
- 2021Leveraging Language to Learn Program Abstractions and Search Heuristicscited by 44
- 2024DataDreamer: A Tool for Synthetic Data Generation and Reproducible LLM Workflowscited by 43
- 2021SpreadsheetCoder: Formula Prediction from Semi-structured Contextcited by 41
- 2018Neural-Guided Deductive Search for Real-Time Program Synthesis from Examplescited by 39
- 2020Synthesize, Execute and Debug: Learning to Repair for Neural Program Synthesiscited by 39
- 2022Fault-Aware Neural Code Rankerscited by 33
- 2024ReGAL: Refactoring Programs to Discover Generalizable Abstractionscited by 32
- 2024Doing Experiments and Revising Rules with Natural Language and Probabilistic Reasoningcited by 23
- 2023Human-like Few-Shot Learning via Bayesian Reasoning over Natural Languagecited by 21
- 2020Just-in-Time Learning for Bottom-Up Enumerative Synthesiscited by 18
- 2022CrossBeam: Learning to Search in Bottom-Up Program Synthesiscited by 18
- 2023ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesiscited by 17
- 2019Program-Guided Image Manipulatorscited by 12
- 2021Scaling Neural Program Synthesis with Distribution-based Searchcited by 6
- 2023LambdaBeam: Neural Program Search with Higher-Order Functions and Lambdascited by 6
Built on by
Citing papers per year: 2024: 2; 2025: 16; 2026: 9.
27 papers.
Sort:
By area:
- 2025Self-Improving Language Models for Evolutionary Program Synthesis: A Case Study on ARC-AGIcited by 34
- 2025TikZero: Zero-Shot Text-Guided Graphics Program Synthesiscited by 21
- 2025Generating Computational Cognitive Models using Large Language Modelscited by 12
- 2025EasyARC: Evaluating Vision Language Models on True Visual Reasoningcited by 10
- 2025ARC-GEN: A Mimetic Procedural Benchmark Generator for the Abstraction and Reasoning Corpuscited by 8
- 2024Generating Diverse Hypotheses for Inductive Reasoningcited by 6
- 2025Program Synthesis via Test-Time Transductioncited by 4
- 2025Programming by Examples Meets Historical Linguistics: A Large Language Model Based Approach to Sound Law Inductioncited by 3
- 2025LLM Priors for ERM over Programscited by 3
- 2024Can Large Language Models Code Like a Linguist?: A Case Study in Low Resource Sound Law Inductioncited by 2
- 2025Shedding Light in Task Decomposition in Program Synthesis: The Driving Force of the Synthesizer Modelcited by 2
- 2025PBEBench: A Multi-Step Programming by Examples Reasoning Benchmark inspired by Historical Linguisticscited by 2
15 more
- 2025A Compute-Matched Re-Evaluation of TroVE on MATHcited by 2
- 2025Beyond Either-Or Reasoning: Transduction and Induction as Cooperative Problem-Solving Paradigmscited by 1
- 2025MultiMat: Multimodal Program Synthesis for Procedural Materials using Large Multimodal Modelscited by 1
- 2025Generation of Programmatic Rules for Document Forgery Detection Using Large Language Modelscited by 1
- 2026ReaComp: Compiling LLM Reasoning into Symbolic Solvers for Efficient Program Synthesiscited by 1
- 2026From I/O to Code with Discovery Agentcited by 1
- 2025Ultra Strong Machine Learning: LLM-Generated Explanations Do Not Yet Suffice for Teaching Humans Active Learning Strategycited by 0
- 2025Analysis of Error Sources in LLM-based Hypothesis Search for Few-Shot Rule Inductioncited by 0
- 2026Prompt Driven Development with Claude Code: Building a Complete TUI Framework for the Ring Programming Languagecited by 0
- 2026XSearch: Explainable Code Search via Concept-to-Code Alignmentcited by 0
- 2026Hypothesis Generation and Inductive Inference in Children and Language Modelscited by 0
- 2026Geometry-Aware MCTS for Extremal Problems in Combinatorial Geometrycited by 0
- 2026Fixed-Set Robustness in Programming by Example: Example Corruption and Semantic Partition Recoverycited by 0
- 2026Solver-Aware Decompositions for Programming-by-Example: When Dividing Requires Knowing how to Conquercited by 0
- 2026Codoku: Renewable Program-Reasoning Challenges for Frontier Coding Agentscited by 0
- 2026Codoku: Renewable Program-Reasoning Challenges for Frontier Coding Agents28 Sep 2026
- 2026Solver-Aware Decompositions for Programming-by-Example: When Dividing Requires Knowing how to Conquer4 Aug 2026
- 2026Fixed-Set Robustness in Programming by Example: Example Corruption and Semantic Partition Recovery1 Jul 2026
- 2026Geometry-Aware MCTS for Extremal Problems in Combinatorial Geometry24 Jun 2026
- 2026Hypothesis Generation and Inductive Inference in Children and Language Models23 May 2026
- 2026XSearch: Explainable Code Search via Concept-to-Code Alignment15 May 2026
- 2026From I/O to Code with Discovery Agent14 May 2026
- 2026ReaComp: Compiling LLM Reasoning into Symbolic Solvers for Efficient Program Synthesis6 May 2026
- 2026Prompt Driven Development with Claude Code: Building a Complete TUI Framework for the Ring Programming Language24 Jan 2026
- 2025Generation of Programmatic Rules for Document Forgery Detection Using Large Language Models22 Dec 2025
- 2025ARC-GEN: A Mimetic Procedural Benchmark Generator for the Abstraction and Reasoning Corpus31 Oct 2025
- 2025LLM Priors for ERM over Programs16 Oct 2025
15 more
- 2025MultiMat: Multimodal Program Synthesis for Procedural Materials using Large Multimodal Models26 Sep 2025
- 2025Program Synthesis via Test-Time Transduction22 Sep 2025
- 2025Analysis of Error Sources in LLM-based Hypothesis Search for Few-Shot Rule Induction31 Aug 2025
- 2025Ultra Strong Machine Learning: LLM-Generated Explanations Do Not Yet Suffice for Teaching Humans Active Learning Strategy31 Aug 2025
- 2025A Compute-Matched Re-Evaluation of TroVE on MATH16 Jul 2025
- 2025Self-Improving Language Models for Evolutionary Program Synthesis: A Case Study on ARC-AGI10 Jul 2025
- 2025EasyARC: Evaluating Vision Language Models on True Visual Reasoning13 Jun 2025
- 2025PBEBench: A Multi-Step Programming by Examples Reasoning Benchmark inspired by Historical Linguistics29 May 2025
- 2025Beyond Either-Or Reasoning: Transduction and Induction as Cooperative Problem-Solving Paradigms20 May 2025
- 2025TikZero: Zero-Shot Text-Guided Graphics Program Synthesis14 Mar 2025
- 2025Shedding Light in Task Decomposition in Program Synthesis: The Driving Force of the Synthesizer Model11 Mar 2025
- 2025Generating Computational Cognitive Models using Large Language Models2 Feb 2025
- 2025Programming by Examples Meets Historical Linguistics: A Large Language Model Based Approach to Sound Law Induction27 Jan 2025
- 2024Generating Diverse Hypotheses for Inductive Reasoning18 Dec 2024
- 2024Can Large Language Models Code Like a Linguist?: A Case Study in Low Resource Sound Law Induction18 Jun 2024
- 2025EasyARC: Evaluating Vision Language Models on True Visual Reasoningcited by 10
- 2024Generating Diverse Hypotheses for Inductive Reasoningcited by 6
- 2025PBEBench: A Multi-Step Programming by Examples Reasoning Benchmark inspired by Historical Linguisticscited by 2
- 2026ReaComp: Compiling LLM Reasoning into Symbolic Solvers for Efficient Program Synthesiscited by 1
- 2026Codoku: Renewable Program-Reasoning Challenges for Frontier Coding Agentscited by 0
- 2026Codoku: Renewable Program-Reasoning Challenges for Frontier Coding Agents28 Sep 2026
- 2026ReaComp: Compiling LLM Reasoning into Symbolic Solvers for Efficient Program Synthesis6 May 2026
- 2025EasyARC: Evaluating Vision Language Models on True Visual Reasoning13 Jun 2025
- 2025PBEBench: A Multi-Step Programming by Examples Reasoning Benchmark inspired by Historical Linguistics29 May 2025
- 2024Generating Diverse Hypotheses for Inductive Reasoning18 Dec 2024
- 2026Hypothesis Generation and Inductive Inference in Children and Language Models23 May 2026
- 2026From I/O to Code with Discovery Agent14 May 2026
- 2025TikZero: Zero-Shot Text-Guided Graphics Program Synthesiscited by 21
- 2025Generating Computational Cognitive Models using Large Language Modelscited by 12
- 2025ARC-GEN: A Mimetic Procedural Benchmark Generator for the Abstraction and Reasoning Corpuscited by 8
- 2025Program Synthesis via Test-Time Transductioncited by 4
- 2025Programming by Examples Meets Historical Linguistics: A Large Language Model Based Approach to Sound Law Inductioncited by 3
- 2025LLM Priors for ERM over Programscited by 3
- 2024Can Large Language Models Code Like a Linguist?: A Case Study in Low Resource Sound Law Inductioncited by 2
- 2025Shedding Light in Task Decomposition in Program Synthesis: The Driving Force of the Synthesizer Modelcited by 2
- 2025A Compute-Matched Re-Evaluation of TroVE on MATHcited by 2
- 2025Beyond Either-Or Reasoning: Transduction and Induction as Cooperative Problem-Solving Paradigmscited by 1
- 2025Generation of Programmatic Rules for Document Forgery Detection Using Large Language Modelscited by 1
- 2025Ultra Strong Machine Learning: LLM-Generated Explanations Do Not Yet Suffice for Teaching Humans Active Learning Strategycited by 0
12 most cited of 18 All 18 (JSON)
- 2026Solver-Aware Decompositions for Programming-by-Example: When Dividing Requires Knowing how to Conquer4 Aug 2026
- 2026Fixed-Set Robustness in Programming by Example: Example Corruption and Semantic Partition Recovery1 Jul 2026
- 2026Geometry-Aware MCTS for Extremal Problems in Combinatorial Geometry24 Jun 2026
- 2026XSearch: Explainable Code Search via Concept-to-Code Alignment15 May 2026
- 2026Prompt Driven Development with Claude Code: Building a Complete TUI Framework for the Ring Programming Language24 Jan 2026
- 2025Generation of Programmatic Rules for Document Forgery Detection Using Large Language Models22 Dec 2025
- 2025ARC-GEN: A Mimetic Procedural Benchmark Generator for the Abstraction and Reasoning Corpus31 Oct 2025
- 2025LLM Priors for ERM over Programs16 Oct 2025
- 2025Program Synthesis via Test-Time Transduction22 Sep 2025
- 2025Analysis of Error Sources in LLM-based Hypothesis Search for Few-Shot Rule Induction31 Aug 2025
- 2025Ultra Strong Machine Learning: LLM-Generated Explanations Do Not Yet Suffice for Teaching Humans Active Learning Strategy31 Aug 2025
- 2025A Compute-Matched Re-Evaluation of TroVE on MATH16 Jul 2025
12 newest of 18 All 18 (JSON)