A neural network solves, explains, and generates university math problems by program synthesis and few-shot learning at human level.

and generating questions answering explaining mathematics courses neural networks

Journal

Proceedings of the National Academy of Sciences of the United States of America
ISSN: 1091-6490
Titre abrégé: Proc Natl Acad Sci U S A
Pays: United States
ID NLM: 7505876

Informations de publication

Date de publication:
09 08 2022
Historique:
entrez: 2 8 2022
pubmed: 3 8 2022
medline: 5 8 2022
Statut: ppublish

Résumé

We demonstrate that a neural network pretrained on text and fine-tuned on code solves mathematics course problems, explains solutions, and generates 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 dataset of questions from Massachusetts Institute of Technology (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 pretrained 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 automatically solves university-level mathematics course questions at a human level and explains and generates university-level mathematics course questions at scale, a milestone for higher education.

Identifiants

pubmed: 35917350
doi: 10.1073/pnas.2123433119
pmc: PMC9371704
doi:

Types de publication

Journal Article

Langues

eng

Sous-ensembles de citation

IM

Pagination

e2123433119

Références

Proc Natl Acad Sci U S A. 2022 Aug 9;119(32):e2123433119
pubmed: 35917350

Auteurs

Iddo Drori (I)

Department of Electrical Engineering and Computer Science, Massachusetts Institute of Technology, Cambridge, MA 02139, United States of America.
Department of Computer Science, Columbia University, New York, NY 10027, United States of America.

Sarah Zhang (S)

Department of Mathematics, Massachusetts Institute of Technology, Cambridge, MA 02139, United States of America.

Reece Shuttleworth (R)

Department of Electrical Engineering and Computer Science, Massachusetts Institute of Technology, Cambridge, MA 02139, United States of America.

Leonard Tang (L)

Department of Mathematics, Harvard University, Cambridge, MA 02138, United States of America.

Albert Lu (A)

Department of Electrical Engineering and Computer Science, Massachusetts Institute of Technology, Cambridge, MA 02139, United States of America.

Elizabeth Ke (E)

Department of Electrical Engineering and Computer Science, Massachusetts Institute of Technology, Cambridge, MA 02139, United States of America.

Kevin Liu (K)

Department of Electrical Engineering and Computer Science, Massachusetts Institute of Technology, Cambridge, MA 02139, United States of America.

Linda Chen (L)

Department of Electrical Engineering and Computer Science, Massachusetts Institute of Technology, Cambridge, MA 02139, United States of America.

Sunny Tran (S)

Department of Electrical Engineering and Computer Science, Massachusetts Institute of Technology, Cambridge, MA 02139, United States of America.

Newman Cheng (N)

Department of Computer Science, Columbia University, New York, NY 10027, United States of America.

Roman Wang (R)

Department of Computer Science, Columbia University, New York, NY 10027, United States of America.

Nikhil Singh (N)

Media Lab, Massachusetts Institute of Technology, Cambridge, MA 02139, United States of America.

Taylor L Patti (TL)

Department of Physics, Harvard University, Cambridge, MA 02138, United States of America.

Jayson Lynch (J)

School of Computer Science, University of Waterloo, Waterloo, ON N2L 3G1, Canada.

Avi Shporer (A)

Department of Physics and Kavli Institute for Astrophysics and Space Research, Massachusetts Institute of Technology, Cambridge, MA 02139, United States of America.

Nakul Verma (N)

Department of Computer Science, Columbia University, New York, NY 10027, United States of America.

Eugene Wu (E)

Department of Computer Science, Columbia University, New York, NY 10027, United States of America.

Gilbert Strang (G)

Department of Mathematics, Massachusetts Institute of Technology, Cambridge, MA 02139, United States of America.

Articles similaires

[Redispensing of expensive oral anticancer medicines: a practical application].

Lisanne N van Merendonk, Kübra Akgöl, Bastiaan Nuijen
1.00
Humans Antineoplastic Agents Administration, Oral Drug Costs Counterfeit Drugs

Smoking Cessation and Incident Cardiovascular Disease.

Jun Hwan Cho, Seung Yong Shin, Hoseob Kim et al.
1.00
Humans Male Smoking Cessation Cardiovascular Diseases Female
Humans United States Aged Cross-Sectional Studies Medicare Part C
1.00
Humans Yoga Low Back Pain Female Male

Classifications MeSH