With the attention mechanism, transformers achieve significant empirical successes. Despite the intuitive understanding that transformers perform relational inference over long sequences to produce desirable representations, we lack a rigorous theory on how the attention mechanism achieves it. In particular, several intriguing questions remain open: (a) What makes a desirable representation? (b) How does the attention mechanism infer the desirable representation within the forward pass? (c) How does a pretraining procedure learn to infer the desirable representation through the backward pass?
We observe that, as is the case in BERT and ViT, input tokens are often exchangeable since they already include positional encodings. The notion of exchangeability induces a latent variable model that is invariant to input sizes, which enables our theoretical analysis.
- To answer (a) on representation, we establish the existence of a sufficient and minimal representation of input tokens. In particular, such a representation instantiates the posterior distribution of the latent variable given input tokens, which plays a central role in predicting output labels and solving downstream tasks.
- To answer (b) on inference, we prove that attention with the desired parameter infers the latent posterior up to an approximation error, which is decreasing in input sizes. In detail, we quantify how attention approximates the conditional mean of the value given the key, which characterizes how it performs relational inference over long sequences.
- To answer (c) on learning, we prove that both supervised and self-supervised objectives allow empirical risk minimization to learn the desired parameter up to a generalization error, which is independent of input sizes. Particularly, in the self-supervised setting, we identify a condition number that is pivotal to solving downstream tasks.
Relative Geometry of Neural Forecasters: Linking Accuracy and Alignment in Learned Latent Geometry
Max Planck Institute for Human Cognitive and Brain Sciences(马克斯·普朗克人类认知与脑科学研究所);School of Embedded Composite Artificial Intelligence (SECAI)(嵌入式复合人工智能学院);Leipzig University(莱比锡大学);Max Planck Institute for Mathematics in the Sciences(马克斯·普朗克数学研究院)
Evaluating the Efficiency of Latent Spaces via the Coupling-Matrix
Faculty of Engineering(工程学院);Natural Sciences Işık University, İstanbul, Türkiye(自然科学学院,伊斯坦布尔大学);Natural Sciences Sabancı University, İstanbul, Türkiye(自然科学学院,萨班奇大学)
Identifiable Latent Polynomial Causal Models Through the Lens of Change
Australian Institute for Machine Learning, The University of Adelaide(阿德莱德大学澳大利亚机器学习研究所);School of Computer Science and Engineering, The University of New South Wales(新南威尔士大学计算机科学与工程学院);School of Mathematics and Statistics, The University of Melbourne(墨尔本大学数学与统计学院);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);Halicioğlu Data Science Institute (HDSI), University of California San Diego(加州大学圣地亚哥分校哈利西奥格鲁数据科学研究所);Carnegie Mellon University(卡内基梅隆大学)
Identifiable Exchangeable Mechanisms for Causal Structure and Representation Learning
Max Planck Institute for Intelligent Systems(马克斯·普朗克智能系统研究所);University of Cambridge(剑桥大学);ELLIS Institute Tübingen(埃利斯研究所蒂宾根分所);Tübingen AI Center(蒂宾根人工智能中心)
LIDS: LLM Summary Inference Under the Layered Lens
Department of Mathematics, University of Southern California(数学系,南加州大学);Data Sciences and Operations Department, Marshall School of Business, University of Southern California(数据科学与运营系,马歇尔商学院,南加州大学)
One Lens, Many Worlds : A Capability-Typed Interface for World-Model Interpretability
New York University(纽约大学);Independent Researcher(独立研究者);Veermata Jijabai Technological Institute(韦尔玛塔·吉贾拜技术学院);Mercity;University of Southern California(南加州大学);Independent Researcher, MIT(麻省理工学院独立研究者);Independent Researcher, GITAM(GITAM独立研究者);Georgia Institute of Technology(佐治亚理工学院)
Spectral Lens: Activation and Gradient Spectra as Diagnostics of LLM Optimization
Department of Applied Physics, Yale University, New Haven, CT 06511, United States(耶鲁大学应用物理系);Department of Mathematics and Statistics, McGill University(麦吉尔大学数学与统计学系);Department of Applied Physics, Yale University, New Haven, Connecticut 06511, USA(耶鲁大学应用物理系);Energy Sciences Institute, Yale University, West Haven, Connecticut 06516, USA(耶鲁大学能源科学研究所)
From What to How: Attributing CLIP's Latent Components Reveals Unexpected Semantic Reliance
Fraunhofer Heinrich Hertz Institute(弗劳恩霍夫海因里希·赫兹研究所);Technische Universität Berlin(柏林技术大学);BIFOLD – Berlin Institute for the Foundations of Learning and Data(柏林学习与数据基础研究所);Centre of eXplainable Artificial Intelligence, Technological University Dublin(可解释人工智能中心,都柏林技术大学)