Go Wider Instead of Deeper
Fuzhao Xue, Ziji Shi, Futao Wei, Yuxuan Lou, Yong Liu, Yang You
摘要
More transformer blocks with residual connections have recently achieved impressive results on various tasks. To achieve better performance with fewer trainable parameters, recent methods are proposed to go shallower by parameter sharing or model compressing along with the depth. However, weak modeling capacity limits their performance. Contrastively, going wider by inducing more trainable matrixes and parameters would produce a huge model requiring advanced parallelism to train and inference.
In this paper, we propose a parameter-efficient framework, going wider instead of deeper. Specially, following existing works, we adapt parameter sharing to compress along depth. But, such deployment would limit the performance. To maximize modeling capacity, we scale along model width by replacing feed-forward network (FFN) with mixture-of-experts (MoE). Across transformer blocks, instead of sharing normalization layers, we propose to use individual layernorms to transform various semantic representations in a more parameter-efficient way. To evaluate our plug-and-run framework, we design WideNet and conduct comprehensive experiments on popular computer vision and natural language processing benchmarks. On ImageNet-1K, our best model outperforms Vision Transformer (ViT) by 1.5% with 0.72 times trainable parameters. Using 0.46 times and 0.13 times parameters, our WideNet can still surpass ViT and ViT-MoE by 0.8% and 2.1%, respectively. On four natural language processing datasets, WideNet outperforms ALBERT by 1.8% on average and surpass BERT using factorized embedding parameterization by 0.8% with fewer parameters.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 25 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Robust Mixture-of-Expert Training for Convolutional Neural Networks 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Robust Mixture-of-Expert Training for Convolutional Neural Networks 引用了 Scaling Vision with Sparse Mixture of Experts
- Robust Mixture-of-Expert Training for Convolutional Neural Networks 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- Are Transformers more robust than CNNs? 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models 引用了 Scaling Vision with Sparse Mixture of Experts
- OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- To Repeat or Not To Repeat: Insights from Scaling LLM under Token-Crisis 引用了 ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
- To Repeat or Not To Repeat: Insights from Scaling LLM under Token-Crisis 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- To Repeat or Not To Repeat: Insights from Scaling LLM under Token-Crisis 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- Scaling Vision with Sparse Mixture of Experts 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Scaling Vision with Sparse Mixture of Experts 引用了 RandAugment: Practical Automated Data Augmentation with a Reduced Search Space
- Scaling Vision with Sparse Mixture of Experts 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- Toward Efficient Inference for Mixture of Experts 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Toward Efficient Inference for Mixture of Experts 引用了 Scaling Vision with Sparse Mixture of Experts
- Toward Efficient Inference for Mixture of Experts 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
引用它的顶会 Paper25
- Are Transformers more robust than CNNs?Yutong Bai, Jieru Mei, Alan L. Yuille, Cihang XieNeurIPS 2021 · 365 次引用
- OpenMoE: An Early Effort on Open Mixture-of-Experts Language ModelsFuzhao Xue, Zian Zheng, Yao Fu, Jinjie Ni 等ICML 2024 · 183 次引用
- To Repeat or Not To Repeat: Insights from Scaling LLM under Token-CrisisFuzhao Xue, Yao Fu, Wangchunshu Zhou, Zangwei Zheng 等NeurIPS 2023 · 149 次引用
- Toward Efficient Inference for Mixture of ExpertsHaiyang Huang, Newsha Ardalani, Anna Y. Sun, Liu Ke 等NeurIPS 2024 · 60 次引用
- Robust Mixture-of-Expert Training for Convolutional Neural NetworksYihua Zhang, Ruisi Cai, Tianlong Chen, Guanhua Zhang 等ICCV 2023 · 43 次引用
它引用的 Paper10
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- ALBERT: A Lite BERT for Self-supervised Learning of Language RepresentationsZhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel 等ICLR 2020 · 7,418 次引用
- RandAugment: Practical Automated Data Augmentation with a Reduced Search SpaceEkin Dogus Cubuk, Barret Zoph, Jonathon Shlens, Quoc LeNeurIPS 2020 · 4,453 次引用
- GShard: Scaling Giant Models with Conditional Computation and Automatic ShardingDmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen 等ICLR 2021 · 1,954 次引用
- Scaling Vision with Sparse Mixture of ExpertsCarlos Riquelme, Joan Puigcerver, Basil Mustafa, Maxim Neumann 等NeurIPS 2021 · 1,213 次引用
相关 Paper
- MoEUT: Mixture-of-Experts Universal TransformersRóbert Csordás, Kazuki Irie, Jürgen Schmidhuber, Christopher Potts 等NeurIPS 2024 · 65 次引用
- MiniViT: Compressing Vision Transformers with Weight MultiplexingJinnian Zhang, Houwen Peng, Kan Wu, Mengchen Liu 等CVPR 2022 · 115 次引用
- Pushing Mixture of Experts to the Limit: Extremely Parameter Efficient MoE for Instruction TuningTed Zadouri, Ahmet Üstün, Arash Ahmadian, Beyza Ermis 等ICLR 2024 · 169 次引用
- Sparse MoE as the New Dropout: Scaling Dense and Self-Slimmable TransformersTianlong Chen, Zhenyu Zhang, Ajay Kumar Jaiswal, Shiwei Liu 等ICLR 2023 · 6 次引用
- Multi-Path Transformer is Better: A Case Study on Neural Machine TranslationYe Lin, Shuhan Zhou, Yanyang Li, Anxiang Ma 等EMNLP Findings 2022
