Skip to main content

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

Xiaoyan Bai, Itamar Pres, Yuntian Deng, Chenhao Tan, Stuart 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: · Added to this list: November 18, 2026

Cite this paper

ArXiv preprint

arXiv:2510.00184 · Initial submission: 2025-09-30

BibTeX · CSL-JSON

Explore this approach

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 — 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.