Solving Linear Algebra by Program Synthesis

By Iddo Drori, Nakul Verma. 2021

20 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Computer Science Applications, Information Systems, Large Language Models, Natural Language Processing

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yoshua Bengio
  2. Mohit Bansal
  3. Sergey Levine
  4. Jianfeng Gao
  5. Ruslan Salakhutdinov
  6. Quoc V. Le
  7. Percy Liang
  8. Pushmeet Kohli

In Computer Science Applications

  1. Pushmeet Kohli
  2. Oriol Vinyals
  3. Nando de Freitas
  4. Yanqiao Zhu
  5. Yichen Xu
  6. Michel C. Desmarais

In Information Systems

  1. Xinyun Chen
  2. Oriol Vinyals
  3. Pushmeet Kohli
  4. Nate Kushman
  5. Foutse Khomh
  6. Nando de Freitas
  7. Johannes Welbl
  8. Po-Sen Huang

In Large Language Models

  1. Xinyun Chen
  2. Oriol Vinyals
  3. Johannes Welbl
  4. Igor Babuschkin
  5. Koray Kavukcuoglu
  6. Yanqiao Zhu
  7. Yichen Xu
  8. Junyoung Chung

In Natural Language Processing

  1. Xinyun Chen
  2. Mohit Bansal
  3. Yoshua Bengio
  4. Pushmeet Kohli
  5. Quoc V. Le
  6. Percy Liang
  7. Junyoung Chung
  8. Jianfeng Gao

Citations in the corpus