DCT-Former: Efficient Self-Attention with Discrete Cosine Transform
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2016Layer Normalizationcited by 5,579
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
29 more
- 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,548
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
- 2021FNet: Mixing Tokens with Fourier Transformscited by 343
- 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
- 2020Learning in the Frequency Domaincited by 196
- 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
- 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 128
- 2021Long-Short Transformer: Efficient Transformers for Language and Visioncited by 102
- 2020The Cost of Training NLP Models: A Concise Overviewcited by 97
- 2017Semi-supervised sequence tagging with bidirectional language modelscited by 86
- 2021Sparse is Enough in Scaling Transformerscited by 86
- 2021How to Train BERT with an Academic Budgetcited by 80
- 2021Combiner: Full Attention Transformer with Sparse Computation Costcited by 64
- 2021Fastformer: Additive Attention Can Be All You Needcited by 61
- 2020SqueezeBERT: What can computer vision teach NLP about efficient neural networks?cited by 50
- 2020Hard-Coded Gaussian Attention for Neural Machine Translationcited by 42
- 2021FMMformer: Efficient and Flexible Transformer via Decomposed Near-field and Far-field Attentioncited by 26
- 2019Band-limited Training and Inference for Convolutional Neural Networkscited by 13
- 2014Jpeg Image Compression Using Discrete Cosine Transform - A Surveycited by 11
- 2019DCT-CompCNN: A Novel Image Classification Network Using JPEG Compressed DCT Coefficientscited by 11
- 2016Learning Fast Sparsifying Transformscited by 4
Built on by
Citing papers per year: 2022: 1; 2023: 2; 2024: 2; 2025: 3; 2026: 4.
12 papers.
- 2023Fourier Transformer: Fast Long Range Modeling by Removing Sequence Redundancy with FFT Operatorcited by 19
- 2022Fast-FNet: Accelerating Transformer Encoder Models via Efficient Fourier Layerscited by 5
- 2024Complexity-Aware Deep Symbolic Regression with Robust Risk-Seeking Policy Gradientscited by 4
- 2025TreeKV: Smooth Key-Value Cache Compression with Tree Structurescited by 3
- 2023FMRT: Learning Accurate Feature Matching with Reconciliatory Transformercited by 2
- 2024Discrete Cosine Transform Based Decorrelated Attention for Vision Transformerscited by 2
- 2025Spectral Compression Transformer with Line Pose Graph for Monocular 3D Human Pose Estimationcited by 1
- 2026A Unified Framework for Knowledge Transfer in Bidirectional Model Scalingcited by 1
- 2026Blurry Window Attentioncited by 1
- 2025Dynamic Rank Reinforcement Learning for Adaptive Low-Rank Multi-Head Self Attention in Large Language Modelscited by 0
- 2026FourierSampler: Unlocking Non-Autoregressive Potential in Diffusion Language Models via Frequency-Guided Generationcited by 0
- 2026Caracal: Causal Architecture via Spectral Mixingcited by 0
- 2026Blurry Window Attention31 May 2026
- 2026Caracal: Causal Architecture via Spectral Mixing30 Apr 2026
- 2026A Unified Framework for Knowledge Transfer in Bidirectional Model Scaling8 Mar 2026
- 2026FourierSampler: Unlocking Non-Autoregressive Potential in Diffusion Language Models via Frequency-Guided Generation30 Jan 2026
- 2025Dynamic Rank Reinforcement Learning for Adaptive Low-Rank Multi-Head Self Attention in Large Language Models17 Dec 2025
- 2025Spectral Compression Transformer with Line Pose Graph for Monocular 3D Human Pose Estimation27 May 2025
- 2025TreeKV: Smooth Key-Value Cache Compression with Tree Structures9 Jan 2025
- 2024Complexity-Aware Deep Symbolic Regression with Robust Risk-Seeking Policy Gradients10 Jun 2024
- 2024Discrete Cosine Transform Based Decorrelated Attention for Vision Transformers22 May 2024
- 2023FMRT: Learning Accurate Feature Matching with Reconciliatory Transformer20 Oct 2023
- 2023Fourier Transformer: Fast Long Range Modeling by Removing Sequence Redundancy with FFT Operator24 May 2023
- 2022Fast-FNet: Accelerating Transformer Encoder Models via Efficient Fourier Layers26 Sep 2022