WorksComputer Science
"Close enough?" An investigation into multiplication errors in LLMs
Abstract
Large language models (LLMs) frequently fail at multi-digit arithmetic, but the underlying mechanisms governing these failures remain poorly understood. While recent work demonstrates that addition errors follow a "noisy quantisation" model localised around carry boundaries, whether this framework generalises to multiplication remains an open question. In this work, we evaluate multiplication capabilities across several small base LLMs on a dataset of 16,991 problems spanning varied operand lengths. We show that multiplication errors do not conform to the addition-style noisy quantisation model. Instead, we uncover a novel error regime in small Qwen models: errors in lower-order columns predominantly preserve parity. Conversely, higher-order digit errors shift toward off-by-one carry failures. Our findings suggest that arithmetic computation in LLMs relies on distinct, multi-periodic internal representations where parity is tracked more robustly than exact digit identity, providing new mechanistic insights into numerical reasoning in transformers.
Introduction
Despite empirical evidence of Large Language Models (LLMs) being useful mathematical tools, helping to solve difficult Olympiad problems [1, 2] and more recently resolving open research problems including some Erdős conjectures [3], producing a proof for Navier-Stokes and several other problems in mathematics [4, 5], they are notoriously unreliable at arithmetic [6] and unpredictable in how they represent numbers in embedding space [7]. This is largely unsurprising given they are probabilistic and designed to produce fluent natural language rather than accurate arithmetic. However, it is concerning given how many people use LLMs as a general oracle of information [8]. Production LLMs have improved at arithmetic and will often use tooling for larger calculations to guarantee a correct answer [9]. Despite this, they are still fallible.
The way in which they do make errors when not permitted to use tooling is interesting. Arithmetic provides us with a useful playground for understanding how LLMs struggle with precise information in general since it is an easy, verifiable, controlled task. For this reason, lots of work has been done recently to use arithmetic as a way of understanding how LLMs handle precise information. Understanding the mechanisms by which LLMs make errors in arithmetic should allow for the development of models that are better at dealing with precise information.
Contribution: In this work, we investigate the modes of errors in multiplication over a range of small LLMs and explore whether models for addition failure (such as the ‘noisy quantisation model’ [10]) transfer to multiplication. We then propose future work using mechanistic interpretability techniques to validate our hypotheses.
Related Work
Rather than simply recalling arithmetic tables from its training data, LLMs are required to do arithmetic. In a 2024 study, the authors found that LLMs use ‘Fourier features’ (periodic, trigonometric functions, sparse in the frequency domain) to represent numbers [11]. Studying a fine-tuned GPT-2-XL alongside in-context-prompted GPT-J and Phi-2, and extending their analysis to the closed source GPT-3.5 and GPT-4, the authors showed that models have learned to represent numbers on an oscillating wave, encoding information about how they relate to each other mathematically. This study also found that different components of the LLM perform different roles. Namely, the MLP layers approximate the magnitude of an answer with low-frequency waves and attention layers use high-frequency features for modular arithmetic.
Baeumel et al. found that LLMs perform arithmetic tasks digit-by-digit, employing specific circuits for units, tens, hundreds etc. despite some models representing 3 digit numbers as a single token (e.g. ‘347’ would be a single token for Llama 3 8B) [12, 13].
Aligning with Zhou et al.’s work, which suggests numbers are represented trigonometrically, Kantamneni and Tegmark have shown that LLMs represent numbers on a helix [14]. This helix is causally implicated in addition and relevant for multiplication and division. For addition, they found that an helix is constructed by manipulating the helices for and .
To try to better understand arithmetic errors, Štefánik et al. demonstrate that LLMs share universal, sinusoidal representations of numbers across model families [15]. Within this framework they find that the accuracy of arithmetic can be predicted by the sinusoidal fidelity of the output representation. Focusing specifically on addition, Wen et al. defined the ‘noisy quantisation model’ for interpreting errors [10]. In this model errors in large (e.g. ten-digit) addition tend to be ‘off-by-one’ as a result of noise pushing a latent carry signal over a digit boundary. Since multiplication can be seen as a series of repeated additions we investigate if a similar noise-driven carry error explains errors in multiplication.
Experiments
To investigate multiplication in LLMs empirically, we examine a series of small open weight models: Qwen3.5-2B, Llama-3.2-3B, Gemma-4-E2B, Qwen3.5-0.8B and Qwen2.5-Math-1.5B [16, 17, 18, 19, 20]. Our code is available at https://github.com/w-bolton/Close-Enough-An-Investigation-into-Multiplication-Errors-in-LLMs.
We construct a dataset of 16,991 multiplication problems comprised of numbers with an increasing number of digits (1-digit 1-digit, 1-digit 2-digit, 2-digit 2-digit, 2-digit 3-digit, 2-digit 4-digit, 3-digit 3-digit, 3-digit 4-digit). The full breakdown is shown in Table 1. For the three smallest tiers (1-digit 1-digit, 1-digit 2-digit, 2-digit 2-digit) every possible operand pair is included since the number of problems is small enough (81, 810 and 8,100 respectively). However, for the four largest tiers, exhaustive enumeration is intractable, e.g. 2-digit 3-digit alone has 81,000 pairs. Instead, we sample uniformly at random without replacement from the full set of pairs, capped at 3,000 pairs for 2-digit 3-digit and 3-digit 3-digit, and 1,000 pairs for 2-digit 4-digit and 3-digit 4-digit.
| Digit size | Count | Sampling |
| 1 × 1 | 81 | Exhaustive |
| 1 × 2 | 810 | Exhaustive |
| 2 × 2 | 8,100 | Exhaustive |
| 2 × 3 | 3,000 | Random sample (of 81,000) |
| 2 × 4 | 1,000 | Random sample (of 810,000) |
| 3 × 3 | 3,000 | Random sample (of 810,000) |
| 3 × 4 | 1,000 | Random sample (of 8,100,000) |
| Total | 16,991 |
Table 1. Multiplication dataset by operand-size tier. Three smallest tiers are exhaustive over all possible operand pairs while the remaining four are uniform samples (without replacement) from the full set of pairs.
We use a minimal prompt format (e.g. ‘’) requiring the models to fill in their answer. All models were run using greedy decoding with a maximum of 10 new tokens. We use regular expressions to extract answers from the models’ output, accounting for some models which produce numbers with comma separators. We determine model accuracy by calculating the proportion of correct answers, those where each digit in the answer is correct. We also calculate errors on a per digit basis. We do this since previous work has found that LLMs conduct arithmetic on a per digit basis [12].
We borrow the definition of carry potential from Wen et al. [10] [10],
where is the sum of the digits at relative position to the right of the current position and is the total number of digit positions in the number. Carry potential represents the ‘thrust’ to carry from previous columns [10]. Figure 1 shows an example of the carry potential being calculated for a particular addition problem.
Figure 1. Carry Potential demonstrated for addition
This carry potential is then floored to produce a discrete carry used in computation. Wen et al. propose their ‘Noisy Quantisation’ model whereby when carry potential falls close to a digit boundary, neural noise corrupts that carry potential which is then floored to calculate the discrete carry, leading to off-by-one (±1) digit-wise errors [10]. This hypothesis is supported via their empirical testing, which shows that errors accumulate around the integer boundaries of carry potential and are low elsewhere. Given that multiplication can be viewed as a series of additions, perhaps a similar phenomenon occurs during multiplication.
Results
Figure 2 shows the digit-level error rate against carry potential for each 2-digit × 2-digit multiplication in our dataset. For multiplication on our dataset we were unable to find the bathtub shape Wen et al. [10] found for addition whereby errors accumulate when carry potential nears an integer boundary and are very low otherwise [10]. This is likely because of how entangled these errors are in multiplication of larger numbers where a series of partial products must be computed and then summed to produce the final result.

Figure 2. Carry Potential against error percentage for 2-digit×2-digit multiplication using Qwen3.5-2B. The dashed line shows the best-fit noisy quantisation model from Wen et al. [10], with fitted noise standard deviation of and goodness-of-fit . The negative indicates that the noisy quantisation fit is worse than a flat baseline, confirming the model does not cleanly transfer from addition to multiplication.
Another difference between our task of multiplication and theirs of 10-digit addition is that the magnitude of carry potentials is far more variable. Figure 3 shows how carry potential is calculated for an example multiplication problem; contrasting this with Figure 1 which shows the same calculation for addition, makes clear that the carry potential for multiplication is a much larger and more volatile quantity since it compounds across partial products. The carry potential along any column for addition of 3 numbers is capped at 3 since it can only be as large as the number of digits summed. However, for multiplication of two 2-digit numbers it can be as large as 17. For example in 99 × 99 the tens column raw sum is (9 × 9) + (9 × 9) = 162 which combines with the carry from the previous column of 8 (since 9 × 9 = 81) to give a carry potential of 170/10 = 17. It is possible that this is impeding the reproduction of a clean bathtub shape that Wen et al. found for 10-digit addition [10].
Figure 3. Carry Potential demonstrated for multiplication
Despite this, carry does play a role in the accuracy of multiplication as those calculations without any carries did perform better than those with low (≤ 2 carry columns) and high (> 2 carry columns). A carry column here is simply a column in the long multiplication which contributes a carry to the next column. For example has no carry columns, while has three carry columns so would be classed as an example of high-carry. This is demonstrated in Figure 4 as the first example (left) has no carries whilst the second (right) has a carry in three columns (indicated with green arrows and yellow highlighting). Figure 5 shows that other than for 3-digit 4-digit multiplications where there are too few no-carry scenarios to be informative, accuracy decreases monotonically as the amount of carry increases. This phenomenon is unsurprising given the increased complexity that high-carry scenarios possess. We define the relative error of an incorrect answer as where is the model’s prediction and is the ground truth. The relative error mean was just 1.1% for Qwen3.5-2B indicating that failures tended to have a correct general magnitude. This is consistent with prior work [11], showing that LLM numerical representations contain components associated with both approximate magnitude and precise calculation.
Figure 4. Two examples of long multiplication to show an example of no carry columns (left) and one with three carry columns (right). Carries which contribute to those three carry columns are highlighted in yellow. The green arrows indicate those columns with carries.

Figure 5. Comparison of the accuracy of multiplications for different operand sizes (i.e. 2-digit x 2-digit up to 3-digit×4-digit) for different carry types (no, low and high).
Wen et al. [10] [10] found for 10 digit addition that errors were often off-by-one. In contrast, we found that for multiplication using small Qwen3.5 models (2B and 0.8B parameter variants) errors in lower order columns, especially the tens-column, were substantially more likely to be of the same parity as the correct answer than not. For Qwen3.5-2B there were 3,542 incorrect digits in the tens-column and these errors had the same parity as the correct digit 92.7% of the time versus the data-derived chance baseline of 44.4%. Equivalently, errors in that column were 12.7 times more likely to fall an even distance away from the correct digit than an odd distance. Figure 6 shows this parity preservation rate varies across all columns in the dataset.

Figure 6. Error parity preservation rate on a per column basis compared to the null baseline and the ground-truth digit even fraction among incorrect digits in that column.
If the model were randomly guessing a digit, errors would be parity preserving (44.4%) of the time. Because models can have digit biases we also compute a null baseline from the model’s own output digit distribution per column: for an error with the correct answer being , the probability of a parity match is the sum of the probability of all digits with the same parity as excluding itself, divided by the summed probability of all digits that are not . We average this over the errors in the column. This gives 44.3-44.5% for all columns other than the units (79.1%), where outputs skew even for Qwen3.5-2B. This null baseline is indicated with a red-dashed line in Figure 6. We use a binomial hypothesis test treating each error as a Bernoulli trial with a binary outcome (parity is preserved or not). This assumes independence which does not strictly hold since LLMs generate digits in an autoregressive manner, so each depends on those before it. The p-values should be read as indicative rather than exact. Setting the null hypothesis to be the model based null baseline for each column (errors preserve parity with the probability given by that column’s baseline) and the alternative hypothesis that parity preservation is different from that baseline, we reject the null hypothesis for all columns at the 1% significance level shown in Figure 6, other than the thousands column (). The units baseline is high (79.1%) because the model’s outputs skew even, mirroring the ground truth even digit percentage which is 75% across all products (84.7% among incorrect units digits). This arises because a product’s units digit is only odd when both operands in the units-column are odd (odd odd = odd); in the other three of the four combinations (even odd, odd even, even even) the product is even. The model might be producing even digits with a higher probability as it is aware of this imbalance from its training data. Accounting for this, the parity preservation rate in the units column (89.8%) is above the baseline but only modestly. However, in the tens column ground truth even digit percentage is just 54% across all products (49.5% among incorrect tens digits) while the parity preservation rate is 92.7%. The very high order columns (, ) have drastically few errors which preserve parity, but these are less well statistically powered with only the largest multiplications populating them. Rather than parity preserving errors, for those columns (, ), 64% and 85% of errors respectively are off by one ().
Other Models
As well as Qwen3.5 0.8B and 2B models we also tested Qwen2.5-Math-1.5B (specifically post-trained for mathematics), Gemma 4 E2B from Google and Llama3.2 3B from Meta [16, 19, 20, 18, 17]. Although the Qwen3.5-0.8B model showed a similar parity preservation effect in the tens column, it was weaker (69%) and models from other model families essentially sat at that null, chance baseline. Llama3 represents whole numbers up to 3 digits as a single token whilst Qwen models tokenise on a digit-by-digit basis meaning that the way in which these two models handle multiplication is likely very different. Gemma does tokenise on a digit-by-digit basis but still does not show the same pattern. Perhaps this is due to accuracy being too poor (40% 2x2, 18% 2x3, 11.6% 2x4, 2.6% 3x3, 0.8% 3x4) meaning that it is almost guessing at random for larger multiplications. However, Qwen3.5-2B shows the effect for both easier and harder multiplications (when accuracy is high and relatively lower). Parity preservation rate sits at 94% in the tens-column for simple calculations (1-digit × 1-digit, 1-digit × 2-digit, 2-digit × 2-digit, wrong digits n=2920) when the accuracy is 66.6%, but is still 91% in the hundreds-column for 3-digit × 3-digit (n=1670) when accuracy is just 26.5%. We also test Llama3 by forcing it to represent each digit as a single token by adding a space separator between them. Even in this configuration the effect cannot be replicated but again this could be because accuracy is simply too low (25.0% across all multiplications). Qwen2.5-Math-1.5B shows a mild effect in tens column (67.9%). Accuracy and parity preservation in the tens-column are shown in Table 2.
| Model | Accuracy (%) | Tens Parity Preservation (%) |
| Qwen3.5-2B | 56.4 | 92.7 |
| Qwen3.5-0.8B | 60.8 | 69.5 |
| Qwen2.5-Math-1.5B | 50.4 | 67.9 |
| Llama-3.2-3B | 25.0 | 45.2 |
| gemma-4-E2B | 28.8 | 44.0 |
Table 2. Multiplication accuracy across similarly sized models tested on the same dataset (n=16,991 and null parity preservation baseline is 44.5-45.2%)
Although Qwen3.5-0.8B achieves higher overall accuracy on our multiplication benchmark than Qwen3.5-2B (60.8% vs. 56.4%), Qwen3.5-2B exhibits a substantially stronger parity-preserving error pattern in the tens column (92.7% vs. 69.5%). This suggests that overall arithmetic accuracy and the structure of arithmetic errors are not necessarily correlated. The difference may reflect differences in the internal representations or computational strategies adopted by the two models, with the larger model potentially encoding coarse numerical properties such as parity more strongly while not necessarily translating this representation into more accurate digit-level multiplication. Other factors, including differences in training dynamics, post-training, or the allocation of model capacity, may also contribute to the observed discrepancy.
Discussion and Future Work
Discussion
Our results reveal that multiplication errors in small language models do not manifest as uniform noise. Instead they diverge significantly from existing addition-based error frameworks [10]. While Wen et al. [10] demonstrated that addition errors follow a noisy quantisation model localised tightly around carry boundaries, this phenomenon does not directly transfer to multiplication. In our experiments, errors remain distributed across carry potentials, likely due to the complex entanglement of generating and summing multiple partial products.
Instead, we identify two distinct error regimes across digit order:
Low-Order Parity Preservation: In lower-order columns (most prominently the tens-column, with 92.7% parity preservation in Qwen3.5-2B versus a 44.4% null baseline), errors consistently retain the parity of the ground truth. This suggests that parity (mod 2) information is encoded and preserved more robustly than fine-grained digit identity (mod 10), aligning with findings that transformers represent numerical values via periodic Fourier components [11] and helical trajectories [14].
High-Order Carry Degradation: In higher-order columns (, ), parity preservation drops sharply, replaced instead by off-by-one errors (>64%), suggesting that accumulated carry noise dominates the final output tokens.
Notably, this strong parity-preservation effect was pronounced in the Qwen family but absent in similarly sized models from Llama and Gemma suites (Table 2). While differences in tokenization granularity (sub-word vs. digit-level) and baseline task accuracy play a role, this discrepancy also suggests that architectural choices or pre-training dynamics in Qwen may prioritize modular periodic numerical circuits more heavily.
Future Work
To build on these empirical observations, future research should explore three primary avenues:
Causal Circuit Analysis: Employ activation patching and targeted ablation across residual streams and attention heads on parity-varying counterfactual pairs. Training linear probes across intermediate layers will help verify whether the mod 2 representation remains linearly decodable while the mod 10 signal degrades.
Cross-Architecture Representations: Investigate why parity-preserving circuits emerge distinctly across tokenization strategies and training regimes, clarifying why Qwen exhibits higher numerical fidelity than its peers.
Unsupervised Activation Steering: Building on the work of Štefánik et al. [15], who steered output representations toward higher sinusoidal fidelity using known ground-truth targets, future work should test whether answer-agnostic steering objectives can autonomously restore sinusoidal coherence and mitigate arithmetic failure modes at inference time.
Acknowledgments
WB is grateful for the EPSRC Vacation Internship funding that supported this work. BT thanks UK Research and Innovation (UKRI) [Grant ref EP/Y030796/1] and the University of Bristol. HD thanks the EPSRC funded VIVO Hub for Enhanced Independent Living (UKRI142) for their support.
References
- [1]Trieu H. Trinh, Yuhuai Wu, Quoc V. Le, H. He, and Thang Luong. Solving olympiad geometry without human demonstrations. Nature, 625(7995):476–482, 2024.DOI
- [2]Yuri Chervonyi, Trieu H. Trinh, Miroslav Olšák, Xiaomeng Yang, Hoang Nguyen, Marcelo Menegali, Junhyeok Jung, Junsu Kim, Vikas Verma, Quoc V. Le, and Thang Luong. Gold- medalist performance in solving olympiad geometry with alphageometry2. Journal of Machine Learning Research, 26(241):1–39, 2025.
- [3]George Tsoukalas, Anton Kovsharov, Sergey Shirobokov, Anja Surina, Moritz Firsching, Gergely Bérczi, Francisco J. R. Ruiz, Arun Suggala, Adam Zsolt Wagner, Eric Wieser, Lei Yu, Aja Huang, Miklós Z. Vahá, Andrew Ferruaio, Henryk Michalewski, Edward Lockhart, Codrut Grosu, Thomas Hubert, Matej Balog, Pushmeet Kohli, and Swarat Chaudhuri. Advancing mathematics research with ai-driven formal proof search, 2026. URL https://arxiv.org/abs/2605.22763.
- [4]OpenAI. On the Navier–Stokes millennium prize problem. https://openai.com/index/navier-stokes-solution/, September 2026. Accessed: 2026-10-26.
- [5]OpenAI. Sharing AI progress in mathematics. https://openai.com/index/sharing-ai-progress-in-mathematics/, October 2026. Accessed: 2026-10-26.
- [6]Haoyang Li, Xuejia Chen, Zhanchao XU, Darian Li, Nicole Hu, Fei Teng, Yiming Li, Luyu Qiu, Chen Jason Zhang, Qing Li, and Lei Chen. Exposing numeracy gaps: A benchmark to evaluate fundamental numerical abilities in large language models, 2025. URL https://arxiv.org/abs/2502.11075.
- [7]Alex O. Davies, Roussel Nzoyem, Nirav Ajmeri, and Telmo M. Silva Filho. Language models do not embed numbers continuously, 2025. URL https://arxiv.org/abs/2510.08009.
- [8]Michelle Brachman, Amina El-Ashry, Casey Dugan, and Werner Geyer. Current and future use of large language models for knowledge work, 2025. URL https://arxiv.org/abs/2503.16774.
- [9]Timo Schick, Jane Dwivedi-Yu, Roberto Dessi, Roberta Raileanu, Maria Lomeli, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. Toolformer: Language models can teach themselves to use tools, 2023. URL https://arxiv.org/abs/2302.04761.
- [10]Liuyuan Wen, Xun Zhu, Lihao Huang, Wenbin Li, and Yang Gao. The shape of addition: Geometric structures of arithmetic in large language models, 2026. URL https://arxiv.org/abs/2606.03645.
- [11]Tianyi Zhou, Deqing Fu, Vatsal Sharan, and Robin Jia. Pre-trained large language models use fourier features to compute addition, 2024. URL https://arxiv.org/abs/2406.03445.
- [12]Tanja Baeumel, Daniil Gurgurov, Yusser al Ghussin, Josef van Genabith, and Simon Ostermann. Modular arithmetic: Language models solve math digit by digit, 2025. URL https://arxiv.org/abs/2508.02513.
- [13]Aaron Graffatiori, Abhimanyu Dubey, and Abhinav Jauhari et al. The llama 3 herd of models, 2024. URL https://arxiv.org/abs/2407.21783.
- [14]Subhash Kantamneni and Max Tegmark. Language models use trigonometry to do addition, 2025. URL https://arxiv.org/abs/2502.00873.
- [15]Michal Štefánik, Timothee Mickus, Marek Kadlčík, Bertram Höjer, Michal Spiegel, Raúl Vázquez, Aman Sinha, Josef Kuchař, Philipp Mondorf, and Pontus Stenetorp. Language models learn universal representations of numbers and here’s why you should care. In Maria Liakata, Viviane P. Moreira, Jiajun Zhang, and David Jurgens, editors, Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 30663–30681, San Diego, California, United States, July 2026. Association for Computational Linguistics. ISBN 979-8-89176-390-6. doi: 10.18653/v1/2026.acl-long.1415. URL https://aclanthology.org/2026.acl-long.1415/.
- [16]Qwen Team. Qwen3.5-2b. https://huggingface.co/Qwen/Qwen3.5-2B, 2026. Model card. Accessed 2026.
- [17]Meta AI. Llama-3.2-3b. https://huggingface.com/meta-llama/Llama-3.2-3B, 2024. Model card. Accessed 2026.
- [18]Google DeepMind. Gemma-4-e2b. https://huggingface.co/google/gemma-4-E2B, 2026. Model card. Accessed 2026.
- [19]Qwen Team. Qwen3.5-0.8b. https://huggingface.co/Qwen/Qwen3.5-0.8B, 2026. Model card. Accessed 2026.
- [20]Qwen Team. Qwen2.5-math-1.5b. https://huggingface.co/Qwen/Qwen2.5-Math-1.5B, 2024. Model card. Accessed 2026.


