paper-with-me

홈 › Papers

Efficient Language Modeling with Sparse all-MLP

2022-03-14 · Ping Yu, Mikel Artetxe, Myle Ott, Sam Shleifer, Hongyu Gong, Ves Stoyanov, Xian Li

All-MLP architectures have attracted increasing interest as an alternative to attention-based models. In NLP, recent work like gMLP shows that all-MLPs can match Transformers in language modeling, but still lag behind in downstream tasks. In this work, we analyze the limitations of MLPs in expressiveness, and propose sparsely activated MLPs with mixture-of-experts (MoEs) in both feature and input (token) dimensions. Such sparse all-MLPs significantly increase model capacity and expressiveness while keeping the compute constant. We address critical challenges in incorporating conditional computation with two routing strategies. The proposed sparse all-MLP improves language modeling perplexity and obtains up to 2$\times$ improvement in training efficiency compared to both Transformer-based MoEs (GShard, Switch Transformer, Base Layers and HASH Layers) as well as dense Transformers and all-MLPs. Finally, we evaluate its zero-shot in-context learning performance on six downstream tasks, and find that it surpasses Transformer-based MoEs and dense Transformers.

📄 PDF Abstract BibTeX arXiv:2203.06850

Code (0)

등록된 구현이 없습니다.

Tasks

AllCommon Sense ReasoningIn-Context LearningLanguage ModelingLanguage ModellingMixture-of-ExpertsQuestion AnsweringSentence CompletionZero-Shot Learning

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Residual Connection 설명 없음
Spatial Gating Unit Spatial Gating Unit, or SGU, is a gating unit used in the gMLP architecture to captures spatial interactions. To enable…

Similar Papers 제목 키워드 기반

Weight Sparsity Complements Activity Sparsity in Neuromorphic Language Models

2024-05-01 · Rishav Mukherji, Mark Schöne, Khaleelulla Khan Nazeer, Christian Mayr 외

Activity and parameter sparsity are two standard methods of making neural networks computationally more efficient. Event-based architectures such as spiking neural networks (SNNs) naturally exhibit activity sparsity, and…

Language ModelingLanguage Modelling

Language Adaptive Cross-lingual Speech Representation Learning with Sparse Sharing Sub-networks

2022-03-09 · Yizhou Lu, Mingkun Huang, Xinghua Qu, Pengfei Wei 외

Unsupervised cross-lingual speech representation learning (XLSR) has recently shown promising results in speech recognition by leveraging vast amounts of unlabeled data across multiple languages. However, standard XLSR m…

Representation Learningspeech-recognitionSpeech RecognitionSpeech Representation Learning

Block-wise Dynamic Sparseness

2020-01-14 · Amir Hadifar, Johannes Deleu, Chris Develder, Thomas Demeester

Neural networks have achieved state of the art performance across a wide variety of machine learning tasks, often with large and computation-heavy models. Inducing sparseness as a way to reduce the memory and computation…

Language ModelingLanguage Modelling

$π$-Attention: Online Efficient Sparse Transformers for Long-Context Modeling

2025-11-12 · Dong Liu, Yanxuan Yu arxiv

Sparse attention is crucial in long-context Transformers, which restricts each token to a limited neighborhood and thereby reduces the quadratic cost of full self-attention. Local windows capture nearby context effective…

Long-range modeling

Sparse Non-negative Matrix Language Modeling

2016-01-01 · TACL 2016 1 · Joris Pelemans, Noam Shazeer, Ciprian Chelba

We present Sparse Non-negative Matrix (SNM) estimation, a novel probability estimation technique for language modeling that can efficiently incorporate arbitrary features. We evaluate SNM language models on two corpora: …

Automatic Speech Recognition (ASR)Language ModelingLanguage ModellingSentence+1