RevOrder: A Novel Method for Enhanced Arithmetic in Language Models
Not on the map. Why?
Abstract (arXiv)
This paper presents RevOrder, a novel technique aimed at improving arithmetic operations in large language models (LLMs) by reversing the output digits in addition, subtraction, and n-digit by 1-digit (nD by 1D) multiplication tasks. Our method significantly reduces the Count of Sequential Intermediate Digits (CSID) to O(1), a new metric we introduce to assess equation complexity. Through comprehensive testing, RevOrder not only achieves perfect accuracy in basic arithmetic operations but also substantially boosts LLM performance in division tasks, particularly with large numbers where traditional models struggle. Implementation of RevOrder is cost-effective for both training and inference phases. Moreover, applying RevOrder to fine-tune the LLaMA2-7B model on the GSM8K math task results in a considerable improvement, reducing equation calculation errors by 46% and increasing overall scores from 41.6 to 44.4.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 14 of its 22 references that are in the map. First posted on arXiv 6 Feb 2024.
Builds on
14 of 22 references.
References · 14
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 622
- 2024TinyLlama: An Open-Source Small Language Modelcited by 604
- 2022A Survey of Deep Learning for Mathematical Reasoningcited by 124
- 2023Goat: Fine-tuned LLaMA Outperforms GPT-4 on Arithmetic Taskscited by 84
2 more
- 2022Training Trajectories of Language Models Across Scalescited by 80
- 2023GPT Can Solve Mathematical Problems Without a Calculatorcited by 68
Built on by
Citing papers per year: 2024: 1; 2025: 0; 2026: 2.
3 papers.
- 2026Nothing from Something: Can a Language Model Discover 0?15 Jun 2026
- 2026Large Language Model Reasoning Failures5 Feb 2026
- 2024Unraveling Arithmetic in Large Language Models: The Role of Algebraic Structures25 Nov 2024