At the core of the popular Transformer architecture is the self-attention mechanism, which dynamically assigns softmax weights to each input token so that the model can focus on the most salient information. However, the softmax structure slows down the attention computation due to its row-wise nature, and it inherently introduces competition among tokens: as the weight assigned to one token increases, the weights of others decrease. This competitive dynamic may narrow the focus of self-attention to a limited set of features, potentially overlooking other informative characteristics. Recent experimental studies have shown that using the element-wise sigmoid function helps eliminate token competition and reduce the computational overhead. Despite these promising empirical results, a rigorous comparison between sigmoid and softmax self-attention mechanisms remains absent in the literature. This paper closes this gap by theoretically demonstrating that sigmoid self-attention is more sample-efficient than its softmax counterpart. Toward that goal, we represent the self-attention matrix as a mixture of experts and show that ``experts'' in sigmoid self-attention require significantly less data to achieve the same approximation error as those in softmax self-attention.
Softmax是一种输出激活函数,用于在许多深度学习应用中对分类概率分布进行建模。然而,最近的一项研究表明,softmax可能是语言建模中神经网络表示能力的瓶颈(softmax瓶颈)。在本文中,我们提出了一个输出激活函数,用于在没有额外参数的情况下打破softmax瓶颈。我们从log-softmax的输出集的角度重新分析了softmax瓶颈,并确定了softmax瓶颈的原因。在此分析的基础上,我们提出了sigsoftmax,它是由指数函数和sigmoid函数的乘法。Sigsoftmax可以打破softmax的瓶颈。语言建模实验表明,sigsoftmax和mixed of sigsoftmax分别优于softmax和mixed of softmax。
Demystifying Softmax Gating Function in Gaussian Mixture of Experts
The University of Texas at Austin(德克萨斯大学奥斯汀分校);Univ. Grenoble Alpes, Inria(格勒诺布尔阿尔卑斯大学,法国国家信息与自动化研究所);CNRS, Grenoble INP, LJK(法国国家科学研究中心,格勒诺布尔理工学院,让·库尔研究所)
A General Theory for Softmax Gating Multinomial Logistic Mixture of Experts
The University of Texas at Austin(德克萨斯大学奥斯汀分校);Univ. Grenoble Alpes(格勒诺布尔大学);Inria(法国国家信息与自动化研究所);CNRS(法国国家科学研究中心);Grenoble INP(格勒诺布尔理工学院);LJK(约瑟夫·傅里叶实验室);The University of Queensland(昆士兰大学)
On Minimax Estimation of Parameters in Softmax-Contaminated Mixture of Experts
Department of Computer Science(计算机科学系);Department of Statistics and Data Sciences(统计学与数据科学系);Department of Electrical and Computer Engineering(电气与计算机工程系)
Fast Model Selection and Stable Optimization for Softmax-Gated Multinomial-Logistic Mixture of Experts Models
School of Computing, National University of Singapore, Singapore.(新加坡国立大学计算机学院);ARC Centre of Excellence for the Mathematical Analysis of Cellular Systems(细胞系统数学分析卓越研究中心);School of Mathematical Sciences, Queensland University of Technology, Brisbane, Australia.(昆士兰科技大学数学科学学院);Department of Statistics and Data Science, University of Texas at Austin, Austin, USA(德克萨斯大学奥斯汀分校统计与数据科学系)
How Sparse Probability Maps Shape Mixture-of-Experts Routing
Técnico, Universidade de Lisboa(里斯本大学高等技术学院);INESC-ID(INESC-ID研究所);Instituto de Telecomunicações(电信研究所);ELLIS Unit Lisbon(ELLIS里斯本分部);Gandara AI(Gandara AI公司)
Dendrograms of Mixing Measures for Softmax-Gated Gaussian Mixture of Experts: Consistency Without Model Sweeps
Faculty of Mathematics and Computer Science, University of Science, Ho Chi Minh City, Vietnam(越南胡志明市科学大学数学与计算机科学学院);Vietnam National University Ho Chi Minh City, Vietnam(越南胡志明市国家大学);Faculty of Information Technology, University of Science, Ho Chi Minh City, Vietnam(越南胡志明市科学大学信息技术学院);ARC Centre of Excellence for the Mathematical Analysis of Cellular Systems(细胞系统数学分析 excellence 中心);School of Mathematical Sciences, Queensland University of Technology, Brisbane City, Australia(昆士兰科技大学数学科学学院);Department of Statistics and Data Science, University of Texas at Austin, Austin, USA(德克萨斯大学奥斯汀分校统计与数据科学系)
MC#: Mixture Compressor for Mixture-of-Experts Large Models
Department of Electrical and Electronic Engineering, The University of Hong Kong(香港大学电子与电气工程系);School of Computing, National University of Singapore(新加坡国立大学计算机学院);NVIDIA Research(NVIDIA研究)
Sliding Window Attention Training for Efficient Large Language Models
City University of Hong Kong(香港城市大学);Xi’an Jiaotong University(西安交通大学);Jarvis Research Center, Tencent YouTu Lab(腾讯优图实验室研究部);Westlake University(西湖大学);University of Science and Technology of China(中国科学技术大学);Southern University of Science and Technology(南方科技大学)
Non-asymptotic oracle inequalities for the Lasso in high-dimensional mixture of experts
The University of Queensland(昆士兰大学);Univ. Grenoble Alpes(格勒诺布尔大学);Inria(法国国家信息与自动化研究所);CNRS(法国国家科学研究中心);Grenoble INP(格勒诺布尔理工学院);LJK(让·昆汀·莫雷尔实验室);La Trobe University(拉筹伯大学);Kyushu University(九州大学);IRT SystemX
Rethinking Nonlinearity: Trainable Gaussian Mixture Modules for Modern Neural Architectures
Guangdong Institute of Intelligence Science and Technology(广东智能科学与技术研究院);Great Bay University(大湾大学);University of Massachusetts at Amherst(马萨诸塞大学阿姆赫斯特分校)
Multi-Aspect Temporal Network Embedding: A Mixture of Hawkes Process View
Beihang University(北京航空航天大学);Beijing Advanced Innovation Center for Big Data and Brain Computing(大数据与脑计算北京高等创新中心);Beijing Key Laboratory of Emergency Support Simulation Technologies for City Operations(城市运行应急保障模拟技术北京市重点实验室)
Reducing Overconfidence Predictions for Autonomous Driving Perception
Federal Institute of Espirito Santo(圣埃斯皮里图联邦学院);Institute of Systems and Robotics (ISR-UC)(系统与机器人研究所(科英布拉大学));University of Coimbra(科英布拉大学);Nottingham Trent University(诺丁汉特伦特大学);University of Hertfordshire(赫特福德大学);Portuguese Mint and Official Printing Office(葡萄牙铸币与官方印刷局)
Revisiting Incremental Stochastic Majorization-Minimization Algorithms with Applications to Mixture of Experts
School of Computing, National University of Singapore(新加坡国立大学计算机学院);ARC Centre of Excellence for the Mathematical Analysis of Cellular Systems(细胞系统数学分析卓越中心);School of Mathematical Sciences, Queensland University of Technology(昆士兰科技大学数学科学学院);Laboratoire d’Analyse et d’Architecture des Systèmes, CNRS(系统分析与架构实验室,CNRS);School of Medicine and Dentistry, Griffith University(格里菲斯大学医学与牙科学院);Department of Mathematics and Physical Sciences, La Trobe University(拉特罗布大学数学与物理科学系);Institute of Mathematics for Industry, Kyushu University(工业数学研究所,九州大学);Faculty of Mathematics and Computer Science, University of Science, Ho Chi Minh City(胡志明市大学数学与计算机科学学院);Vietnam National University, Ho Chi Minh City(越南国家大学,胡志明市);Univ. Grenoble Alpes, Inria, CNRS, Grenoble INP, LJK(格勒诺布尔阿尔卑斯大学,Inria,CNRS,格勒诺布尔INP,LJK)
Gradient-free variational learning with conditional mixture networks
VERSES AI Research Lab(VERSES AI研究实验室);Max Planck Institute of Animal Behavior(马克斯·普朗克动物行为研究所);Technische Universität Dresden(德累斯顿工业大学);University of Sussex(萨塞克斯大学);Duke University(杜克大学)