mlsanityData to 7 Oct 2026

Macformer: Transformer with Random Maclaurin Feature Attention

arXiv 2408.11656 ↗First posted 21 Aug 2024cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Random feature attention (RFA) adopts random fourier feature (RFF) methods to approximate the softmax function, resulting in a linear time and space attention mechanism that enables the construction of an efficient Transformer. Inspired by RFA, we propose Macformer, a Transformer architecture that employs random Maclaurin features (RMF) to approximate various dot-product kernels, thereby accelerating attention computations for long sequence. Macformer consists of Random Maclaurin Feature Attention (RMFA) and pre-post Scaling Batch Normalization (ppSBN), the former is an unbiased approximation for dot-product kernelized attention and the later is a two-stage regularization mechanism guaranteeing the error of RMFA. We conducted toy experiments to demonstrate the efficiency of RMFA and ppSBN, and experiments on long range arena (LRA) benchmark to validate the acceleration and accuracy of Macformer with different dot-product kernels. Experiment results of Macformer are consistent with our theoretical analysis.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 26 of its 38 references that are in the map. First posted on arXiv 21 Aug 2024.

Builds on

26 of 38 references.

References · 26

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2022Training language models to follow instructions with human feedbackcited by 15,712
  4. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  5. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  6. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
  7. 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,360
  8. 2020Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecastingcited by 2,141
  9. 2020Rethinking Attention with Performerscited by 1,584
  10. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  11. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  12. 2019Cross-lingual Language Model Pretrainingcited by 1,088
14 more
  1. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  2. 2022GIT: A Generative Image-to-text Transformer for Vision and Languagecited by 536
  3. 2019Axial Attention in Multidimensional Transformerscited by 350
  4. 2021Random Feature Attentioncited by 350
  5. 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
  6. 2020Pixel-BERT: Aligning Image Pixels with Text by Deep Multi-Modal Transformerscited by 288
  7. 2016Multi30K: Multilingual English-German Image Descriptionscited by 250
  8. 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
  9. 2021VIOLET : End-to-End Video-Language Transformers with Masked Visual-token Modelingcited by 187
  10. 2019Blockwise Self-Attention for Long Document Understandingcited by 158
  11. 2019An Attentive Survey of Attention Modelscited by 123
  12. 2023A Comprehensive Survey on Applications of Transformers for Deep Learning Taskscited by 70
  13. 2018Learning with SGD and Random Featurescited by 33
  14. 2022Efficient Large-scale Audio Tagging via Transformer-to-CNN Knowledge Distillationcited by 25

Built on by

Not cited yet.