Executable Functional Abstractions: Inferring Generative Programs for Advanced Math Problems
Not on the map. Why?
Abstract (arXiv)
Scientists often infer abstract procedures from specific instances of problems and use the abstractions to generate new, related instances. For example, programs encoding the formal rules and properties of a system have been useful in fields ranging from reinforcement learning (procedural environments) to physics (simulation engines). These programs can be seen as functions which execute to different outputs based on their parameterizations (e.g., gridworld configuration or initial physical conditions). We introduce the term EFA (Executable Functional Abstraction) to denote such programs for math problems. EFA-like constructs have been shown to be useful for mathematical reasoning as problem generators for stress-testing models. However, prior work has been limited to automatically constructing abstractions for grade-school math (whose simple rules are easy to encode in programs), while generating EFAs for advanced math has thus far required human engineering. We explore the automatic construction of EFAs for advanced mathematics problems by developing EFAGen, which operationalizes the task of automatically inferring an EFA for a given seed problem and solution as a program synthesis task. We first formalize the properties of any valid EFA as executable unit tests. Using execution feedback from the unit tests, we search over candidate programs sampled from a LLM to find EFA programs that are faithful to the generalized problem and solution class underlying the seed problem. We then apply the tests as a reward signal, training LLMs to become better writers of EFAs. We show that EFAs inferred by EFAGen are faithful to the seed problems, produce learnable problem variations, and that EFAGen can infer EFAs across diverse sources of competition-level math problems. Finally, we show uses of model-written EFAs e.g., finding harder/easier problem variants, as well as data generation.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 28 of its 41 references that are in the map. First posted on arXiv 14 Apr 2025.
Builds on
28 of 41 references.
References · 28
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2023Let's Verify Step by Stepcited by 3,789
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
- 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
- 2022STaR: Bootstrapping Reasoning With Reasoningcited by 940
- 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 841
16 more
- 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 735
- 2023RAFT: Reward rAnked FineTuning for Generative Foundation Model Alignmentcited by 686
- 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instructcited by 625
- 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Modelscited by 550
- 2023MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuningcited by 487
- 2023Beyond Human Data: Scaling Self-Training for Problem-Solving with Language Modelscited by 349
- 2023Holodeck: Language Guided Generation of 3D Embodied AI Environmentscited by 268
- 2018BabyAI: A Platform to Study the Sample Efficiency of Grounded Language Learningcited by 244
- 2024Physics of Language Models: Part 2.1, Grade-School Math and the Hidden Reasoning Processcited by 108
- 2025MATH-Perturb: Benchmarking LLMs' Math Reasoning Abilities against Hard Perturbationscited by 89
- 2024Functional Benchmarks for Robust Evaluation of Reasoning Performance, and the Reasoning Gapcited by 79
- 2024AceMath: Advancing Frontier Math Reasoning with Post-Training and Reward Modelingcited by 77
- 2024AI-Assisted Generation of Difficult Math Questionscited by 37
- 2024DARG: Dynamic Evaluation of Large Language Models via Adaptive Reasoning Graphcited by 26
- 2024DataEnvGym: Data Generation Agents in Teacher Environments with Student Feedbackcited by 25
- 2025How to Get Your LLM to Generate Challenging Problems for Evaluationcited by 11
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2026Evolving Programmatic Skill Networkscited by 7
- 2025Improving Language Agents through BREW: Bootstrapping expeRientially-learned Environmental knoWledgecited by 3
- 2026Question Begets Question: Self-Evolving Curriculum for Reinforcement Fine-Tuning on Competition Mathematicscited by 2
- 2026The Missing Primitive: Diagnosing and Repairing Mathematical Reasoning in Large Language Modelscited by 0
- 2026The Missing Primitive: Diagnosing and Repairing Mathematical Reasoning in Large Language Models1 Oct 2026
- 2026Question Begets Question: Self-Evolving Curriculum for Reinforcement Fine-Tuning on Competition Mathematics2 Aug 2026
- 2026Evolving Programmatic Skill Networks7 Jan 2026
- 2025Improving Language Agents through BREW: Bootstrapping expeRientially-learned Environmental knoWledge25 Nov 2025
Similar, not cited
Close in wording, no citation either way
- 2022Peano: Learning Formal Mathematical Reasoning
- 2022LEMMA: Bootstrapping High-Level Mathematical Reasoning with Learned Symbolic Abstractions
- 2026Verifier-Backed Hard Problem Generation for Mathematical Reasoning
- 2025CORE: Concept-Oriented Reinforcement for Bridging the Definition-Application Gap in Mathematical Reasoning
- 2026Adaptive Problem Generation via Symbolic Representations
- 2026Artificial Intelligence for Mathematical Reasoning: An Integrated Survey of Language Models, Neuro-symbolic Systems, and Verified Discovery
- 2026Measuring Progress in Reasoning Toward Mathematical Discovery with Automatic Verification
- 2025Schoenfeld's Anatomy of Mathematical Reasoning by Language Models