Multi-Headed Transformer Architectures as Time-dependent Wasserstein Gradient Flows
Department of Applied Mathematics and Theoretical Physics, University of Cambridge(应用数学与理论物理系,剑桥大学);Department of Mathematics, University of Twente(数学系,埃因霍温理工大学)
Alex Massucco, Leonardo Del Grande, Marcello Carioni, Christoph Brune, Carola-Bibiane Schönlieb
In recent years, transformer architectures have revolutionized the field of language processing, opening the door to previously unforeseen possibilities. However, from a theoretical point of view, the mathematical models proposed in the literature often lack direct contact with the actual architectures and depend on strong simplifying assumptions. In this paper, we reduce this gap by modelling the data flow in multi-headed transformer architectures as time-dependent gradient flows for a suitable interaction energy capturing the design of the attention mechanism. The explicit dependence on time allows us to consider different weights for each head and for each layer, without imposing constraints on the initialization method. Moreover, we prove that, under a suitable integrability assumption on the evolution of the weights, each element of the $ω$-limit set of the gradient flows is a stationary point of the interaction energy at a limiting weight distribution. Finally, we analyse the stability of the gradient flows considering perturbations of both the initial data and the weights. Specifically, on the one hand, we study the robustness of the proposed models with respect to noisy inputs, establishing a continuous dependence of the gradient flows on the initial data and uniqueness of the flows. On the other hand, we prove the $Γ$-convergence of the perturbed interaction energy to the unperturbed one, leading to the convergence of the corresponding gradient flows. We complement these theoretical results with numerical experiments that confirm the predicted energy-dissipation identity and clarify the asymptotic behavior of the dynamics in both the autonomous-like (Ornstein--Uhlenbeck) and the genuinely non-autonomous (oscillating-weights) regimes.
Sparse Transformer Architectures via Regularized Wasserstein Proximal Operator with $L_1$ Prior
Department of Mathematics, University of California, Los Angeles, CA, USA(加州大学洛杉矶分校数学系);Department of Mathematics, University of South Carolina, Columbia, SC, USA(南卡罗来纳大学数学系)
WGFormer: An SE(3)-Transformer Driven by Wasserstein Gradient Flows for Molecular Ground-State Conformation Prediction
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学首都人工智能学院);Beijing Key Laboratory of Research on Large Models(北京大型模型研究关键实验室);Engineering Research Center of Next-Generation Intelligent Search(下一代智能搜索工程研究中心)
Transformers Can Solve Non-Linear and Non-Markovian Filtering Problems in Continuous Time For Conditionally Gaussian Signals
Department of Mathematics, University of Oxford(牛津大学数学系);Oxford Man Institute for Quantitative Finance, University of Oxford(牛津大学牛津曼量化金融研究所);Department of Mathematics, McMaster University(麦克马斯特大学数学系);Vector Institute(向量研究所)
CardioTabNet: A Novel Hybrid Transformer Model for Heart Disease Prediction using Tabular Medical Data
Qatar University(卡塔尔大学);University of Dhaka(达卡大学);Kuwait College of Science and Technology(科威特科技学院);Vels Institute of Sciences, Technology, and Advanced Studies(维尔斯科学技术与高级研究院)
Deep learning based on Transformer architecture for power system short-term voltage stability assessment with class imbalance
School of Electrical Engineering, Northeast Electric Power University(东北电力大学电气工程学院);State Grid Chengde Power Supply Company(国网承德供电公司);School of Electrical and Electronic Engineering, Nanyang Technological University(南洋理工大学电气与电子工程学院);College of Electrical and Information Engineering, Hunan University(湖南大学电气与信息工程学院)
Wasserstein Wormhole: Scalable Optimal Transport Distance with Transformers
Sloan Kettering Institute(斯隆凯特琳研究所);Memorial Sloan Kettering Cancer Center(纪念斯隆凯特琳癌症中心);Tri-Institutional Training Program in Computational Biology and Medicine(三机构计算生物学与医学培训项目);Weill Cornell Medicine(威尔康奈尔医学院);Columbia University(哥伦比亚大学);Yale University(耶鲁大学);Howard Hughes Medical Institute(霍华德·休斯医学研究所)
University of Toronto(多伦多大学);Lawrence Berkeley National Laboratory(劳伦斯伯克利国家实验室);California Institute of Technology(加州理工学院);Inria Paris, École des Ponts(法国国家信息与自动化研究所巴黎分所、巴黎桥路学院)
Quantifying Concentration Phenomena of Mean-Field Transformers in the Low-Temperature Regime
Department of Mathematics(数学系);Friedrich-Alexander-University Erlangen-Nürnberg(埃朗根-纽伦堡弗里德里希-亚历山大大学);Institute of Mathematics(数学研究所);CAIDAS University of Würzburg(魏玛大学CAIDAS学院);University of Oxford(牛津大学);Reuben College(雷本学院);CIT School(CIT学院);Technical University of Munich(慕尼黑技术大学);Munich Center for Machine Learning(慕尼黑机器学习中心)
Self-attentive Transformer for Fast and Accurate Postprocessing of Temperature and Wind Speed Forecasts
Faculty of Applied Engineering, University of Antwerp(应用工程学院,安特卫普大学);CEREA, École des Ponts and EDF R&D(CEREA,Ponts学院和EDF R&D);Royal Meteorological Institute of Belgium(比利时皇家气象研究所);Department of Physics and Astronomy, Ghent University(物理与天文学系,根特大学);United Nations University Institute for Water, Environment and Health(联合国大学水、环境与健康研究所)
WBHT: A Generative Attention Architecture for Detecting Black Hole Anomalies in Backbone Networks
Istanbul Technical University, Department of Computer Engineering, Türkiye(伊斯坦布尔技术大学计算机工程系);Istanbul Technical University, Department of Artificial Intelligence(伊斯坦布尔技术大学人工智能系);Memorial University, Canada(纪念大学);ITU AI Research and Application Center, Istanbul, Türkiye(ITU人工智能研究与应用中心)
Perceptrons and localization of attention's mean-field landscape
Universidad Autónoma de Madrid(马德里自治大学);Laboratoire Jacques-Louis Lions Inria & Sorbonne Université(雅克-路易-洛伦斯实验室 Inria & 巴黎索邦大学);Universitat de Barcelona(巴塞罗那大学)