Hash Layers For Large Sparse Models

By Stephen Roller, Sainbayar Sukhbaatar, Arthur Szlam, Jason Aaron Edward Weston. 2021

301 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Efficiency & Compression

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Jianfeng Gao
  2. Luke S. Zettlemoyer
  3. Mohit Bansal
  4. Quoc V. Le
  5. Graham Neubig
  6. Furu Wei
  7. Noah A. Smith
  8. Percy Liang

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Jianfeng Gao
  4. Trevor Darrell
  5. Xiaogang Wang
  6. Andrew Zisserman
  7. Ming-Hsuan Yang
  8. Jitendra Malik

In Efficiency & Compression

  1. Dan Alistarh
  2. Barret Zoph
  3. Luke S. Zettlemoyer
  4. Elias Frantar
  5. Quoc V. Le
  6. Joseph Dean
  7. Canwen Xu
  8. Noah A. Smith

Citations in the corpus