SOTAVerified

Efficient Language Modeling with Sparse all-MLP

2022-03-14Unverified0· sign in to hype

Ping Yu, Mikel Artetxe, Myle Ott, Sam Shleifer, Hongyu Gong, Ves Stoyanov, Xian Li

Unverified — Be the first to reproduce this paper.

Reproduce

Abstract

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 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.

Tasks

Benchmark Results

DatasetModelMetricClaimedVerifiedStatus
ReCoRDSwitch Transformer 9BEM79.9Unverified
ReCoRDBase Layers 10B (0-shot)EM60.7Unverified
ReCoRDHASH Layers 10B (0-shot)EM67.2Unverified
ReCoRDGshard 9BEM72.4Unverified
ReCoRDsMLP – deterministic 9.4B (0-shot)EM73.4Unverified
WinoGrandeBase Layers 10B (0-shot)Accuracy51Unverified
WinoGrandeGshard 9B (0-shot)Accuracy51.1Unverified
WinoGrandeHASH Layers 10B (0-shot)Accuracy51.7Unverified
WinoGrandeSwitch Transformer 9B (0-shot)Accuracy53.4Unverified
WinoGrandesMLP – deterministic 9.4B (0-shot)Accuracy54.3Unverified

Reproductions