mlsanityData to 14 Oct 2026

EcoFormer: Energy-Saving Attention with Linear Complexity

arXiv 2209.09004 ↗First posted 19 Sep 2022cs.CV cs.CL cs.LGcited by 21

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  5. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  6. 2020Longformer: The Long-Document Transformercited by 3,413
  7. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  8. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
  9. 2020Reformer: The Efficient Transformercited by 1,668
  10. 2020Rethinking Attention with Performerscited by 1,601
  11. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  12. 2021Perceiver: General Perception with Iterative Attentioncited by 1,104
38 more
  1. 2016XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networkscited by 849
  2. 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 751
  3. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
  4. 2018Universal Transformerscited by 647
  5. 2019Learned Step Size Quantizationcited by 628
  6. 2015BinaryConnect: Training Deep Neural Networks with binary weights during propagationscited by 592
  7. 2016DoReFa-Net: Training Low Bitwidth Convolutional Neural Networks with Low Bitwidth Gradientscited by 569
  8. 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
  9. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
  10. 2016Quantized Neural Networks: Training Neural Networks with Low Precision Weights and Activationscited by 426
  11. 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 359
  12. 2021Random Feature Attentioncited by 354
  13. 2019Q8BERT: Quantized 8Bit BERTcited by 300
  14. 2016EIE: Efficient Inference Engine on Compressed Deep Neural Networkcited by 295
  15. 2018Bi-Real Net: Enhancing the Performance of 1-bit CNNs With Improved Representational Capability and Advanced Training Algorithmcited by 235
  16. 2022cosFormer: Rethinking Softmax in Attentioncited by 213
  17. 2020BinaryBERT: Pushing the Limit of BERT Quantizationcited by 178
  18. 2018Learning to Quantize Deep Networks by Optimizing Quantization Intervals with Task Losscited by 160
  19. 2017Towards Accurate Binary Convolutional Neural Networkcited by 149
  20. 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
  21. 2020Fast Transformers with Clustered Attentioncited by 123
  22. 2020Training Binary Neural Networks with Real-to-Binary Convolutionscited by 112
  23. 2017Bit Fusion: Bit-Level Dynamically Composable Architecture for Accelerating Deep Neural Networkscited by 109
  24. 2015Practical and Optimal LSH for Angular Distancecited by 106
  25. 2020GOBO: Quantizing Attention-Based NLP Models for Low Latency and Energy Efficient Inferencecited by 106
  26. 2021Long-Short Transformer: Efficient Transformers for Language and Visioncited by 102
  27. 2017Apprentice: Using Knowledge Distillation Techniques To Improve Low-Precision Network Accuracycited by 101
  28. 2019XNOR-Net++: Improved Binary Neural Networkscited by 97
  29. 2019AdderNet: Do We Really Need Multiplications in Deep Learning?cited by 82
  30. 2022BiBERT: Accurate Fully Binarized BERTcited by 73
  31. 2021Combiner: Full Attention Transformer with Sparse Computation Costcited by 64
  32. 2019Regularizing Activation Distribution for Training Binarized Deep Networkscited by 61
  33. 2018ProxQuant: Quantized Neural Networks via Proximal Operatorscited by 59
  34. 2013Estimating or Propagating Gradients Through Stochastic Neuronscited by 55
  35. 2020SMYRF: Efficient Attention using Asymmetric Clusteringcited by 43
  36. 2018Structured Binary Neural Networks for Accurate Image Classification and Semantic Segmentationcited by 37
  37. 2018Loss-aware Weight Quantization of Deep Networkscited by 31
  38. 2020Deep Multi-View Enhancement Hashing for Image Retrievalcited by 27

50 most cited of 52 All 52 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 3; 2023: 6; 2024: 2; 2025: 8; 2026: 2.

21 papers.

Sort:

By area:

  1. 2023Outlier Suppression+: Accurate quantization of large language models by equivalent and optimal shifting and scalingcited by 61
  2. 2023A survey on efficient vision transformers: algorithms, techniques, and performance benchmarkingcited by 41
  3. 2024Graph Transformers: A Surveycited by 32
  4. 2022BiViT: Extremely Compressed Binary Vision Transformercited by 28
  5. 2022Castling-ViT: Compressing Self-Attention via Switching Towards Linear-Angular Attention at Vision Transformer Inferencecited by 28
  6. 2023On Efficient Training of Large-Scale Deep Learning Models: A Literature Reviewcited by 26
  7. 2025Spiking Vision Transformer with Saccadic Attentioncited by 21
  8. 2023ShiftAddViT: Mixture of Multiplication Primitives Towards Efficient Vision Transformercited by 15
  9. 2023RIFormer: Keep Your Vision Backbone Effective While Removing Token Mixercited by 13
  10. 2022Fcaformer: Forward Cross Attention in Hybrid Vision Transformercited by 7
  11. 2023SlowFormer: Universal Adversarial Patch for Attack on Compute and Energy Efficiency of Inference Efficient Vision Transformerscited by 3
  12. 2024Trimming Down Large Spiking Vision Transformers via Heterogeneous Quantization Searchcited by 2
9 more
  1. 2025MSVIT: Improving Spiking Vision Transformer Using Multi-scale Attention Fusioncited by 2
  2. 2026Neural Dynamics Self-Attention for Spiking Transformerscited by 2
  3. 2025SenDaL: An Effective and Efficient Calibration Framework of Low-Cost Sensors for Daily Lifecited by 0
  4. 2025Deeply Dual Supervised learning for melanoma recognitioncited by 0
  5. 2025Edge Detection for Organ Boundaries via Top Down Refinement and SubPixel Upsamplingcited by 0
  6. 2025DualResolution Residual Architecture with Artifact Suppression for Melanocytic Lesion Segmentationcited by 0
  7. 2025VesselRW: Weakly Supervised Subcutaneous Vessel Segmentation via Learned Random Walk Propagationcited by 0
  8. 2025Sensor Calibration Model Balancing Accuracy, Real-time, and Efficiencycited by 0
  9. 2026PatchDenoiser: Parameter-efficient multi-scale patch learning and fusion denoiser for Low-dose CT imagingcited by 0