Language Models Do Hard Arithmetic Tasks Easily and Hardly Do Easy Arithmetic Tasks
Andrew Gambardella, Yusuke Iwasawa, Yutaka Matsuo

TL;DR
Large language models can predict the first digit of complex multiplication tasks accurately without reasoning, but struggle with the last digit unless conditioned on higher digits, revealing strengths and limitations in their arithmetic capabilities.
Contribution
This paper uncovers the contrasting abilities of LLMs in predicting different digits of multiplication tasks and demonstrates improved last-digit prediction when conditioned on higher digits.
Findings
LLMs predict first digits of complex multiplications accurately without chain of thought.
LLMs often fail to predict last digits correctly in simple multiplication tasks.
Conditioning on higher digits significantly improves last-digit prediction confidence.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques · Mathematics, Computing, and Information Processing · Topic Modeling
MethodsLLaMA
