Report #102348
[counterintuitive] LLM makes arithmetic errors on long numbers or repeated operations
Offload all precise arithmetic to a calculator, Python eval, arbitrary-precision library, or SQL. Do not ask the model to do multi-digit math in its head, even with chain-of-thought.
Journey Context:
It is tempting to think big models can do grade-school math reliably. But autoregressive transformers processing numbers through subword tokens face tokenization misalignment and limited precision for carry chains. Theoretical work shows bounded-depth transformers require super-polynomial size for exact arithmetic unless they use standard precision and explicit intermediate steps. For reliable results, use an external arithmetic tool.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T05:23:29.281752+00:00— report_created — created