mlsanityData to 7 Oct 2026

DCT-Former: Efficient Self-Attention with Discrete Cosine Transform

arXiv 2203.01178 ↗First posted 2 Mar 2022cs.LG eess.SPcited by 12

Not on the map. Why?

Abstract (arXiv)

Since their introduction the Trasformer architectures emerged as the dominating architectures for both natural language processing and, more recently, computer vision applications. An intrinsic limitation of this family of "fully-attentive" architectures arises from the computation of the dot-product attention, which grows both in memory consumption and number of operations as O(n2) where n stands for the input sequence length, thus limiting the applications that require modeling very long sequences. Several approaches have been proposed so far in the literature to mitigate this issue, with varying degrees of success. Our idea takes inspiration from the world of lossy data compression (such as the JPEG algorithm) to derive an approximation of the attention module by leveraging the properties of the Discrete Cosine Transform. An extensive section of experiments shows that our method takes up less memory for the same performance, while also drastically reducing inference time. This makes it particularly suitable in real-time contexts on embedded platforms. Moreover, we assume that the results of our research might serve as a starting point for a broader family of deep neural models with reduced memory footprint. The implementation will be made publicly available at https://github.com/cscribano/DCT-Former-Public

Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 41 of its 64 references that are in the map. First posted on arXiv 2 Mar 2022.

Builds on

41 of 64 references.

References · 41

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  6. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  7. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  8. 2020End-to-End Object Detection with Transformerscited by 7,384
  9. 2016Layer Normalizationcited by 5,579
  10. 2020Longformer: The Long-Document Transformercited by 3,362
  11. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  12. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
29 more
  1. 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
  2. 2020Reformer: The Efficient Transformercited by 1,658
  3. 2020Rethinking Attention with Performerscited by 1,584
  4. 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,548
  5. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
  6. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  7. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
  8. 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
  9. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
  10. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
  11. 2021FNet: Mixing Tokens with Fourier Transformscited by 343
  12. 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
  13. 2020Learning in the Frequency Domaincited by 196
  14. 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
  15. 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 128
  16. 2021Long-Short Transformer: Efficient Transformers for Language and Visioncited by 102
  17. 2020The Cost of Training NLP Models: A Concise Overviewcited by 97
  18. 2017Semi-supervised sequence tagging with bidirectional language modelscited by 86
  19. 2021Sparse is Enough in Scaling Transformerscited by 86
  20. 2021How to Train BERT with an Academic Budgetcited by 80
  21. 2021Combiner: Full Attention Transformer with Sparse Computation Costcited by 64
  22. 2021Fastformer: Additive Attention Can Be All You Needcited by 61
  23. 2020SqueezeBERT: What can computer vision teach NLP about efficient neural networks?cited by 50
  24. 2020Hard-Coded Gaussian Attention for Neural Machine Translationcited by 42
  25. 2021FMMformer: Efficient and Flexible Transformer via Decomposed Near-field and Far-field Attentioncited by 26
  26. 2019Band-limited Training and Inference for Convolutional Neural Networkscited by 13
  27. 2014Jpeg Image Compression Using Discrete Cosine Transform - A Surveycited by 11
  28. 2019DCT-CompCNN: A Novel Image Classification Network Using JPEG Compressed DCT Coefficientscited by 11
  29. 2016Learning Fast Sparsifying Transformscited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 1; 2023: 2; 2024: 2; 2025: 3; 2026: 4.

12 papers.