mlsanityData to 14 Oct 2026

PairConnect: A Compute-Efficient MLP Alternative to Attention

arXiv 2106.08235 ↗First posted 15 Jun 2021cs.LG cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Transformer models have demonstrated superior performance in natural language processing. The dot product self-attention in Transformer allows us to model interactions between words. However, this modeling comes with significant computational overhead. In this work, we revisit the memory-compute trade-off associated with Transformer, particularly multi-head attention, and show a memory-heavy but significantly more compute-efficient alternative to Transformer. Our proposal, denoted as PairConnect, a multilayer perceptron (MLP), models the pairwise interaction between words by explicit pairwise word embeddings. As a result, PairConnect substitutes self dot product with a simple embedding lookup. We show mathematically that despite being an MLP, our compute-efficient PairConnect is strictly more expressive than Transformer. Our experiment on language modeling tasks suggests that PairConnect could achieve comparable results with Transformer while reducing the computational cost associated with inference significantly.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 22 of its 37 references that are in the map. First posted on arXiv 15 Jun 2021.

Builds on

22 of 37 references.

References · 22

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  4. 2020Language Models are Few-Shot Learnerscited by 32,419
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  6. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  7. 2016Gaussian Error Linear Units (GELUs)cited by 3,502
  8. 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,474
  9. 2016Pointer Sentinel Mixture Modelscited by 3,096
  10. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
  11. 2020Reformer: The Efficient Transformercited by 1,668
  12. 2020Rethinking Attention with Performerscited by 1,601
10 more
  1. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,475
  2. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  3. 2019BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformercited by 964
  4. 2016Language Modeling with Gated Convolutional Networkscited by 702
  5. 2016Neural Architectures for Named Entity Recognitioncited by 550
  6. 2021FNet: Mixing Tokens with Fourier Transformscited by 347
  7. 2019Deep Learning Recommendation Model for Personalization and Recommendation Systemscited by 327
  8. 2019Behavior Sequence Transformer for E-commerce Recommendation in Alibabacited by 130
  9. 2016Improving Neural Language Models with a Continuous Cachecited by 82
  10. 2018Beyond One-hot Encoding: lower dimensional target embeddingcited by 43

Built on by

Not cited yet.