Clustering in Causal Attention Masking
Nikita Karagodin, Yury Polyanskiy, Philippe Rigollet
Abstract
This work presents a modification of the self-attention dynamics proposed by Geshkovski et al. (arXiv:2312.10794) to better reflect the practically relevant, causally masked attention used in transformer architectures for generative AI. This modification translates into an interacting particle system that cannot be interpreted as a mean-field gradient flow. Despite this loss of structure, we significantly strengthen the results of Geshkovski et al. (arXiv:2312.10794) in this context: While previous rigorous results focused on cases where all three matrices (Key, Query, and Value) were scaled identities, we prove asymptotic convergence to a single cluster for arbitrary key-query matrices and a value matrix equal to the identity. Additionally, we establish a connection to the classical Rényi parking problem from combinatorial geometry to make initial theoretical steps towards demonstrating the existence of meta-stable states.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
13 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Muse: Text-To-Image Generation via Masked Generative Transformers cites Zero-Shot Text-to-Image Generation
- Critical attention scaling in long-context transformers cites Attention is not all you need: pure attention loses rank doubly exponentially with depth
- Critical attention scaling in long-context transformers cites The emergence of clusters in self-attention dynamics
- Critical attention scaling in long-context transformers cites A multiscale analysis of mean-field transformers in the moderate interaction regime
- A multiscale analysis of mean-field transformers in the moderate interaction regime cites Critical attention scaling in long-context transformers
- Critical attention scaling in long-context transformers cites Normalization in Attention Dynamics
- Attention is not all you need: pure attention loses rank doubly exponentially with depth cites ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
- Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamics cites Critical attention scaling in long-context transformers
- Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamics cites Attention is not all you need: pure attention loses rank doubly exponentially with depth
- Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamics cites The emergence of clusters in self-attention dynamics
- Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamics cites A multiscale analysis of mean-field transformers in the moderate interaction regime
- Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamics cites Normalization in Attention Dynamics
- The emergence of clusters in self-attention dynamics cites ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
- The emergence of clusters in self-attention dynamics cites Attention is not all you need: pure attention loses rank doubly exponentially with depth
- A multiscale analysis of mean-field transformers in the moderate interaction regime cites The emergence of clusters in self-attention dynamics
- Optimal Control for Transformer Architectures: Enhancing Generalization, Robustness and Efficiency cites The emergence of clusters in self-attention dynamics
- Normalization in Attention Dynamics cites The emergence of clusters in self-attention dynamics
- Normalization in Attention Dynamics cites A multiscale analysis of mean-field transformers in the moderate interaction regime
Cited by top-tier papers13
- A multiscale analysis of mean-field transformers in the moderate interaction regimeGiuseppe Bruno, Federico Pasqualotto, Andrea AgazziNeurIPS 2025 · 29 citations
- Critical attention scaling in long-context transformersShi Chen, Zhengjiang Lin, Yury Polyanskiy, Philippe RigolletICLR 2026 · 22 citations
- Normalization in Attention DynamicsNikita Karagodin, Shu Ge, Yury Polyanskiy, Philippe RigolletNeurIPS 2025 · 10 citations
- Optimal Control for Transformer Architectures: Enhancing Generalization, Robustness and EfficiencyKelvin Kan, Xingjian Li, Benjamin J. Zhang, Tuhin Sahai et al.NeurIPS 2025 · 9 citations
- Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention DynamicsHugo Koubbi, Louis Hernandez, Matthieu BoussardICML 2026 · 7 citations
Builds on9
- ALBERT: A Lite BERT for Self-supervised Learning of Language RepresentationsZhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel et al.ICLR 2020 · 7,418 citations
- Zero-Shot Text-to-Image GenerationAditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray et al.ICML 2021 · 6,356 citations
- Muse: Text-To-Image Generation via Masked Generative TransformersHuiwen Chang, Han Zhang, Jarred Barber, Aaron Maschinot et al.ICML 2023 · 751 citations
- Attention is not all you need: pure attention loses rank doubly exponentially with depthYihe Dong, Jean-Baptiste Cordonnier, Andreas LoukasICML 2021 · 522 citations
- The emergence of clusters in self-attention dynamicsBorjan Geshkovski, Cyril Letrouit, Yury Polyanskiy, Philippe RigolletNeurIPS 2023 · 163 citations
Related papers
- Emergence of meta-stable clustering in mean-field transformer modelsGiuseppe Bruno, Federico Pasqualotto, Andrea AgazziICLR 2025 · 2 citations
- Clustering in Deep Stochastic TransformersLev Fedorov, Michael Sander, Romuald Elie, Pierre Marion et al.ICML 2026 · 7 citations
- Understanding Softmax Attention Layers: Exact Mean-Field Analysis on a Toy ProblemElvis DohmatobNeurIPS 2025 · 3 citations
- Consensus Is All You Get: The Role of Attention in TransformersÁlvaro Rodríguez Abella, João Pedro Silvestre, Paulo TabuadaICML 2025
- Attention's forward pass and Frank-WolfeAlbert Alcalde, Borjan Geshkovski, Domènec Ruiz-BaletICML 2026
