cs.CCNov 26, 2026

The Scratchpad Complexity of Autoregressive Multiplication with Hard Attention

Authors: Kundan Baliga, Ryan Kim

Organizations: University of Illinois Urbana-Champaign, Urbana, IL, USA.

Abstract

How many auxiliary tokens does a causal hard-attention transformer need to multiply two NN-bit integers? First, we resolve the true-prefix parity conjecture of Amiri Bavandpour et al. on independent uniform NN-bit operands. The correlation bound permits any bounded test of each operand and every earlier product-bit parity. Second, we give a task-independent transfer from low-degree correlation bounds to causal hard-attention lower bounds. Position-union approximation verifies which keys win, and marked replay counts possible scratch traces using their positions. Third, at fixed depth, head count, and number of selected keys, the probability of generating the product with a sufficiently small linear scratch and edit budget is exponentially small even with a growing vocabulary. A one-head, one-layer packed FFT attains linear scratch with linear vocabulary and constant hidden dimension.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. On the Computational Hardness of Transformers

    Mar 11, 2026Barna Saha, Yinzhan Xu, Christopher Ye +1TransformerAttention Mechanisms

  2. The Head Complexity of Boolean Functions in Single-Layer Attention

    Sep 3, 2026Rajmohan Rajaraman, Ravi Sundaram, Amanuel TesfayeSelf-AttentionAttention Mechanisms

  3. Softmax Attention with Any Temperature in Fixed Dimension: Matching the Best Known Maximum-Inner-Product Bounds

    Nov 4, 2026Zixuan Huang, Guozhang ChenEfficient AttentionSoftmax Attention