mlsanityData to 7 Oct 2026

InfoFlow: A Framework for Multi-Layer Transformer Analysis

arXiv 2605.17930 ↗First posted 18 May 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

While the approximation properties of single-layer Transformer architectures have been studied in recent works, a rigorous theoretical understanding of the multi-layer setting remains limited. In this work, we establish that multi-layer Transformers possess fundamentally different approximation capabilities from single-layer ones: for certain retrieval tasks, any single-layer Transformer requires least Omega (varepsilon-k) parameters to achieve precision varepsilon, where k grows linearly with sequence length T, whereas a two-layer Transformer with a single head per layer achieves the same approximation precision with at most O (varepsilon-1) parameters. To understand this separation, we identify two structural mechanisms underlying multi-layer approximation. Specifically, softmax attention can only efficiently retrieve the token attaining the maximum attention score, incurring exponential-in-length parameter cost for k-th largest retrieval with k ≥ 2. Moreover, the parameter cost of decoding coupled information scales with the size of the retrieved token set. Motivated by these findings, we propose InfoFlow, a framework for multi-layer Transformers. The framework tracks an information set of accessible input positions at each token and layer, assigning an explicit approximation rate to each mode of information propagation. This abstraction recovers known approximation bounds, remains consistent with experimental observations on trained networks, and yields concrete predictions in settings where direct theoretical analysis is currently intractable. Our results provide a principled framework for reasoning about the approximation efficiency of multi-layer Transformers.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 15 of its 17 references that are in the map. First posted on arXiv 18 May 2026.

Builds on

15 of 17 references.

References · 15

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
  6. 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 286
  7. 2023A mathematical perspective on Transformerscited by 160
  8. 2023Representational Strengths and Limitations of Transformerscited by 132
  9. 2019Understanding and Improving Transformer From a Multi-Particle Dynamic System Point of Viewcited by 108
  10. 2020O(n) Connections are Expressive Enough: Universal Approximability of Sparse Transformerscited by 82
  11. 2024Transformers, parallel computation, and logarithmic depthcited by 75
  12. 2023Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?cited by 46
3 more
  1. 2024One-layer transformers fail to solve the induction heads taskcited by 30
  2. 2023Approximation Rate of the Transformer Architecture for Sequence Modelingcited by 28
  3. 2025The Effect of Attention Head Count on Transformer Approximationcited by 4

Built on by

Not cited yet.