Program Synthesis via Test-Time Transduction
Not on the map. Why?
Abstract (arXiv)
We introduce transductive program synthesis, a new formulation of the program synthesis task that explicitly leverages test inputs during synthesis. While prior approaches to program synthesis--whether based on natural language descriptions or input-output examples--typically aim to generalize from training examples, they often struggle with robustness, especially in real-world settings where training examples are limited and test inputs involve various edge cases. To address this, we propose a novel framework that improves robustness by treating synthesis as an active learning over a finite hypothesis class defined by programs' outputs. We use an LLM to predict outputs for selected test inputs and eliminate inconsistent hypotheses, where the inputs are chosen via a greedy maximin algorithm to minimize the number of LLM queries required. We evaluate our approach on four benchmarks: Playgol, MBPP+, 1D-ARC, and programmatic world modeling on MiniGrid. We demonstrate that our method significantly improves program synthesis in both accuracy and efficiency. We release our code at https://github.com/klee972/SYNTRA.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 33 of its 51 references that are in the map. First posted on arXiv 22 Sep 2025.
Builds on
33 of 51 references.
References · 33
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 358
- 2023Minigrid & Miniworld: Modular & Customizable Reinforcement Learning Environments for Goal-Oriented Taskscited by 327
- 2023Large Language Models as General Pattern Machinescited by 197
- 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 126
- 2022Natural Language to Code Translation with Executioncited by 124
- 2023Hypothesis Search: Inductive Reasoning with Language Modelscited by 120
21 more
- 2024WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environmentcited by 107
- 2023Phenomenal Yet Puzzling: Testing Inductive Reasoning Capabilities of Language Models with Hypothesis Refinementcited by 89
- 2024Planning In Natural Language Improves LLM Search For Code Generationcited by 83
- 2024Symbolic Regression with a Learned Concept Librarycited by 83
- 2023LLMs and the Abstraction and Reasoning Corpus: Successes, Failures, and the Importance of Object-based Representationscited by 82
- 2024Combining Induction and Transduction for Abstract Reasoningcited by 53
- 2024Code Repair with LLMs gives an Exploration-Exploitation Tradeoffcited by 51
- 2021SpreadsheetCoder: Formula Prediction from Semi-structured Contextcited by 41
- 2024Exploring Precision and Recall to assess the quality and diversity of LLMscited by 29
- 2024Is Programming by Example solved by LLMs?cited by 27
- 2024Doing Experiments and Revising Rules with Natural Language and Probabilistic Reasoningcited by 24
- 2023Human-like Few-Shot Learning via Bayesian Reasoning over Natural Languagecited by 22
- 2024Divide-and-Conquer Meets Consensus: Unleashing the Power of Functions in Code Generationcited by 19
- 2020Learning to Represent Programs with Property Signaturescited by 16
- 2024Loose LIPS Sink Ships: Asking Questions in Battleship with Language-Informed Program Samplingcited by 12
- 2024A Deep Dive Into Large Language Model Code Generation Mistakes: What and Why?cited by 10
- 2019Playgol: learning programs through playcited by 8
- 2024Generating Diverse Hypotheses for Inductive Reasoningcited by 6
- 2025LLM-Guided Compositional Program Synthesiscited by 5
- 2023Bayesian Program Learning by Decompiling Amortized Knowledgecited by 2
- 2023Weakly Supervised Semantic Parsing with Execution-based Spurious Program Filteringcited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2025A Survey of Inductive Reasoning for Large Language Modelscited by 8
- 2026LiSA: Lifelong Safety Adaptation via Conservative Policy Inductioncited by 3
- 2026Don't Let Me Ask for It: LLMs Show Deficiencies in Active Multi-Turn Information Acquisition for Abductive Inferencecited by 0
- 2026Confidence-Gated Transductive Test Generation for Code Rerankingcited by 0
- 2026Confidence-Gated Transductive Test Generation for Code Reranking11 Sep 2026
- 2026Don't Let Me Ask for It: LLMs Show Deficiencies in Active Multi-Turn Information Acquisition for Abductive Inference4 Aug 2026
- 2026LiSA: Lifelong Safety Adaptation via Conservative Policy Induction14 May 2026
- 2025A Survey of Inductive Reasoning for Large Language Models11 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025CodeARC: Benchmarking Reasoning Capabilities of LLM Agents for Inductive Program Synthesis
- 2025HardTests: Synthesizing High-Quality Test Cases for LLM Coding
- 2026Selective Left-Shift: Turning Test-Time Compute and Difficulty-based Curation into Training Data for Low-Resource Code Generation
- 2025CodeChemist: Test-Time Scaling for Low-Resource Code Generation via Functional Knowledge Transfer
- 2024VerMCTS: Synthesizing Multi-Step Programs using a Verifier, a Large Language Model, and Tree Search
- 2024Opening the AI black box: program synthesis via mechanistic interpretability
- 2026TTCS: Test-Time Curriculum Synthesis for Self-Evolving
- 2023Turbulence: Systematically and Automatically Testing Instruction-Tuned Large Language Models for Code