A Survey on Efficient Vision Transformers: Algorithms, Techniques, and Performance Benchmarking

Lorenzo Papa, Paolo Russo, Irene Amerini, Luping Zhou

TL;DR

This paper provides a comprehensive roadmap for making Vision Transformers (ViTs) lean enough for real-world deployment. By categorizing state-of-the-art techniques into four pillars—compact architectures, pruning, knowledge distillation, and quantization—the authors introduce a novel "Efficient Error Rate" (EER) metric to help researchers finally compare "apples to oranges" across different hardware constraints.

What Problem Does This Paper Address?

Since their debut, Vision Transformers have consistently outperformed traditional Convolutional Neural Networks (CNNs) by using a "self-attention" mechanism to capture global context. However, this power comes with a heavy "quadratic tax": as image resolution increases, the computational and memory costs grow quadratically.

This makes standard ViTs computational heavyweights, often too slow or memory-hungry for "edge" devices like smartphones, drones, or autonomous vehicles. The challenge isn't just making them faster; it’s doing so without tanking their accuracy. Furthermore, the field lacks a unified way to compare models that optimize for different things (e.g., one model might reduce parameters, while another reduces bit-precision).

Methods

The authors survey and mathematically formalize four main strategies for efficiency:

  1. Compact Architecture (CA): Redesigning the transformer block itself. This includes "linearizing" attention (making costs grow linearly instead of quadratically) or using "shifted windows" (like in Swin Transformers) to limit attention to local areas.
  2. Pruning (P): Identifying and "turning off" redundant neurons, connections, or entire image patches that don't contribute much to the final prediction.
  3. Knowledge Distillation (KD): A "teacher-student" approach where a small, lightweight model (the student) is trained to mimic the behavior and outputs of a large, pre-trained model (the teacher).
  4. Quantization (Q): Reducing the numerical precision of the model's weights. Instead of using standard 32-bit floating-point numbers, researchers use 8-bit, 4-bit, or even 1-bit (binary) representations to save memory and speed up math.

The EER Metric: The paper’s standout contribution is the Efficient Error Rate (EER). It normalizes features like parameter count, FLOPs (floating-point operations), and bit-width against a baseline (the ViT-B/16) to provide a single score representing a model's overall efficiency.

Datasets

The benchmarking focuses primarily on:

  • ImageNet-1K: The gold standard for image classification (1.3M images).
  • COCO: Used for evaluating object detection and instance segmentation.
  • ADE20K: Used for semantic segmentation (labeling every pixel in an image).

Key Insights and Ideas

  • The Quadratic Bottleneck is Dying: Early efficient ViTs (2021) merely reduced the quadratic cost, but the newest models (2023) like EfficientViT and Castling-ViT have achieved truly linear computational complexity.
  • Paretian Optimality: The authors emphasize finding the "Pareto front"—the set of models where you cannot improve accuracy without making the model less efficient (and vice versa).
  • Quantization is the "Quick Win": Techniques like NoisyQuant show that we can often compress models to 6-bit precision with almost zero loss in accuracy, providing a massive hardware speedup for relatively little engineering effort.
  • The "Matthew Effect" in Quantization: In mixed-precision models, layers with higher bit-widths tend to "mature" faster during training, leaving lower-precision layers underdeveloped. New strategies are emerging to balance this.

Key Results

  • Top Performer: The MViTv2-L achieved the highest raw accuracy on ImageNet (85.3%), but its EER is massive (245.5%), making it an outlier for efficiency.
  • Best Trade-off (CA): The Castling-MViTv2-B is highlighted as a superior choice, offering 85.0% accuracy with an EER four times lower than the "Large" version.
  • Hardware Hero: For extremely constrained devices (like a single-board PC), the Ortho-T model stands out, requiring only 3.9M parameters and 0.7G FLOPs while maintaining decent performance.
  • Quantization Success: 6-bit quantization (specifically NoisyQuant-PTQ4ViT-Swin-B) reached 84.7% accuracy, proving that bit-crunching is a viable path for high-end models.

Limitations and Future Work

The authors identify three main gaps for the community to fill:

  • Task Diversity: Most efficiency research is still "over-fitted" to simple image classification. We need more focus on complex, dense tasks like depth estimation and real-time video processing.
  • Metric Standardization: While EER is a start, the community needs more hardware-specific benchmarks (e.g., actual latency on an ARM processor vs. an NVIDIA Jetson).
  • Merging Strategies: Most papers pick one "pillar" (e.g., just pruning). The authors suggest the most promising future lies in "hybrid" strategies—combining compact architecture design with pruning and quantization from the start.

Summary updated

BibTeX
@article{papa2024survey,
  author = {Lorenzo Papa and Paolo Russo and Irene Amerini and Luping Zhou},
  title = {{A Survey on Efficient Vision Transformers: Algorithms, Techniques, and Performance Benchmarking}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2024},
  doi = {10.1109/tpami.2024.3392941},
}

Loading related content...

Figure