cs.LGFeb 11, 2026
SaveAttention Geometry
Abstract
Attention normalizes learned scores into a Markov operator. In the continuum, the local sector becomes diffusion on a learned Riemannian manifold, but attention natively bonds distant points, creating nonlocal structure such that no tensor geometry can describe. The Bakry-Emery calculus, built directly from the transition operator, extends geometry to these potentially stratified spaces, giving a coordinate-free account of what vision and language transformers learn.
Figures & tables
Figure 1: Heat spreading on a sampled Swiss roll under a Markov walk. At suitable bandwidth the motion follows local neighborhoods of the sheet, and the long-time equilibrium is visibly nonuniform.
Figure 2: Swiss-roll generation under DMTN in the order FFN MHSA. The first panel shows the -point training set and the remaining panels show generated samples at the indicated generative times. All eight conditions generate the data comparably, as the null task requires, and their transports are distinguished in Table 1 .
| Operator | Order | ||||
|---|---|---|---|---|---|
| DMAP | FFN MHSA | ||||
| DMAP | MHSA FFN | ||||
| DMTN | FFN MHSA | ||||
| DMTN | MHSA FFN | ||||
| ATAP | FFN MHSA | ||||
| ATAP | MHSA FFN |
Table 1: Swiss-roll scan (seed ): similar generated samples, distinct learned transport.
Figure 3: Samples from the unmodified pretrained SiT-XL/2 ( Ma et al., 2024 ) .
Figure 4: DMTN transfer. Samples immediately after substituting of Eq. ( 128 ) into the pretrained checkpoint (left) and after adaptation steps (right).
Figure 5: Distance-form DMAP transfer. Samples immediately after folding the adapted DMTN checkpoint into the distance form of Remark 128 (left) and after further adaptation steps (right).
| Pre-mask score | Validation bpb |
|---|---|
| ATTN | |
| DMTN | |
| DMAP |
Table 2: Depth-12 training from scratch. The measurements are single-seed results; ATAP was not evaluated.
| State | Score | bpb | Induction | CORE |
|---|---|---|---|---|
| ATTN | ||||
| DMTN | ||||
| ATTN | ||||
| DMTN |
Table 3: Sequentially adapted depth-32 checkpoints, not independent matched-budget ablations.
| exact | free | |
|---|---|---|
| definite | DMAP | DMTN |
| indefinite | ATAP | ATTN |
Table 4: The transport family. Each operator is , sorted by whether its symmetric logit keeps the definite quadratic core and whether its antisymmetric logit stays exact. DMAP keeps both rules with half of attention’s query–key parameters, DMTN and ATAP each break one, and ATTN breaks both.
More in this topic
Transformer Attention
Transformer attention lets models relate tokens by weighting information from other positions, enabling context-dependent sequence and multimodal processing.
See all 324 papers