arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.00131cs.CLcs.AI
收藏

面向数学应用题的使用轻量级大语言模型的逻辑对比推理

Logic Contrastive Reasoning with Lightweight Large Language Model for Math Word Problems

Zhejiang Lab(之江实验室)

Ding Kai, Ma Zhenguo, Yan Xiaoran

AI总结:

本文提出一种基于逻辑相似度筛选参考问题并结合正负例提示的轻量级大语言模型数学推理方法,首次将检索增强生成用于数学解题,在SVAMP和GSM8K上分别提升15.8%和21.5%,并分析了推理错误。

摘要:

本研究聚焦于提升轻量级大语言模型(LLMs)在数学推理任务中的表现。我们提出了一种衡量数学逻辑相似度的新方法,并设计了一种自动筛选机制,用于构建一组同时融合语义相似度和逻辑相似度的参考问题。通过使用精心构造的正例与负例提示,我们引导模型采用合理的推理逻辑。据我们所知,这是首次尝试将检索增强生成用于数学问题求解。实验结果表明,在SVAMP数据集上,我们的方法相比Chain of Thought方法取得了15.8%的提升;在GSM8K数据集上取得了21.5%的提升。进一步将该方法应用于一个具有1750亿参数的大规模模型时,其在上述两个数据集上均取得了与最佳结果相当的性能。最后,我们对推理过程中的错误进行了分析,为未来使用大语言模型进行推理任务的研究提供了有价值的见解和方向。

英文摘要:

This study focuses on improving the performance of lightweight Large Language Models (LLMs) in mathematical reasoning tasks. We introduce a novel method for measuring mathematical logic similarity and design an automatic screening mechanism to construct a set of reference problems that integrate both semantic and logical similarity. By employing carefully crafted positive and negative example prompts, we guide the model towards adopting sound reasoning logic. To the best of our knowledge, this is the first attempt to utilize retrieval-enhanced generation for mathematical problem-solving. Experimental results demonstrate that our method achieves a 15.8% improvement over the Chain of Thought approach on the SVAMP dataset and a 21.5 % improvement on the GSM8K dataset. Further application of this method to a large-scale model with 175 billion parameters yields performance comparable to the best results on both aforementioned datasets. Finally, we conduct an analysis of errors during the reasoning process, providing valuable insights and directions for future research on reasoning tasks using large language models.

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

↑