语言模型能轻松完成困难算术任务却难以完成简单算术任务
Language Models Do Hard Arithmetic Tasks Easily and Hardly Do Easy Arithmetic Tasks
AI总结:
本文发现LLMs无需思维链即可正确预测多位数乘法首位数字,却难以预测等价于个位数乘法的末位数字,且以正确高位数字为条件可显著提升末位预测置信度。
摘要:
大型语言模型(LLMs)执行算术任务的能力(及无能)一直是许多理论和实践争论的主题。我们表明,LLMs 经常能够在不使用思维链推理的情况下,正确且自信地预测 n 位数乘以 m 位数乘法任务的首位数字,尽管这些任务需要复合运算才能解决。同时,实践中的 LLMs 往往无法正确或自信地预测 n 位数乘以 m 位数乘法的末位数字,该任务等价于 1 位数乘以 1 位数乘法,后者很容易被学习或记忆。我们表明,当 LLM 以所有正确的高位数字为条件时,后一项任务可以被更稳健地解决,这使得在 5 位数乘以 5 位数乘法任务上,使用 Llama 2-13B 时正确末位数字的置信度平均增加了 230% 以上(0.13 到 0.43),使用 Mistral-7B 时增加了 150%(0.22 到 0.55)。
英文摘要:
The ability (and inability) of large language models (LLMs) to perform arithmetic tasks has been the subject of much theoretical and practical debate. We show that LLMs are frequently able to correctly and confidently predict the first digit of n-digit by m-digit multiplication tasks without using chain of thought reasoning, despite these tasks require compounding operations to solve. Simultaneously, LLMs in practice often fail to correctly or confidently predict the last digit of an n-digit by m-digit multiplication, a task equivalent to 1-digit by 1-digit multiplication which can be easily learned or memorized. We show that the latter task can be solved more robustly when the LLM is conditioned on all of the correct higher-order digits, which on average increases the confidence of the correct last digit on 5-digit by 5-digit multiplication tasks using Llama 2-13B by over 230% (0.13 to 0.43) and Mistral-7B by 150% (0.22 to 0.55).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。