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

用程序合成求解概率统计问题

Solving Probability and Statistics Problems by Program Synthesis

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

Leonard Tang, Elizabeth Ke, Nikhil Singh, Nakul Verma, Iddo Drori

摘要:

我们使用OpenAI的Codex,一个经过文本训练和代码微调的Transformer,通过程序合成来解决大学水平的概率和统计问题。我们将麻省理工学院的18.05概率与统计导论和哈佛大学的STAT110概率转换为编程任务。然后我们执行生成的代码以获得解决方案。由于这些课程问题是基于概率的,我们通常的目标是让Codex生成概率程序,模拟大量的概率依赖关系来计算其解决方案。我们的方法需要提示工程将问题从其原始形式转换为一个明确的,易于处理的形式,从而产生正确的程序和解决方案。为了估计将原始问题翻译成易于处理的形式所需的工作量,我们测量原始问题和转换后的问题之间的相似性。我们的工作是第一次引入一个新的数据集的大学水平的概率和统计问题,并解决这些问题的可扩展的方式使用程序合成能力的大语言模型。

英文摘要:

We solve university level probability and statistics questions by program synthesis using OpenAI's Codex, a Transformer trained on text and fine-tuned on code. We transform course problems from MIT's 18.05 Introduction to Probability and Statistics and Harvard's STAT110 Probability into programming tasks. We then execute the generated code to get a solution. Since these course questions are grounded in probability, we often aim to have Codex generate probabilistic programs that simulate a large number of probabilistic dependencies to compute its solution. Our approach requires prompt engineering to transform the question from its original form to an explicit, tractable form that results in a correct program and solution. To estimate the amount of work needed to translate an original question into its tractable form, we measure the similarity between original and transformed questions. Our work is the first to introduce a new dataset of university-level probability and statistics problems and solve these problems in a scalable fashion using the program synthesis capabilities of large language models.

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

↑