Hash Layers For Large Sparse Models
Stephen Roller, Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston
摘要
We investigate the training of sparse layers that use different parameters for different inputs based on hashing in large Transformer models. Specifically, we modify the feedforward layer to hash to different sets of weights depending on the current token, over all tokens in the sequence. We show that this procedure either outperforms or is competitive with learning-to-route mixture-of-expert methods such as Switch Transformers and BASE Layers, while requiring no routing parameters or extra terms in the objective function such as a load balancing loss, and no sophisticated assignment algorithm. We study the performance of different hashing techniques, hash sizes and input features, and show that balanced and random hashes focused on the most local features work best, compared to either learning clusters or using longer-range context. We show our approach works well both on large language modeling and dialogue tasks, and on downstream fine-tuning tasks.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 105 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Unified Scaling Laws for Routed Language Models 引用了 BASE Layers: Simplifying Training of Large, Sparse Models
- Unified Scaling Laws for Routed Language Models 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- Multimodal Contrastive Learning with LIMoE: the Language-Image Mixture of Experts 引用了 BASE Layers: Simplifying Training of Large, Sparse Models
- Multimodal Contrastive Learning with LIMoE: the Language-Image Mixture of Experts 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- On the Representation Collapse of Sparse Mixture of Experts 引用了 Unified Scaling Laws for Routed Language Models
- On the Representation Collapse of Sparse Mixture of Experts 引用了 Unsupervised Cross-lingual Representation Learning at Scale
- On the Representation Collapse of Sparse Mixture of Experts 引用了 BASE Layers: Simplifying Training of Large, Sparse Models
- On the Representation Collapse of Sparse Mixture of Experts 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- On the Representation Collapse of Sparse Mixture of Experts 引用了 Mixture-of-Experts with Expert Choice Routing
- From Sparse to Soft Mixtures of Experts 引用了 Unified Scaling Laws for Routed Language Models
- From Sparse to Soft Mixtures of Experts 引用了 Multimodal Contrastive Learning with LIMoE: the Language-Image Mixture of Experts
- From Sparse to Soft Mixtures of Experts 引用了 BASE Layers: Simplifying Training of Large, Sparse Models
- From Sparse to Soft Mixtures of Experts 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
- From Sparse to Soft Mixtures of Experts 引用了 Mixture-of-Experts with Expert Choice Routing
- BASE Layers: Simplifying Training of Large, Sparse Models 引用了 Unsupervised Cross-lingual Representation Learning at Scale
- Mixture-of-Experts with Expert Choice Routing 引用了 BASE Layers: Simplifying Training of Large, Sparse Models
- Mixture-of-Experts with Expert Choice Routing 引用了 GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
引用它的顶会 Paper105
- Mixture-of-Experts with Expert Choice RoutingYanqi Zhou, Tao Lei, Hanxiao Liu, Nan Du 等NeurIPS 2022 · 933 次引用
- Multimodal Contrastive Learning with LIMoE: the Language-Image Mixture of ExpertsBasil Mustafa, Carlos Riquelme, Joan Puigcerver, Rodolphe Jenatton 等NeurIPS 2022 · 359 次引用
- Unified Scaling Laws for Routed Language ModelsAidan Clark, Diego de Las Casas, Aurelia Guy, Arthur Mensch 等ICML 2022 · 266 次引用
- From Sparse to Soft Mixtures of ExpertsJoan Puigcerver, Carlos Riquelme Ruiz, Basil Mustafa, Neil HoulsbyICLR 2024 · 264 次引用
- On the Representation Collapse of Sparse Mixture of ExpertsZewen Chi, Li Dong, Shaohan Huang, Damai Dai 等NeurIPS 2022 · 223 次引用
它引用的 Paper6
- Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 次引用
- GShard: Scaling Giant Models with Conditional Computation and Automatic ShardingDmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen 等ICLR 2021 · 1,954 次引用
- Unsupervised Cross-lingual Representation Learning at ScaleAlexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary 等ACL 2020 · 539 次引用
- BASE Layers: Simplifying Training of Large, Sparse ModelsMike Lewis, Shruti Bhosale, Tim Dettmers, Naman Goyal 等ICML 2021 · 382 次引用
- Poly-encoders: Architectures and Pre-training Strategies for Fast and Accurate Multi-sentence ScoringSamuel Humeau, Kurt Shuster, Marie-Anne Lachaux, Jason WestonICLR 2020 · 316 次引用
相关 Paper
- Towards A Unified View of Sparse Feed-Forward Network in Pretraining Large Language ModelZeyu Liu, Tim Dettmers, Xi Lin, Veselin Stoyanov 等EMNLP 2023 · 3 次引用
- A Theoretical View on Sparsely Activated NetworksCenk Baykal, Nishanth Dikkala, Rina Panigrahy, Cyrus Rashtchian 等NeurIPS 2022 · 14 次引用
- : Large Lookup LayersAlbert Tseng, Chris De SaICML 2026 · 2 次引用
- Hyperparameter Transfer with Mixture-of-Expert LayersTianze Jiang, Blake Bordelon, Cengiz Pehlevan, Boris HaninICML 2026 · 6 次引用
- On the Benefits of Learning to Route in Mixture-of-Experts ModelsNishanth Dikkala, Nikhil Ghosh, Raghu Meka, Rina Panigrahy 等EMNLP 2023 · 9 次引用
