Lune

NeurIPS2021Top-tier venue

Hash Layers For Large Sparse Models

Stephen Roller, Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

105 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Unified Scaling Laws for Routed Language Models cites BASE Layers: Simplifying Training of Large, Sparse Models
  • Unified Scaling Laws for Routed Language Models cites GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • Multimodal Contrastive Learning with LIMoE: the Language-Image Mixture of Experts cites BASE Layers: Simplifying Training of Large, Sparse Models
  • Multimodal Contrastive Learning with LIMoE: the Language-Image Mixture of Experts cites GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • On the Representation Collapse of Sparse Mixture of Experts cites Unified Scaling Laws for Routed Language Models
  • On the Representation Collapse of Sparse Mixture of Experts cites Unsupervised Cross-lingual Representation Learning at Scale
  • On the Representation Collapse of Sparse Mixture of Experts cites BASE Layers: Simplifying Training of Large, Sparse Models
  • On the Representation Collapse of Sparse Mixture of Experts cites GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • On the Representation Collapse of Sparse Mixture of Experts cites Mixture-of-Experts with Expert Choice Routing
  • From Sparse to Soft Mixtures of Experts cites Unified Scaling Laws for Routed Language Models
  • From Sparse to Soft Mixtures of Experts cites Multimodal Contrastive Learning with LIMoE: the Language-Image Mixture of Experts
  • From Sparse to Soft Mixtures of Experts cites BASE Layers: Simplifying Training of Large, Sparse Models
  • From Sparse to Soft Mixtures of Experts cites GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • From Sparse to Soft Mixtures of Experts cites Mixture-of-Experts with Expert Choice Routing
  • BASE Layers: Simplifying Training of Large, Sparse Models cites Unsupervised Cross-lingual Representation Learning at Scale
  • Mixture-of-Experts with Expert Choice Routing cites BASE Layers: Simplifying Training of Large, Sparse Models
  • Mixture-of-Experts with Expert Choice Routing cites GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers105

  1. Mixture-of-Experts with Expert Choice RoutingYanqi Zhou, Tao Lei, Hanxiao Liu, Nan Du et al.NeurIPS 2022 · 933 citations
  2. Multimodal Contrastive Learning with LIMoE: the Language-Image Mixture of ExpertsBasil Mustafa, Carlos Riquelme, Joan Puigcerver, Rodolphe Jenatton et al.NeurIPS 2022 · 359 citations
  3. Unified Scaling Laws for Routed Language ModelsAidan Clark, Diego de Las Casas, Aurelia Guy, Arthur Mensch et al.ICML 2022 · 266 citations
  4. From Sparse to Soft Mixtures of ExpertsJoan Puigcerver, Carlos Riquelme Ruiz, Basil Mustafa, Neil HoulsbyICLR 2024 · 264 citations
  5. On the Representation Collapse of Sparse Mixture of ExpertsZewen Chi, Li Dong, Shaohan Huang, Damai Dai et al.NeurIPS 2022 · 223 citations

Builds on6

  1. Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 citations
  2. GShard: Scaling Giant Models with Conditional Computation and Automatic ShardingDmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen et al.ICLR 2021 · 1,954 citations
  3. Unsupervised Cross-lingual Representation Learning at ScaleAlexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary et al.ACL 2020 · 539 citations
  4. BASE Layers: Simplifying Training of Large, Sparse ModelsMike Lewis, Shruti Bhosale, Tim Dettmers, Naman Goyal et al.ICML 2021 · 382 citations
  5. Poly-encoders: Architectures and Pre-training Strategies for Fast and Accurate Multi-sentence ScoringSamuel Humeau, Kurt Shuster, Marie-Anne Lachaux, Jason WestonICLR 2020 · 316 citations

Related papers

  1. Towards A Unified View of Sparse Feed-Forward Network in Pretraining Large Language ModelZeyu Liu, Tim Dettmers, Xi Lin, Veselin Stoyanov et al.EMNLP 2023 · 3 citations
  2. A Theoretical View on Sparsely Activated NetworksCenk Baykal, Nishanth Dikkala, Rina Panigrahy, Cyrus Rashtchian et al.NeurIPS 2022 · 14 citations
  3. L3L^3: Large Lookup LayersAlbert Tseng, Chris De SaICML 2026 · 2 citations
  4. Hyperparameter Transfer with Mixture-of-Expert LayersTianze Jiang, Blake Bordelon, Cengiz Pehlevan, Boris HaninICML 2026 · 6 citations
  5. On the Benefits of Learning to Route in Mixture-of-Experts ModelsNishanth Dikkala, Nikhil Ghosh, Raghu Meka, Rina Panigrahy et al.EMNLP 2023 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines