Brainformers: Trading Simplicity for Efficiency
Yanqi Zhou, Nan Du, Yanping Huang, Daiyi Peng, Chang Lan, Da Huang, Siamak Shakeri, David R. So, Andrew M. Dai, Yifeng Lu, Zhifeng Chen, Quoc V. Le
摘要
Transformers are central to recent successes in natural language processing and computer vision. Transformers have a mostly uniform backbone where layers alternate between feed-forward and self-attention in order to build a deep network. Here we investigate this design choice and find that more complex blocks that have different permutations of layer primitives can be more efficient. Using this insight, we develop a complex block, named Brainformer, that consists of a diverse sets of layers such as sparsely gated feed-forward layers, dense feed-forward layers, attention layers, and various forms of layer normalization and activation functions. Brainformer consistently outperforms the state-of-the-art dense and sparse Transformers, in terms of both quality and efficiency. A Brainformer model with 8 billion activated parameters per token demonstrates 2x faster training convergence and 5x faster step time compared to its GLaM counterpart. In downstream task evaluation, Brainformer also demonstrates a 3% higher SuperGLUE score with fine-tuning compared to GLaM with a similar number of activated parameters. Finally, Brainformer largely outperforms a Primer dense model derived with NAS with similar computation per token on fewshot evaluations.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 16 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- CoAtNet: Marrying Convolution and Attention for All Data Sizes 引用了 Language Models are Few-Shot Learners
- Statistical Perspective of Top-K Sparse Softmax Gating Mixture of Experts 引用了 GLaM: Efficient Scaling of Language Models with Mixture-of-Experts
- Statistical Perspective of Top-K Sparse Softmax Gating Mixture of Experts 引用了 FuseMoE: Mixture-of-Experts Transformers for Fleximodal Fusion
- FuseMoE: Mixture-of-Experts Transformers for Fleximodal Fusion 引用了 Statistical Perspective of Top-K Sparse Softmax Gating Mixture of Experts
- OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models 引用了 GLaM: Efficient Scaling of Language Models with Mixture-of-Experts
- OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models 引用了 Language Models are Few-Shot Learners
- OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models 引用了 Mixture-of-Experts with Expert Choice Routing
- On Least Square Estimation in Softmax Gating Mixture of Experts 引用了 Statistical Perspective of Top-K Sparse Softmax Gating Mixture of Experts
- FuseMoE: Mixture-of-Experts Transformers for Fleximodal Fusion 引用了 Mixture-of-Experts with Expert Choice Routing
- Mixture-of-Experts with Expert Choice Routing 引用了 CoAtNet: Marrying Convolution and Attention for All Data Sizes
- Sigmoid Gating is More Sample Efficient than Softmax Gating in Mixture of Experts 引用了 Statistical Perspective of Top-K Sparse Softmax Gating Mixture of Experts
- Sigmoid Gating is More Sample Efficient than Softmax Gating in Mixture of Experts 引用了 On Least Square Estimation in Softmax Gating Mixture of Experts
- Sigmoid Gating is More Sample Efficient than Softmax Gating in Mixture of Experts 引用了 GLaM: Efficient Scaling of Language Models with Mixture-of-Experts
- Sigmoid Gating is More Sample Efficient than Softmax Gating in Mixture of Experts 引用了 FuseMoE: Mixture-of-Experts Transformers for Fleximodal Fusion
引用它的顶会 Paper16
- OpenMoE: An Early Effort on Open Mixture-of-Experts Language ModelsFuzhao Xue, Zian Zheng, Yao Fu, Jinjie Ni 等ICML 2024 · 183 次引用
- FuseMoE: Mixture-of-Experts Transformers for Fleximodal FusionXing Han, Huy Nguyen, Carl Harris, Nhat Ho 等NeurIPS 2024 · 129 次引用
- Sigmoid Gating is More Sample Efficient than Softmax Gating in Mixture of ExpertsHuy Nguyen, Nhat Ho, Alessandro RinaldoNeurIPS 2024 · 35 次引用
- Statistical Perspective of Top-K Sparse Softmax Gating Mixture of ExpertsHuy Nguyen, Pedram Akbarian, Fanqi Yan, Nhat HoICLR 2024 · 29 次引用
- On Least Square Estimation in Softmax Gating Mixture of ExpertsHuy Nguyen, Nhat Ho, Alessandro RinaldoICML 2024 · 25 次引用
它引用的 Paper15
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- MLP-Mixer: An all-MLP Architecture for VisionIlya O. Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer 等NeurIPS 2021 · 3,862 次引用
- CoAtNet: Marrying Convolution and Attention for All Data SizesZihang Dai, Hanxiao Liu, Quoc V. Le, Mingxing TanNeurIPS 2021 · 1,747 次引用
- GLaM: Efficient Scaling of Language Models with Mixture-of-ExpertsNan Du, Yanping Huang, Andrew M. Dai, Simon Tong 等ICML 2022 · 1,173 次引用
- Mixture-of-Experts with Expert Choice RoutingYanqi Zhou, Tao Lei, Hanxiao Liu, Nan Du 等NeurIPS 2022 · 933 次引用
相关 Paper
- DenseFormer: Enhancing Information Flow in Transformers via Depth Weighted AveragingMatteo Pagliardini, Amirkeivan Mohtashami, François Fleuret, Martin JaggiNeurIPS 2024 · 60 次引用
- RealFormer: Transformer Likes Residual AttentionRuining He, Anirudh Ravula, Bhargav Kanagal, Joshua AinslieACL Findings 2021 · 104 次引用
- Efficient Long-Range Transformers: You Need to Attend More, but Not Necessarily at Every LayerQingru Zhang, Dhananjay Ram, Cole Hawkins, Sheng Zha 等EMNLP Findings 2023 · 18 次引用
- BiFormer: Vision Transformer with Bi-Level Routing AttentionLei Zhu, Xinjiang Wang, Zhanghan Ke, Wayne Zhang 等CVPR 2023
- Scaling Vision with Sparse Mixture of ExpertsCarlos Riquelme, Joan Puigcerver, Basil Mustafa, Maxim Neumann 等NeurIPS 2021 · 1,213 次引用
