Masked Mixers for Language Generation and Retrieval
Not on the map. Why?
Abstract (arXiv)
Attention mechanisms that confer selective focus on a strict subset of input elements are nearly ubiquitous in language models today. We posit there to be downside to the use of attention: most input information is lost. In support of this idea we observe poor input representation accuracy in transformers and more accurate representation in what we term masked mixers, which replace self-attention with masked convolutions. The masked mixer learns causal language modeling more efficiently than early transformer implementations and even outperforms optimized, current transformers when training on small (nctx<512) but not larger context windows. Evidence is presented for the hypothesis that differences in transformer and masked mixer training efficiencies for various tasks are best predicted by input representation accuracy, or equivalently global invertibility. We hypothesize that the information loss exhibited by transformers would be more detrimental to retrieval than generation, as the former is more closely approximated by a bijective and thus invertible function. We find that masked mixers are more effective retrieval models both when the pretrained embedding model is unchanged as well as when the embedding model is modified via cosine similarity-based InfoNCE loss minimization. A small masked mixer is shown to outperform a large and near state-of-the-art transformer-based retrieval model, despite the latter being trained with many orders of magnitude more data and compute.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 28 of its 44 references that are in the map. First posted on arXiv 2 Sep 2024.
Builds on
28 of 44 references.
References · 28
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
16 more
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,104
- 2022In-context Learning and Induction Headscited by 930
- 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 425
- 2014Understanding Deep Image Representations by Inverting Themcited by 399
- 20218-bit Optimizers via Block-wise Quantizationcited by 395
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 388
- 2024Better & Faster Large Language Models via Multi-token Predictioncited by 344
- 2023Improving Text Embeddings with Large Language Modelscited by 295
- 2018A mathematical theory of semantic development in deep neural networkscited by 182
- 2023Monarch Mixer: A Simple Sub-Quadratic GEMM-Based Architecturecited by 62
- 2021Do You Even Need Attention? A Stack of Feed-Forward Layers Does Surprisingly Well on ImageNetcited by 61
- 2022pNLP-Mixer: an Efficient all-MLP Architecture for Languagecited by 19
- 2021Invertible Attentioncited by 5
- 2022Depth and Representation in Vision Modelscited by 3
- 2022Why Deep Learning Generalizescited by 2
- 2022Small Language Models for Tabular Datacited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.