Solving Linear Algebra by Program Synthesis

11/16/2021
by   Iddo Drori, et al.
0

We solve MIT's Linear Algebra 18.06 course and Columbia University's Computational Linear Algebra COMS3251 courses with perfect accuracy by interactive program synthesis. This surprisingly strong result is achieved by turning the course questions into programming tasks and then running the programs to produce the correct answers. We use OpenAI Codex with zero-shot learning, without providing any examples in the prompts, to synthesize code from questions. We quantify the difference between the original question text and the transformed question text that yields a correct answer. Since all COMS3251 questions are not available online the model is not overfitting. We go beyond just generating code for questions with numerical answers by interactively generating code that also results visually pleasing plots as output. Finally, we automatically generate new questions given a few sample questions which may be used as new course content. This work is a significant step forward in solving quantitative math problems and opens the door for solving many university level STEM courses by machine.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/14/2022

Limits of an AI program for solving college math problems

Drori et al. (2022) report that "A neural network solves, explains, and ...
research
06/11/2022

A Dataset and Benchmark for Automatically Answering and Generating Machine Learning Final Exams

Can a machine learn machine learning? We propose to answer this question...
research
04/19/2022

Write a Line: Tests with Answer Templates and String Completion Hints for Self-Learning in a CS1 Course

One of the important scaffolding tasks in programming learning is writin...
research
06/01/2021

Automated Grading of Anatomical Objective Structured Practical Exams Using Decision Trees

An Objective Structured Practical Examination (OSPE) is an effective and...
research
04/16/2022

What If: Generating Code to Answer Simulation Questions

Many texts, especially in chemistry and biology, describe complex proces...
research
03/13/2023

Analyzing ChatGPT's Aptitude in an Introductory Computer Engineering Course

ChatGPT has recently gathered attention from the general public and acad...
research
05/30/2023

Chatbots put to the test in math and logic problems: A preliminary comparison and assessment of ChatGPT-3.5, ChatGPT-4, and Google Bard

A comparison between three chatbots which are based on large language mo...

Please sign up or login with your details

Forgot password? Click here to reset