arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2311.18609cs.CL
收藏

ArthModel:增强大语言模型的算术技能

ArthModel: Enhance Arithmetic Skills to Large Language Model

Yingdi Guo

AI总结:

本文提出ArthModel,通过训练大语言模型生成后缀表达式并结合小型预训练模型调用原生函数求解算术问题,以提示注入方式返回结果,从而增强大语言模型的算术能力。

摘要:

随着ChatGPT的巨大成功,大语言模型的研究日益受到关注。然而,这些模型存在若干局限性,例如有害内容生成以及算术求解性能不佳。与此同时,大语言模型可能还具备一些尚未被挖掘的潜在能力。在本文中,我们选择了一种不同的方式来增强大语言模型的算术能力。我们提出训练大语言模型生成与算术问题相关的后缀表达式,并将其与小型预训练模型相结合。此外,该小型模型将token嵌入转换为真实的稠密数值,并调用深度学习平台的原生函数来获得正确答案。为了生成最终结果,我们提出通过提示注入的方式,将小型模型输出的结果添加到大型语言模型中。这项工作为语言模型的思考、训练和使用提供了不同的思路。代码和模型将在\url{https://github.com/eteced/arithmetic_finetuning_v1}发布。

英文摘要:

With the great success of ChatGPT, the research of large language models has become increasingly popular. However, the models have several limitations, such as toxicity and pool performance of arithmetic solving. Meanwhile, LLM may have some potential abilities that have yet to be exploited. In this paper, we choose a different way to enhance the arithmetic ability of LLM. We propose to train LLM to generate a postfix expression related to the arithmetic problem and incorporate it with small pretrained models. Moreover, this small model transfers the token embeddings into real dense numbers and invokes native functions of a deep learning platform to get the correct answer. To generate the final result, we propose prompt injection for adding the result outputs by the small model to LLM. This work provides different ways of thinking, training and using a language model. The codes and models will be released at \url{https://github.com/eteced/arithmetic_finetuning_v1}.

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

↑