# Why Can't Transformers Learn Multiplication? Reverse-Engineering Reveals Long-Range Dependency Pitfalls

Authors: Xiaoyan Bai, Itamar Pres, [Yuntian Deng](https://yuntiandeng.com/), Chenhao Tan, [Stuart Shieber](https://www.eecs.harvard.edu/shieber/), Fernanda Viégas, Martin Wattenberg, Andrew Lee.

Reverse-engineers an implicit-CoT multiplication model, showing how attention stores and retrieves partial products and how digits are represented in a Fourier basis. Adds an auxiliary running-sum prediction loss that teaches the long-range dependencies needed for multi-digit multiplication.

First public: 2025-09-30.
ArXiv initial submission: 2025-09-30.

[Original paper](https://arxiv.org/abs/2510.00184) · [PDF](https://arxiv.org/pdf/2510.00184) · [HTML](https://arxiv.org/html/2510.00184v1) · [Reading-list entry](https://latent-implicit-thinking.github.io/papers/2510.00184/)
[Preprint BibTeX](https://latent-implicit-thinking.github.io/papers/2510.00184/citation.bib) · [Preprint CSL-JSON](https://latent-implicit-thinking.github.io/papers/2510.00184/citation.csl.json) · [JSON record](https://latent-implicit-thinking.github.io/papers/2510.00184/record.json)

## Approaches

- [Internalized reasoning](https://latent-implicit-thinking.github.io/topics/internalized-reasoning/): Learn from worked solutions so that the reasoning can later happen without writing those steps. Training may use a separate teacher model or progressively remove written steps from the model being trained.
- [Analysis and evaluation](https://latent-implicit-thinking.github.io/topics/implicit-reasoning-evaluation/): Measure how well these methods work, investigate what their internal computation does, and identify where they fail. This includes experiments, studies of model internals, and mathematical results.

Reading-list version 0.21.0; last additions 2026-12-01; literature checked through 2026-11-03.
