arXiv:2610.05558cs.LGOct 2026

Manuscript Offprint

arXiv:2610.05558

An equality condition for the Dobrushin bound on attention rollout and how often it holds in trained transformers

Przemysław Rola

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The Dobrushin coefficient of each attention-rollout factor satisfies κ(12(I+A))≤12(1+κ(A))\kappa(\frac{1}{2}(I+A)) \leq \frac{1}{2}(1+\kappa(A)), and multiplying these inequalities over layers bounds the coefficient of the whole rollout. We characterise exactly when the layerwise bound is tight: equality holds if and only if some token pair attaining κ(A)\kappa(A) is mutually self-dominant — each of the two attends to itself at least as strongly as the other attends to it. The condition is far from automatic: uniformly random stochastic matrices satisfy it only 24–30% of the time.

When tested on the head-averaged attention of each individual input and restricted to content tokens — image patches, words or tabular features, excluding cls, register and separator tokens — the condition holds for essentially every input at every layer of DINOv2 (three model sizes), RoBERTa and DistilBERT. In the supervised models DeiT-B and ViT-B/16 it holds for 91% and 64% of input-layer pairs respectively, with all failures occurring late in depth. In FT-Transformer trained on two standard tabular benchmarks it holds for only 11–44% of input-layer pairs. The special tokens account for almost all failures in DINOv2 and the language models: when they are included, the condition holds for only 82–97% of input-layer pairs.

1 Introduction

In a transformer, each attention layer mixes tokens. For every token it forms a weighted average of all tokens' value vectors — the weights being one row of a row-stochastic attention matrix — and adds the result to that token's representation. Information is thereby redistributed across positions and the representations are pulled toward one another. Iterating this aggregation can drive all tokens toward a common representation — rank collapse in the vision and language literature (Dong et al., 2021), oversmoothing in the graph setting (Oono and Suzuki, 2020; Wu et al., 2023). Whether, and how fast, a given trained network approaches that regime is a question about a product of many mixing operators, one per layer.

Attention rollout (Abnar and Zuidema, 2020) is the standard way to summarise such a product. It multiplies the attention matrices of successive layers into a single row-stochastic operator describing how attention-mediated influence accumulates with depth. To account for the residual (skip) connection, which passes each token's representation to the next layer unchanged, each attention matrix A is first replaced by 12(I+A)\frac{1}{2}(I + A), the identity I standing for the skip connection. Because the result is row-stochastic, the classical theory of products of inhomogeneous stochastic matrices applies to it directly.

Biccari et al. (2026) make that connection explicit. They analyse rollout with Doeblin–Dobrushin contraction theory, show that an operator with a small Dobrushin coefficient is quantitatively

*Department of Mathematics, Kraków University of Economics, e-mail: przemyslaw.rola@outlook.com

2020 Mathematics Subject Classification. 68T07, 60J10, 15B51. Key words and phrases. Attention rollout, Dobrushin coefficient, stochastic matrices, residual connections, transformers, attention sinks.

close to a rank-one matrix, and control the coefficient of the composed operator by a layerwise estimate: writing A~=12(I+A)\widetilde{A} = \frac{1}{2}(I + A) for a rollout factor, κ(A~)≤12(1+κ(A))\kappa(\widetilde{A}) \leq \frac{1}{2}(1 + \kappa(A)), which composes across LL layers into a certificate carrying a factor 2−L2^{-L}. They also prove an unconditional lower bound κ(A~)≥(N−2)/(2(N−1))\kappa(\widetilde{A}) \geq (N - 2)/(2(N - 1)) on any single factor, and observe empirically that the composed coefficient decreases with depth in trained tabular transformers.

Their treatment therefore brackets the coefficient of each factor, κ(A~(ℓ))\kappa(\widetilde{A}^{(\ell)}), from above and from below, but leaves a question unanswered: when is the upper bound an equality? The question is not cosmetic. If the estimate is loose, the depth certificate built from it may be improvable layer by layer, and the numbers it produces say more about the estimate than about the network. If it is tight, no layer's estimate can be improved; the depth certificate may still overstate the coefficient of the whole rollout, but only because the coefficient of a product of matrices can be smaller than the product of their coefficients.

This paper answers when the layerwise bound is an equality, and draws out the consequences. Throughout, the object is the row-stochastic attention matrix AA — the token-mixing pattern — rather than the full multi-head attention block of a layer, X↦∑hAhXWhVWhOX \mapsto \sum_h A_h X W_h^V W_h^O (Vaswani et al., 2017), which also includes the value and output projections, 1^1 so none of what follows certifies the complete computation; (M1) in Section 2 states this formally.

Contributions. (i) An exact characterisation of when the layerwise bound of Biccari et al. (2026) is an equality (Proposition 2). (ii) A test of the condition on the object their bound uses, the head-averaged attention matrix of each input: on content tokens it holds for essentially every input at every layer of DINOv2 and of two language models, less consistently in two supervised vision transformers, whose failures come late in depth, and rarely in FT-Transformer on tabular data; in DINOv2 and the language models the special tokens — cls, registers, separators — account for almost all failures. (iii) The observation that testing attention averaged over inputs instead, a natural alternative, can both create and destroy exactness. (iv) Two supporting measurements: the classical entry-wise bound κ(A)≤1−Nε\kappa(A) \leq 1 - N\varepsilon is far looser than κ(A)\kappa(A) itself for the numbers of tokens used in real transformers, and the Dobrushin coefficient of DINOv2's attention averaged over heads and images is often attained at a pair involving a single register token, and drops markedly when that token is left out.

Section 2 fixes notation and modelling choices, Section 3 proves the characterisation, Section 4 reports the measurements, Section 5 discusses limitations and future work, and Section 6 positions the work.

References (27)