The Transformer architecture has revolutionized artificial intelligence, yet a principled theoretical understanding of its internal mechanisms remains elusive. This paper introduces a novel analytical framework that reconceptualizes the Transformer's discrete, layered structure as a continuous spatiotemporal dynamical system governed by a master Partial Differential Equation (PDE). Within this paradigm, we map core architectural components to distinct mathematical operators: self-attention as a non-local interaction, the feed-forward network as a local reaction, and, critically, residual connections and layer normalization as indispensable stabilization mechanisms. We do not propose a new model, but rather employ the PDE system as a theoretical probe to analyze the mathematical necessity of these components. By comparing a standard Transformer with a PDE simulator that lacks explicit stabilizers, our experiments provide compelling empirical evidence for our central thesis. We demonstrate that without residual connections, the system suffers from catastrophic representational drift, while the absence of layer normalization leads to unstable, explosive training dynamics. Our findings reveal that these seemingly heuristic "tricks" are, in fact, fundamental mathematical stabilizers required to tame an otherwise powerful but inherently unstable continuous system. This work offers a first-principles explanation for the Transformer's design and establishes a new paradigm for analyzing deep neural networks through the lens of continuous dynamics.
Transformers Can Overcome the Curse of Dimensionality: A Theoretical Study from an Approximation Perspective
School of Artificial Intelligence, Wuhan University(武汉大学人工智能学院);Hubei Key Laboratory of Computational Science, Wuhan University(湖北省计算科学重点实验室);Department of Mathematics, The Hong Kong University of Science and Technology(香港科技大学数学系)
UCTransNet: Rethinking the Skip Connections in U-Net from a Channel-wise Perspective with Transformer
Northeastern University(东北大学);Key Laboratory of Intelligent Computing in Medical Image of Ministry of Education, Northeastern University(东北大学医学影像智能计算教育部重点实验室);Amii, University of Alberta(阿尔伯塔大学阿尔伯塔机器智能研究所)
A statistical perspective on transformers for small longitudinal cohort data
Institute of Medical Biometry and Statistics (IMBI), University of Freiburg(弗赖堡大学医学生物统计学研究所);Freiburg Center for Data Analysis, Modeling and AI, University of Freiburg(弗赖堡数据科学与人工智能中心);Department of Psychiatry, Psychosomatic Medicine and Psychotherapy, University Hospital Frankfurt(法兰克福大学精神病学、心身医学与心理治疗系);Department of Neuropsychology and Psychological Resilience Research, Central Institute of Mental Health (ZI), Mannheim, Germany(曼海姆中央心理健康研究所神经心理学与心理韧性研究部);Leibniz Institute for Resilience Research (LIR), Mainz, Germany(莱比锡韧性研究研究所);Department of Psychiatry and Psychotherapy, Johannes Gutenberg University Medical Center Mainz(法兰克福大学医学中心心理医学与心理治疗系);Department of Psychiatry, Psychotherapy and Psychosomatic Medicine, University Medicine Halle, Martin-Luther University Halle-Wittenberg(哈雷-韦茨拉尔大学医学院精神病学、心理治疗与心身医学系);German Center for Mental Health (DZPG), partner site Halle-Jena-Magdeburg(德国心理健康研究中心(DZPG)哈雷-耶纳-马格德堡合作伙伴站点);Neuroimaging Center (NIC), Focus Program Translational Neuroscience (FTN), Johannes Gutenberg University Medical Center, Mainz, Germany(神经成像中心(NIC)、转化神经科学焦点计划(FTN)、法兰克福大学医学中心,马尔堡,德国)
NORCE Norwegian Research Centre(挪威研究中心);Department of Mathematics, Hong Kong Baptist University(香港浸会大学数学系);School of Data Science and Department of Operations and Risk Management, Lingnan University(岭南大学数据科学学院与运营及风险管理系)
Department of Mathematics, Massachusetts Institute of Technology, 77 Massachusetts Ave, 02139 Cambridge MA, USA;CNRS \& Université Paris-Saclay Laboratoire de mathématiques d'Orsay, 307 rue Michel Magat, Bâtiment 307, 91400 Orsay, France;Department of EECS, Massachusetts Institute of Technology, 77 Massachusetts Ave, 02139 Cambridge MA, USA
Dual-perspective Cross Contrastive Learning in Graph Transformers
School of Computer Science, Wuhan University(武汉大学计算机学院);School of Computing and Information Systems, The University of Melbourne(墨尔本大学计算与信息系统学院);School of Computing, Macquarie University(麦考瑞大学计算学院)
Curse of Attention: A Kernel-Based Perspective for Why Transformers Fail to Generalize on Time Series Forecasting and Beyond
The University of Hong Kong(香港大学);University of Wisconsin-Madison(威斯康星大学麦迪逊分校);The Simons Institute for the Theory of Computing(西蒙斯理论计算研究所);UC Berkeley(加州大学伯克利分校);Sun Yat-sen University(中山大学)
Performance-Efficiency Tradeoffs in Transformers: An Approximation Theory Perspective
Center for Data Science(数据科学中心);Peking University(北京大学);Institute for Functional Intelligent Materials(功能智能材料研究所);National University of Singapore(新加坡国立大学);Department of Mathematics(数学系);Microsoft Research Asia(微软亚洲研究院)
A Survey on Graph Neural Networks and Graph Transformers in Computer Vision: A Task-Oriented Perspective
The University of Hong Kong(香港大学);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Future Network of Intelligence Institute, CUHK-Shenzhen(香港中文大学(深圳)未来智联网络研究院);ShanghaiTech University(上海科技大学)
Efficient Large-Scale Traffic Forecasting with Transformers: A Spatial Data Management Perspective
University of Electronic Science and Technology of China(电子科技大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Auburn University(奥本大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);National University of Singapore(新加坡国立大学);Peking University(北京大学);Yangtze Delta Region Institute (Quzhou)(长三角研究院(衢州))