Interactive Program Induction with Language Model Priors
Not on the map. Why?
Abstract (arXiv)
Program induction refers to the process in which a learner aims to recover a program from a few given input-output examples. This paradigm broadens programming access by letting users demonstrate the rule-based behavior they want to apply to unseen data, instead of having to implement it themselves. However, recovering a program from finite input-output examples is fundamentally ambiguous, as a finite set of input-output examples is theoretically consistent with infinitely many programs whose output diverges on unseen inputs. We view this problem from a Bayesian perspective, where, given a prior p0 over programs, identifying the target program means concentrating posterior probability mass on it by observing additional input-output examples. In the interactive program induction setting, the learner chooses maximally informative inputs and queries an oracle, such as the user, for their outputs. We derive a greedy query-selection algorithm and show that it terminates after O(frac1γlog 1/p0(f^star)) informative oracle queries, and returns the target program f^star up to approximate equivalence when no other class outweighs it under the prior. The algorithm uses a language model as the prior under a PAC-style relaxation of program equivalence, where the query-selection objective is estimated using importance sampling. On the CodeARC benchmark, the algorithm improves accuracy over the LM only agent by up to 22 percentage points while observing up to 10.5 fewer input-output examples.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 21 of its 52 references that are in the map. Submitted 13 Nov 2026.
Builds on
21 of 52 references.
References · 21
- 2021Evaluating Large Language Models Trained on Codecited by 8,938
- 2021Program Synthesis with Large Language Modelscited by 3,972
- 2022Competition-Level Code Generation with AlphaCodecited by 1,510
- 2022CodeT: Code Generation with Generated Testscited by 411
- 2022Natural Language to Code Translation with Executioncited by 128
- 2025Active Task Disambiguation with LLMscited by 29
- 2024Is Programming by Example solved by LLMs?cited by 28
- 2024Doing Experiments and Revising Rules with Natural Language and Probabilistic Reasoningcited by 27
- 2019Bayesian Synthesis of Probabilistic Programs for Automatic Data Modelingcited by 21
- 2025CodeARC: Benchmarking Reasoning Capabilities of LLM Agents for Inductive Program Synthesiscited by 20
- 2015A Theory of Formal Synthesis via Inductive Learningcited by 18
- 2024HYSYNTH: Context-Free LLM Approximation for Guiding Program Synthesiscited by 17
9 more
- 2025Shoot First, Ask Questions Later? Building Rational Agents that Explore and Act Like Peoplecited by 15
- 2024Guiding Enumerative Program Synthesis with Large Language Modelscited by 10
- 2024Mokav: Execution-driven Differential Testing with LLMscited by 8
- 2025Program Synthesis via Test-Time Transductioncited by 5
- 2024On Affine Homotopy between Language Encoderscited by 4
- 2025LLM Priors for ERM over Programscited by 4
- 2025Active Learning for Neurosymbolic Program Synthesiscited by 2
- 2026PleaSQLarify: Visual Pragmatic Repair for Natural Language Database Queryingcited by 2
- 2020Information-theoretic User Interaction: Significant Inputs for Program Synthesiscited by 1
Built on by
Not cited yet.