arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2308.10585cs.CL
收藏

探索方程作为数值推理更优中间意义表示的研究

Exploring Equation as a Better Intermediate Meaning Representation for Numerical Reasoning

Yunfu Technology (Beijing) Co., Ltd.(云浮科技(北京)有限公司)

Dingzirui Wang, Longxu Dou, Wenbin Zhang, Junyu Zeng, Wanxiang Che

AI总结:

针对数值推理任务,该研究提出以方程作为更优中间意义表示,通过理论命题证明其生成准确率优势,并提出Bridge分解生成方法提升大语言模型方程生成效果,在多个数据集上取得性能提升。

摘要:

数值推理对于自然语言处理模型在真实场景中理解和处理数值信息至关重要。当前大多数方法会先生成问题的中间意义表示(Intermediate Meaning Representations, IMRs),再生成答案。现有最优(SOTA)方法借助大语言模型(large language models, LLMs)生成程序作为IMRs。直观来看,与程序相比,方程的限制更少,且与问题的语义更贴近,因此能带来更高的生成准确率。但目前大语言模型生成方程的效果不如程序,我们推测这是因为预训练数据中方程数据的占比远少于程序数据。因此在本文中,我们尝试以方程作为IMRs来解决数值推理任务,重点解决两个问题:(1)理论层面,如何证明方程是一种生成准确率高于程序的IMR;(2)实证层面,如何提升大语言模型生成方程的准确率。针对第一个问题,我们提出并证明了一个命题,从理论层面对比不同IMRs的生成准确率。针对第二个问题,我们提出了一种名为Bridge(Boosting Numerical Reasoning by Decomposing the Generation of Equations,通过分解方程生成提升数值推理)的方法,该方法可通过降低生成常量表达式和程序的倾向,提升大语言模型生成方程作为IMRs的准确率。在单推理路径设置下,我们的方法在GSM8K、SVAMP和Algebra数据集上的性能较此前的最优方法分别提升了2.2%、0.9%和1.7%。我们的代码和提示词已发布在https://github.com/zirui-HIT/Bridge_for_Numerical_Reasoning。

英文摘要:

Numerical reasoning is vital for natural language processing models to understand and process numerical information in real-world scenarios. Most current methods first generate the Intermediate Meaning Representations (IMRs) of questions and then generate answers. Current SOTA methods generate programs as IMRs with large language models (LLMs). Intuitively, equations have fewer restrictions and closer semantics to the question than programs, leading to higher generation accuracy. However, current LLMs generate equations worse than programs, where we assume that the equation data is rare in pre-training data compared to programs. So in this paper, we try to use equations as IMRs to solve the numerical reasoning task by addressing two problems: (1) Theoretically, how to prove that the equation is an IMR with higher generation accuracy than programs; (2) Empirically, how to improve the generation accuracy of equations with LLMs. For the first problem, we propose and prove a proposition to theoretically compare the generation accuracy of different IMRs. For the second problem, we present a method called Boosting Numerical Reason\textbfing by Decomposing the Generation of Equations (Bridge), which can improve the accuracy of LLMs in generating equations as IMRs by reducing the tendency of generating constant expressions and programs. Our method improves the performance by 2.2%, 0.9%, and 1.7% on GSM8K, SVAMP, and Algebra datasets compared to the previous state-of-the-art methods under the single reasoning path setting. Our codes and prompts are released in https://github.com/zirui-HIT/Bridge_for_Numerical_Reasoning.

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

↑