mlsanityData to 14 Oct 2026

A Neural Network Solves, Explains, and Generates University Math Problems by Program Synthesis and Few-Shot Learning at Human Level

arXiv 2112.15594 ↗First posted 31 Dec 2021cs.LG cs.AIcited by 96

Not on the map. Why?

Cited by 22 in LLM reasoning, but placed by its own abstract, which didn’t fit.

Abstract (arXiv)

We demonstrate that a neural network pre-trained on text and fine-tuned on code solves mathematics course problems, explains solutions, and generates new questions at a human level. We automatically synthesize programs using few-shot learning and OpenAI's Codex transformer and execute them to solve course problems at 81% automatic accuracy. We curate a new dataset of questions from MIT's largest mathematics courses (Single Variable and Multivariable Calculus, Differential Equations, Introduction to Probability and Statistics, Linear Algebra, and Mathematics for Computer Science) and Columbia University's Computational Linear Algebra. We solve questions from a MATH dataset (on Prealgebra, Algebra, Counting and Probability, Intermediate Algebra, Number Theory, and Precalculus), the latest benchmark of advanced mathematics problems designed to assess mathematical reasoning. We randomly sample questions and generate solutions with multiple modalities, including numbers, equations, and plots. The latest GPT-3 language model pre-trained on text automatically solves only 18.8% of these university questions using zero-shot learning and 30.8% using few-shot learning and the most recent chain of thought prompting. In contrast, program synthesis with few-shot learning using Codex fine-tuned on code generates programs that automatically solve 81% of these questions. Our approach improves the previous state-of-the-art automatic solution accuracy on the benchmark topics from 8.8% to 81.1%. We perform a survey to evaluate the quality and difficulty of generated questions. This work is the first to automatically solve university-level mathematics course questions at a human level and the first work to explain and generate university-level mathematics course questions at scale, a milestone for higher education.

Key facts. Cited by 96 papers in the map (data through 14 Oct 2026). Builds on 4 of its 19 references that are in the map. First posted on arXiv 31 Dec 2021.

Builds on

4 of 19 references.

References · 4

  1. 2021Generate & Rank: A Multi-task Framework for Math Word Problemscited by 82
  2. 2020Semantically-Aligned Universal Tree-Structured Solver for Math Word Problemscited by 35
  3. 2021MWP-BERT: Numeracy-Augmented Pre-training for Math Word Problem Solvingcited by 32
  4. 2020Graph-to-Tree Neural Networks for Learning Structured Input-Output Translation with Applications to Semantic Parsing and Math Word Problemcited by 31

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 17; 2023: 40; 2024: 20; 2025: 16; 2026: 3.

96 papers.

Sort:

By area:

  1. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
  2. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,392
  3. 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 886
  4. 2023Augmented Language Models: a Surveycited by 403
  5. 2022Using cognitive psychology to understand GPT-3cited by 398
  6. 2023Logic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical Reasoningcited by 391
  7. 2022CodeT: Code Generation with Generated Testscited by 384
  8. 2023MINT: Evaluating LLMs in Multi-turn Interaction with Tools and Language Feedbackcited by 297
  9. 2022Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofscited by 291
  10. 2024Large Language Models for Mathematical Reasoning: Progresses and Challengescited by 284
  11. 2022Transformers Learn Shortcuts to Automatacited by 268
  12. 2023ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddingscited by 240
38 more
  1. 2023LINC: A Neurosymbolic Approach for Logical Reasoning by Combining Language Models with First-Order Logic Proverscited by 168
  2. 2022Large Language Models Meet NL2Code: A Surveycited by 138
  3. 2022MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generationcited by 136
  4. 2024Exploring Large Language Model based Intelligent Agents: Definitions, Methods, and Prospectscited by 132
  5. 2023CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsetscited by 129
  6. 2022Automatic Generation of Programming Exercises and Code Explanations using Large Language Modelscited by 126
  7. 2023Chain of Code: Reasoning with a Language Model-Augmented Code Emulatorcited by 123
  8. 2023Practical and Ethical Challenges of Large Language Models in Education: A Systematic Scoping Reviewcited by 83
  9. 2025Fin-R1: A Large Language Model for Financial Reasoning through Reinforcement Learningcited by 83
  10. 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 79
  11. 2022NaturalProver: Grounded Mathematical Proof Generation with Language Modelscited by 72
  12. 2022Repair Is Nearly Generation: Multilingual Program Repair with LLMscited by 68
  13. 2023MathChat: Converse to Tackle Challenging Math Problems with LLM Agentscited by 68
  14. 2023Are Large Language Models Really Good Logical Reasoners? A Comprehensive Evaluation and Beyondcited by 65
  15. 2023"It's Weird That it Knows What I Want": Usability and Interactions with Copilot for Novice Programmerscited by 64
  16. 2024ToolNet: Connecting Large Language Models with Massive Tools via Tool Graphcited by 60
  17. 2023Meta-in-context learning in large language modelscited by 59
  18. 2023Large Language Models and Simple, Stupid Bugscited by 45
  19. 2023Blind Judgement: Agent-Based Supreme Court Modelling With GPTcited by 38
  20. 2024MATHSENSEI: A Tool-Augmented Large Language Model for Mathematical Reasoningcited by 34
  21. 2024AutoVFX: Physically Realistic Video Editing from Natural Language Instructionscited by 27
  22. 2023Lyra: Orchestrating Dual Correction in Automated Theorem Provingcited by 25
  23. 2022Are Deep Neural Networks SMARTer than Second Graders?cited by 24
  24. 2023Mathematical Language Models: A Surveycited by 24
  25. 2023Can ChatGPT be used to generate scientific hypotheses?cited by 21
  26. 2023ChatGPT Participates in a Computer Science Examcited by 19
  27. 2023Can neural networks do arithmetic? A survey on the elementary numerical skills of state-of-the-art deep learning modelscited by 18
  28. 2023Exploring the Robustness of Large Language Models for Solving Programming Problemscited by 16
  29. 2023Using Large Language Model to Solve and Explain Physics Word Problems Approaching Human Levelcited by 16
  30. 2025ORFS-agent: Tool-Using Agents for Chip Design Optimizationcited by 14
  31. 2023When Automated Assessment Meets Automated Content Generation: Examining Text Quality in the Era of GPTscited by 13
  32. 2025Is Your LLM Overcharging You? Tokenization, Transparency, and Incentivescited by 13
  33. 2023Mathematics, word problems, common sense, and artificial intelligencecited by 12
  34. 2023Design of Chain-of-Thought in Math Problem Solvingcited by 12
  35. 2024Mathify: Evaluating Large Language Models on Mathematical Problem Solving Taskscited by 12
  36. 2025A Survey on Mathematical Reasoning and Optimization with Large Language Modelscited by 12
  37. 2023World Models for Math Story Problemscited by 11
  38. 2023OlaGPT: Empowering LLMs With Human-like Problem-Solving Abilitiescited by 10

50 most cited of 96 All 96 (JSON)