EcoFormer: Energy-Saving Attention with Linear Complexity
Not on the map. Why?
Abstract (arXiv)
Transformer is a transformative framework that models sequential data and has achieved remarkable performance on a wide range of tasks, but with high computational and energy cost. To improve its efficiency, a popular choice is to compress the models via binarization which constrains the floating-point values into binary ones to save resource consumption owing to cheap bitwise operations significantly. However, existing binarization methods only aim at minimizing the information loss for the input distribution statistically, while ignoring the pairwise similarity modeling at the core of the attention. To this end, we propose a new binarization paradigm customized to high-dimensional softmax attention via kernelized hashing, called EcoFormer, to map the original queries and keys into low-dimensional binary codes in Hamming space. The kernelized hash functions are learned to match the ground-truth similarity relations extracted from the attention map in a self-supervised way. Based on the equivalence between the inner product of binary codes and the Hamming distance as well as the associative property of matrix multiplication, we can approximate the attention in linear complexity by expressing it as a dot-product of binary codes. Moreover, the compact binary representations of queries and keys enable us to replace most of the expensive multiply-accumulate operations in attention with simple accumulations to save considerable on-chip energy footprint on edge devices. Extensive experiments on both vision and language tasks show that EcoFormer consistently achieves comparable performance with standard attentions while consuming much fewer resources. For example, based on PVTv2-B0 and ImageNet-1K, Ecoformer achieves a 73% on-chip energy footprint reduction with only a 0.33% performance drop compared to the standard attention. Code is available at https://github.com/ziplab/EcoFormer.
Key facts. Cited by 21 papers in the map (data through 14 Oct 2026). Builds on 52 of its 84 references that are in the map. First posted on arXiv 19 Sep 2022.
Builds on
52 of 84 references.
References · 52
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
- 2020Reformer: The Efficient Transformercited by 1,668
- 2020Rethinking Attention with Performerscited by 1,601
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,104
38 more
- 2016XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networkscited by 849
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 751
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
- 2018Universal Transformerscited by 647
- 2019Learned Step Size Quantizationcited by 628
- 2015BinaryConnect: Training Deep Neural Networks with binary weights during propagationscited by 592
- 2016DoReFa-Net: Training Low Bitwidth Convolutional Neural Networks with Low Bitwidth Gradientscited by 569
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
- 2016Quantized Neural Networks: Training Neural Networks with Low Precision Weights and Activationscited by 426
- 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 359
- 2021Random Feature Attentioncited by 354
- 2019Q8BERT: Quantized 8Bit BERTcited by 300
- 2016EIE: Efficient Inference Engine on Compressed Deep Neural Networkcited by 295
- 2018Bi-Real Net: Enhancing the Performance of 1-bit CNNs With Improved Representational Capability and Advanced Training Algorithmcited by 235
- 2022cosFormer: Rethinking Softmax in Attentioncited by 213
- 2020BinaryBERT: Pushing the Limit of BERT Quantizationcited by 178
- 2018Learning to Quantize Deep Networks by Optimizing Quantization Intervals with Task Losscited by 160
- 2017Towards Accurate Binary Convolutional Neural Networkcited by 149
- 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
- 2020Fast Transformers with Clustered Attentioncited by 123
- 2020Training Binary Neural Networks with Real-to-Binary Convolutionscited by 112
- 2017Bit Fusion: Bit-Level Dynamically Composable Architecture for Accelerating Deep Neural Networkscited by 109
- 2015Practical and Optimal LSH for Angular Distancecited by 106
- 2020GOBO: Quantizing Attention-Based NLP Models for Low Latency and Energy Efficient Inferencecited by 106
- 2021Long-Short Transformer: Efficient Transformers for Language and Visioncited by 102
- 2017Apprentice: Using Knowledge Distillation Techniques To Improve Low-Precision Network Accuracycited by 101
- 2019XNOR-Net++: Improved Binary Neural Networkscited by 97
- 2019AdderNet: Do We Really Need Multiplications in Deep Learning?cited by 82
- 2022BiBERT: Accurate Fully Binarized BERTcited by 73
- 2021Combiner: Full Attention Transformer with Sparse Computation Costcited by 64
- 2019Regularizing Activation Distribution for Training Binarized Deep Networkscited by 61
- 2018ProxQuant: Quantized Neural Networks via Proximal Operatorscited by 59
- 2013Estimating or Propagating Gradients Through Stochastic Neuronscited by 55
- 2020SMYRF: Efficient Attention using Asymmetric Clusteringcited by 43
- 2018Structured Binary Neural Networks for Accurate Image Classification and Semantic Segmentationcited by 37
- 2018Loss-aware Weight Quantization of Deep Networkscited by 31
- 2020Deep Multi-View Enhancement Hashing for Image Retrievalcited by 27
50 most cited of 52 All 52 (JSON)
Built on by
Citing papers per year: 2022: 3; 2023: 6; 2024: 2; 2025: 8; 2026: 2.
21 papers.
Sort:
By area:
- 2023Outlier Suppression+: Accurate quantization of large language models by equivalent and optimal shifting and scalingcited by 61
- 2023A survey on efficient vision transformers: algorithms, techniques, and performance benchmarkingcited by 41
- 2024Graph Transformers: A Surveycited by 32
- 2022BiViT: Extremely Compressed Binary Vision Transformercited by 28
- 2022Castling-ViT: Compressing Self-Attention via Switching Towards Linear-Angular Attention at Vision Transformer Inferencecited by 28
- 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Reviewcited by 26
- 2025Spiking Vision Transformer with Saccadic Attentioncited by 21
- 2023ShiftAddViT: Mixture of Multiplication Primitives Towards Efficient Vision Transformercited by 15
- 2023RIFormer: Keep Your Vision Backbone Effective While Removing Token Mixercited by 13
- 2022Fcaformer: Forward Cross Attention in Hybrid Vision Transformercited by 7
- 2023SlowFormer: Universal Adversarial Patch for Attack on Compute and Energy Efficiency of Inference Efficient Vision Transformerscited by 3
- 2024Trimming Down Large Spiking Vision Transformers via Heterogeneous Quantization Searchcited by 2
9 more
- 2025MSVIT: Improving Spiking Vision Transformer Using Multi-scale Attention Fusioncited by 2
- 2026Neural Dynamics Self-Attention for Spiking Transformerscited by 2
- 2025SenDaL: An Effective and Efficient Calibration Framework of Low-Cost Sensors for Daily Lifecited by 0
- 2025Deeply Dual Supervised learning for melanoma recognitioncited by 0
- 2025Edge Detection for Organ Boundaries via Top Down Refinement and SubPixel Upsamplingcited by 0
- 2025DualResolution Residual Architecture with Artifact Suppression for Melanocytic Lesion Segmentationcited by 0
- 2025VesselRW: Weakly Supervised Subcutaneous Vessel Segmentation via Learned Random Walk Propagationcited by 0
- 2025Sensor Calibration Model Balancing Accuracy, Real-time, and Efficiencycited by 0
- 2026PatchDenoiser: Parameter-efficient multi-scale patch learning and fusion denoiser for Low-dose CT imagingcited by 0
- 2026Neural Dynamics Self-Attention for Spiking Transformers9 Mar 2026
- 2026PatchDenoiser: Parameter-efficient multi-scale patch learning and fusion denoiser for Low-dose CT imaging25 Feb 2026
- 2025Sensor Calibration Model Balancing Accuracy, Real-time, and Efficiency10 Nov 2025
- 2025VesselRW: Weakly Supervised Subcutaneous Vessel Segmentation via Learned Random Walk Propagation9 Aug 2025
- 2025DualResolution Residual Architecture with Artifact Suppression for Melanocytic Lesion Segmentation9 Aug 2025
- 2025Edge Detection for Organ Boundaries via Top Down Refinement and SubPixel Upsampling9 Aug 2025
- 2025Deeply Dual Supervised learning for melanoma recognition4 Aug 2025
- 2025MSVIT: Improving Spiking Vision Transformer Using Multi-scale Attention Fusion19 May 2025
- 2025Spiking Vision Transformer with Saccadic Attention18 Feb 2025
- 2025SenDaL: An Effective and Efficient Calibration Framework of Low-Cost Sensors for Daily Life12 Feb 2025
- 2024Trimming Down Large Spiking Vision Transformers via Heterogeneous Quantization Search7 Dec 2024
- 2024Graph Transformers: A Survey13 Jul 2024
9 more
- 2023SlowFormer: Universal Adversarial Patch for Attack on Compute and Energy Efficiency of Inference Efficient Vision Transformers4 Oct 2023
- 2023A survey on efficient vision transformers: algorithms, techniques, and performance benchmarking5 Sep 2023
- 2023ShiftAddViT: Mixture of Multiplication Primitives Towards Efficient Vision Transformer10 Jun 2023
- 2023Outlier Suppression+: Accurate quantization of large language models by equivalent and optimal shifting and scaling18 Apr 2023
- 2023RIFormer: Keep Your Vision Backbone Effective While Removing Token Mixer12 Apr 2023
- 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Review7 Apr 2023
- 2022Castling-ViT: Compressing Self-Attention via Switching Towards Linear-Angular Attention at Vision Transformer Inference18 Nov 2022
- 2022Fcaformer: Forward Cross Attention in Hybrid Vision Transformer14 Nov 2022
- 2022BiViT: Extremely Compressed Binary Vision Transformer14 Nov 2022
- 2023Outlier Suppression+: Accurate quantization of large language models by equivalent and optimal shifting and scalingcited by 61
- 2023A survey on efficient vision transformers: algorithms, techniques, and performance benchmarkingcited by 41
- 2024Graph Transformers: A Surveycited by 32
- 2022BiViT: Extremely Compressed Binary Vision Transformercited by 28
- 2022Castling-ViT: Compressing Self-Attention via Switching Towards Linear-Angular Attention at Vision Transformer Inferencecited by 28
- 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Reviewcited by 26
- 2025Spiking Vision Transformer with Saccadic Attentioncited by 21
- 2023RIFormer: Keep Your Vision Backbone Effective While Removing Token Mixercited by 13
- 2022Fcaformer: Forward Cross Attention in Hybrid Vision Transformercited by 7
- 2023SlowFormer: Universal Adversarial Patch for Attack on Compute and Energy Efficiency of Inference Efficient Vision Transformerscited by 3
- 2024Trimming Down Large Spiking Vision Transformers via Heterogeneous Quantization Searchcited by 2
- 2025MSVIT: Improving Spiking Vision Transformer Using Multi-scale Attention Fusioncited by 2
12 most cited of 20 All 20 (JSON)
- 2026Neural Dynamics Self-Attention for Spiking Transformers9 Mar 2026
- 2026PatchDenoiser: Parameter-efficient multi-scale patch learning and fusion denoiser for Low-dose CT imaging25 Feb 2026
- 2025Sensor Calibration Model Balancing Accuracy, Real-time, and Efficiency10 Nov 2025
- 2025VesselRW: Weakly Supervised Subcutaneous Vessel Segmentation via Learned Random Walk Propagation9 Aug 2025
- 2025DualResolution Residual Architecture with Artifact Suppression for Melanocytic Lesion Segmentation9 Aug 2025
- 2025Edge Detection for Organ Boundaries via Top Down Refinement and SubPixel Upsampling9 Aug 2025
- 2025Deeply Dual Supervised learning for melanoma recognition4 Aug 2025
- 2025MSVIT: Improving Spiking Vision Transformer Using Multi-scale Attention Fusion19 May 2025
- 2025Spiking Vision Transformer with Saccadic Attention18 Feb 2025
- 2025SenDaL: An Effective and Efficient Calibration Framework of Low-Cost Sensors for Daily Life12 Feb 2025
- 2024Trimming Down Large Spiking Vision Transformers via Heterogeneous Quantization Search7 Dec 2024
- 2024Graph Transformers: A Survey13 Jul 2024
12 newest of 20 All 20 (JSON)