arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.08171cs.LGcs.AIcs.CL
收藏

用程序合成求解线性代数

Solving Linear Algebra by Program Synthesis

MIT(麻省理工学院);Columbia University(哥伦比亚大学)

Iddo Drori, Nakul Verma

摘要:

我们解决了麻省理工学院的线性代数18.06课程和哥伦比亚大学的计算线性代数COMS3251课程完美的准确性,通过交互式程序合成。这个令人惊讶的强大结果是通过将课程问题转化为编程任务,然后运行程序产生正确的答案来实现的。我们使用OpenAI Codex和零样本学习,在提示中不提供任何示例,从问题中合成代码。我们量化了原始问题文本和产生正确答案的转换后问题文本之间的差异。由于所有COMS3251问题都无法在线获得,因此该模型不是过拟合。我们不仅仅是生成代码的问题与数字的答案,通过交互式生成代码,也结果视觉上令人愉快的图作为输出。最后,我们自动生成新的问题,给出了一些样本问题,可用作新的课程内容。这项工作是解决定量数学问题的重要一步,并为通过机器解决许多大学水平的STEM课程打开了大门。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑