Hiera: A Hierarchical Vision Transformer without the Bells-and-Whistles

Chaitanya Ryali, Yuan-Ting Hu, Daniel Bolya, Chen Wei, Haoqi Fan, Po-Yao Huang, Vaibhav Aggarwal, Arkabandhu Chowdhury, Omid Poursaeed, Judy Hoffman, Jitendra Malik, Yanghao Li, Christoph Feichtenhofer · DOI

Abstract

Modern hierarchical vision transformers have become increasingly complex, incorporating numerous vision-specific components to improve supervised learning performance. This paper introduces Hiera, a simplified hierarchical vision transformer that eliminates these "bells and whistles"—such as convolutions and shifted windows—in favor of a streamlined architecture. By leveraging Masked Autoencoder (MAE) pretraining, Hiera learns necessary spatial biases rather than relying on hard-coded architectural constraints. The result is a model that is significantly faster and more accurate than its predecessors, achieving state-of-the-art results across image and video benchmarks.

Introduction

Since the introduction of Vision Transformers (ViTs), the field has trended toward hierarchical designs like Swin and MViT. These architectures process images across multiple stages, starting with high spatial resolution and low channel depth, then gradually downsampling while increasing channels. This approach is highly effective for high-resolution vision tasks.

However, to optimize these models for supervised training, researchers added a variety of specialized components: convolutions, shifted windows, and complex relative position embeddings. While these additions provide "inductive bias" (built-in assumptions about spatial relationships), they introduce significant overhead. These features increase wall-clock time on modern hardware and complicate the use of efficient sparse pretraining methods. Hiera challenges the necessity of this complexity, asking if a "pure" hierarchical transformer can outperform its more intricate counterparts.

Methodology: Simplifying the Hierarchy

Hiera's design philosophy is rooted in the idea that a strong pretraining task can replace hard-coded architectural biases. The authors take a state-of-the-art hierarchical model (MViTv2) and systematically strip away its specialized components.

Key Architectural Simplifications

  • Removal of Convolutions: All convolutional layers are replaced with simple max-pooling, removing the computational cost of overlapping kernels.
  • Mask Unit Attention: Instead of complex pooling attention or shifted windows, Hiera utilizes "Mask Unit Attention." This performs local attention within the same units used for masking during pretraining, eliminating the overhead of global attention in early stages while maintaining spatial locality.
  • Absolute Position Embeddings: The model swaps out complex relative position embeddings for standard, efficient absolute embeddings.

Synergy with Sparse MAE

Because Hiera lacks overlapping kernels or convolutions, it is uniquely suited for sparse Masked Autoencoder (MAE) pretraining. In this regime, masked tokens are simply deleted during training rather than being replaced by a [MASK] token. This allows Hiera to achieve training speeds 4–10x faster than traditional supervised methods, as the model only processes a small fraction of the original image or video data.

Experimental Setup

The researchers evaluated Hiera across a diverse set of benchmarks to test its versatility:

  • Image Classification: ImageNet-1K.
  • Video Recognition: Kinetics-400, -600, -700, and Something-Something-v2 (SSv2).
  • Transfer Learning: iNaturalist (2017, 2018, 2019) and Places365.
  • Downstream Tasks: COCO (Object Detection and Instance Segmentation) and AVA (Action Detection).

Key Insights

Inductive Bias vs. Learned Bias

The "bells and whistles" of modern transformers were largely crutches for supervised learning. Hiera demonstrates that MAE pretraining effectively teaches a model spatial reasoning, making hard-coded architectural biases redundant. Once the model learns how to reconstruct masked patches, it inherently understands spatial structure.

FLOPs vs. Throughput

A critical finding of this research is the discrepancy between FLOP counts and actual wall-clock time. While specialized operations like shifted windows might reduce theoretical FLOPs, they often have high overhead on modern GPUs like the A100. Hiera’s simplicity allows it to maximize hardware throughput, leading to massive speedups in practice.

Results

Hiera consistently outperforms more complex models while maintaining a significantly smaller computational footprint:

  • Inference Speed: Hiera-L is 2.4x faster on ImageNet and 5.1x faster on Kinetics-400 video than the MViTv2-L baseline.
  • Accuracy: On ImageNet-1K, Hiera-L reaches 86.1% top-1 accuracy, outperforming both the larger ViT-L (+0.2%) and the complex MViTv2-L (+0.8%).
  • Video Performance: On Kinetics-400, Hiera-H achieves 87.8%, setting a new state-of-the-art for models using 224² resolution without external data.
  • Training Efficiency: Due to its compatibility with sparse MAE, Hiera-L can be trained to higher accuracy in just one-third of the time required for a supervised MViTv2-L.

Conclusion and Future Work

Hiera proves that hierarchical vision transformers do not need complex, vision-specific components to be effective. By stripping the architecture to its essentials and relying on MAE pretraining, Hiera achieves superior speed and accuracy.

One noted limitation is that Hiera "acts like a ViT" due to its lack of convolutional bias. For downstream tasks like object detection, it performs best when paired with transformer-specific heads (such as ViTDet) rather than traditional CNN-centric heads like Mask R-CNN. Future research may explore scaling Hiera to even larger datasets or integrating it into multi-modal settings where vision backbone speed is a primary bottleneck.

Summary updated

BibTeX
@inproceedings{ryali2023hiera,
  author = {Chaitanya Ryali and Yuan-Ting Hu and Daniel Bolya and Chen Wei and Haoqi Fan and Po-Yao Huang and Vaibhav Aggarwal and Arkabandhu Chowdhury and Omid Poursaeed and Judy Hoffman and Jitendra Malik and Yanghao Li and Christoph Feichtenhofer},
  title = {{Hiera: A Hierarchical Vision Transformer without the Bells-and-Whistles}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=XQuXfVR5Wx},
}
Figure