English

Represented Is Not Computed: A Causal Test of Candidate Algorithmic Intermediates in a Transformer

Machine Learning 2026-05-22 v1

Abstract

Structured prompts require integrating components according to task-relevant relations. How a network implements this integration is often hard to judge in language or vision, where those relations are rarely specified precisely enough to define a candidate internal algorithm. Arithmetic offers a cleaner setting. We study a Transformer trained on base-digit extraction: given NN, BB, and DD, it must report the coefficient of BDB^D in the base-BB expansion of NN. The closed-form solution, N/BDmodB\lfloor N/B^D \rfloor \bmod B, provides explicit candidate algorithmic intermediates. Across three seeds, the model reaches 99.83% exact-answer accuracy on held-out number-base intersections, establishing reliable task competence. Linear probes decode the intermediates, making staged arithmetic computation plausible. Causal tests then separate representation from use: within the localized route from the stream with DD as input to the output positions, behavior depends on early DD-selective communication, independent of NN and BB. Relatedly, a sparse circuit search finds mostly separate NN, BB, and DD routes that combine late rather than the staged route suggested by the probes. Thus, the model represents the intermediates that make the closed-form solution plausible, but the identified localized causal route does not transmit them to the output stream. This case shows that probe-based conclusions can diverge sharply from causal observations, even when explicit algorithmic hypotheses are available.

Keywords

Cite

@article{arxiv.2605.22488,
  title  = {Represented Is Not Computed: A Causal Test of Candidate Algorithmic Intermediates in a Transformer},
  author = {Ishita Darade and Sushrut Thorat},
  journal= {arXiv preprint arXiv:2605.22488},
  year   = {2026}
}

Comments

16 pages, 4 figures

R2 v1 2026-07-22T07:26:18.803Z