paper-with-me

홈 › Papers

RevOrder: A Novel Method for Enhanced Arithmetic in Language Models

2024-02-06 · Si Shen, Peijun Shen, Danhao Zhu

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 $\mathcal{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.

📄 PDF Abstract BibTeX arXiv:2402.03822

Code (0)

등록된 구현이 없습니다.

Tasks

GSM8KMath

Similar Papers 제목 키워드 기반

Neural Arithmetic Logic Units

2018-08-01 · NeurIPS 2018 12 · Andrew Trask, Felix Hill, Scott Reed, Jack Rae 외

Neural networks can learn to represent and manipulate numerical information, but they seldom generalize well outside of the range of numerical values encountered during training. To encourage more systematic numerical ex…

Why Vision Language Models Struggle with Visual Arithmetic? Towards Enhanced Chart and Geometry Understanding

2025-02-17 · Kung-Hsiang Huang, Can Qin, Haoyi Qiu, Philippe Laban 외

Vision Language Models (VLMs) have achieved remarkable progress in multimodal tasks, yet they often struggle with visual arithmetic, seemingly simple capabilities like object counting or length comparison, which are esse…

Arithmetic ReasoningChart UnderstandingDecoderMath+1

NumeroLogic: Number Encoding for Enhanced LLMs' Numerical Reasoning

2024-03-30 · Eli Schwartz, Leshem Choshen, Joseph Shtok, Sivan Doveh 외

Language models struggle with handling numerical data and performing arithmetic operations. We hypothesize that this limitation can be partially attributed to non-intuitive textual numbers representation. When a digit is…

Language ModelingLanguage ModellingMMLU

Geometric-Mean Policy Optimization

2025-07-28 · Yuzhong Zhao, Yue Liu, Junpeng Liu, Jingye Chen 외 arxiv

Group Relative Policy Optimization (GRPO) has significantly enhanced the reasoning capability of large language models by optimizing the arithmetic mean of token-level rewards. Unfortunately, GRPO is observed to suffer f…

Mathematical Reasoning

Complexity of Arithmetic in Warded Datalog+-

2022-02-10 · Lucas Berent, Markus Nissl, Emanuel Sallinger

Warded Datalog+- extends the logic-based language Datalog with existential quantifiers in rule heads. Existential rules are needed for advanced reasoning tasks, e.g., ontological reasoning. The theoretical efficiency gua…

DescriptiveKnowledge GraphsOpen-Ended Question Answering