LLM Priors for ERM over Programs
Not on the map. Why?
Abstract (arXiv)
We study program-learning methods that are efficient in both samples and computation. Classical learning theory suggests that when the target admits a short program description, for example a short piece of ``Python code'', it can be learned from few examples by ERM over the program class. However, this approach relies on enumerating candidate programs, which is typically exponential in the description length; gradient-based training avoids this explicit search but, for some families of short programs, can require exponentially many samples to succeed. We propose textscLLM-PV, a propose-and-verify recipe that enables ERM-style selection over a discrete program class without exhaustive enumeration: a pretrained LLM induces a proposal distribution over candidate programs, each proposal is executed and scored on a held-out validation set, and the best program is selected, with no gradient updates or validation feedback used to adapt the sampling distribution. Across algorithmic tasks including parity variants, pattern matching, and primality testing, textscLLM-PV often recovers the exact underlying rule from a small labeled set and generalizes far beyond the training sequence lengths, while SGD-trained transformers, fine-tuning, in-context learning, and classical ML baselines can fit the training data yet fail to generalize reliably. Together, these results suggest that pretrained LLM priors can serve as effective search biases for ERM, narrowing the gap between statistical and computational efficiency.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 27 of its 63 references that are in the map. First posted on arXiv 16 Oct 2025.
Builds on
27 of 63 references.
References · 27
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2022TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Secondcited by 643
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
- 2023MLAgentBench: Evaluating Language Agents on Machine Learning Experimentationcited by 339
- 2025AIDE: AI-Driven Exploration in the Space of Codecited by 206
- 2022Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limitcited by 184
15 more
- 2019On the Power and Limitations of Random Features for Understanding Neural Networkscited by 103
- 2021Jigsaw: Large Language Models meet Program Synthesiscited by 103
- 2017Failures of Gradient-Based Deep Learningcited by 79
- 2020Learning Parities with Neural Networkscited by 77
- 2017SGD Learns the Conjugate Kernel Class of the Networkcited by 54
- 2025Self-Improving Language Models for Evolutionary Program Synthesis: A Case Study on ARC-AGIcited by 34
- 2021On the Power of Differentiable Learning versus PAC and SQ Learningcited by 27
- 2024Is Programming by Example solved by LLMs?cited by 27
- 2016A General Characterization of the Statistical Query Complexitycited by 26
- 2020Statistical Queries and Statistical Algorithms: Foundations and Applicationscited by 21
- 2015Program Synthesis from Polymorphic Refinement Typescited by 20
- 2025CodeARC: Benchmarking Reasoning Capabilities of LLM Agents for Inductive Program Synthesiscited by 15
- 2013On the Complexity of Random Satisfiability Problems with Planted Solutionscited by 14
- 2025On the Statistical Query Complexity of Learning Semiautomata: a Random Walk Approachcited by 2
- 2024LEGO: Language Model Building Blockscited by 1
Built on by
Citing papers per year: 2026: 3.
3 papers.