English

Clustering in Causal Attention Masking

Machine Learning 2024-11-12 v2 Artificial Intelligence Analysis of PDEs Dynamical Systems

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\'enyi parking problem from combinatorial geometry to make initial theoretical steps towards demonstrating the existence of meta-stable states.

Keywords

Cite

@article{arxiv.2411.04990,
  title  = {Clustering in Causal Attention Masking},
  author = {Nikita Karagodin and Yury Polyanskiy and Philippe Rigollet},
  journal= {arXiv preprint arXiv:2411.04990},
  year   = {2024}
}

Comments

38th Conference on Neural Information Processing Systems (NeurIPS 2024), 22 pages, 6 figures

R2 v1 2026-06-28T19:52:06.466Z