Reverse That Number! Decoding Order Matters in Arithmetic Learning
Summary
LEFT (Little-Endian Fine-Tuning): reverse digit order so carries are local. Addition/subtraction drop CoT; multiplication keeps a reversed step-by-step. Llama2-13B, 5K examples/op on digits 5–12: overall acc 94.4 vs Scratchpad-Detailed 83.3 using 3.04M vs 11.0M train tokens (+11.1 pp overall; multiply 88.5 vs 52.8). Add/sub use ~1/20 the tokens of the detailed scratchpad baseline at similar accuracy. Code/data https://anonymous.4open.science/r/RAIT-9FB7/.
- Venue
- arXiv / Tsinghua University / Renmin University of China
- License
- CC BY-NC-ND 4.0
- License family
- Non-commercial
- Purpose
- Teach LLM arithmetic more efficiently by generating least-significant digits first (little-endian) instead of extra CoT tokens
- Scale
- Llama2-13B ctx 4096; 15K train / 3K test (5K+1K per of +/−/×); max input digits uniformly in [5,12]
- Time period
- 2024-03-09 (arXiv 2403.05845 v1). HF has no paper page (API 404).
- Added
- Oct 1, 2026
- Research status
- done
From the source
- Published
- Mar 9, 2024
- arXiv categories
- cs.CL, cs.AI
- Citations
- 9
- References
- 16
Abstract (from arXiv)
Recent advancements in pretraining have demonstrated that modern Large Language Models (LLMs) possess the capability to effectively learn arithmetic operations. However, despite acknowledging the significance of digit order in arithmetic computation, current methodologies predominantly rely on sequential, step-by-step approaches for teaching LLMs arithmetic, resulting in a conclusion where obtaining better performance involves fine-grained step-by-step. Diverging from this conventional path, our work introduces a novel strategy that not only reevaluates the digit order by prioritizing output from the least significant digit but also incorporates a step-by-step methodology to substantially reduce complexity. We have developed and applied this method in a comprehensive set of experiments. Compared to the previous state-of-the-art (SOTA) method, our findings reveal an overall improvement of in accuracy while requiring only a third of the tokens typically used during training. For the purpose of facilitating replication and further research, we have made our code and dataset publicly available at \url{https://anonymous.4open.science/r/RAIT-9FB7/}.
Tags
Topics
arithmetic, decoding order, LLM reasoning
Research notes
- Primary: arxiv abs (cs.CL; also cs.AI). License CC BY-NC-ND 4.0 on HTML at check. Equal contrib Zhang-Li/Lin; corresponding Juanzi Li. Tsinghua CST; Zhang (Xiaokang) and Jing Zhang at Renmin University of China. Correspondence {zlnn23,linny20}@mails.tsinghua.edu.cn, lijuanzi@tsinghua.edu.cn. Code/data on abs is anonymous.4open.science/r/RAIT-9FB7/ (no public GitHub named on abs). HF has no paper page (API 404). Discord posted HTML v1. Training set is synthetically generated 15K/3K arithmetic items, not a substantial hosted corpus, so no datasets_local row.
Similar entries
- Other LLM-based agents reasoning // CoT, ToT, GoT!
- Paper Seer: Online Context Learning for Fast Synchronous LLM Reinforcement Learning
- Paper Not All LLM Reasoning is Visible in the Chain-of-Thought
- Paper STaR: Bootstrapping Reasoning With Reasoning
- Paper How Likely Do LLMs with CoT Mimic Human Reasoning?
- Paper Harness Learning Enables Generalizable Test-Time Adaptation