arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.10977cs.CLstat.ML
收藏

使用数字分解评估 Transformer 语言模型的算术运算能力

Evaluating Transformer Language Models on Arithmetic Operations Using Number Decomposition

Matteo Muffo, Aldo Cocco, Enrico Bertino

AI总结:

本文提出 Calculon 模型,通过先将数字按个位、十位等分解再计算的流水线微调 Transformer,并在 GPT-3 同款算术测试集上验证其显著提升。

摘要:

近年来,GPT-3 等大型语言模型在零样本和少样本设置下执行 NLP 任务时展现出显著能力。另一方面,实验也凸显了 GPT-3 在执行需要一定程度推理的任务(如算术运算)时的困难。本文评估 Transformer 语言模型按照一种流水线执行算术运算的能力,该流水线在执行计算之前,将数字分解为个位、十位等。我们将使用该流水线微调的模型命名为 Calculon,并在与 GPT-3 相同的测试集上测试其执行加法、减法和乘法任务的表现。结果显示,在五位数加法任务中,准确率提升了 63%。此外,我们证明了所引入的分解流水线的重要性,因为在不分解数字的情况下微调同一语言模型,会在五位数加法任务中得到 0% 的准确率。

英文摘要:

In recent years, Large Language Models such as GPT-3 showed remarkable capabilities in performing NLP tasks in the zero and few shot settings. On the other hand, the experiments highlighted the difficulty of GPT-3 in carrying out tasks that require a certain degree of reasoning, such as arithmetic operations. In this paper we evaluate the ability of Transformer Language Models to perform arithmetic operations following a pipeline that, before performing computations, decomposes numbers in units, tens, and so on. We denote the models fine-tuned with this pipeline with the name Calculon and we test them in the task of performing additions, subtractions and multiplications on the same test sets of GPT-3. Results show an increase of accuracy of 63% in the five-digit addition task. Moreover, we demonstrate the importance of the decomposition pipeline introduced, since fine-tuning the same Language Model without decomposing numbers results in 0% accuracy in the five-digit addition task.

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

↑