Overview
General-purpose architectures like the original Perceiver and Perceiver IO were designed to process any data modality using a unified transformer-based approach. However, their reliance on global attention makes them computationally prohibitive for high-resolution signals, such as 224x224 images or raw video. The Hierarchical Perceiver (HiP) addresses this by reintroducing a "loose" sense of locality through a hierarchical grouping strategy, allowing it to scale to millions of inputs without domain-specific preprocessing like convolutions.
Methods: Scaling via Hierarchical Grouping
The primary innovation in HiP is the transition from global attention to a structured hierarchy. Instead of attending to all input tokens simultaneously, HiP flattens the input (regardless of its original dimensionality) and splits it into $G$ groups.
Each group is processed independently by cross-attending to a small set of learned latent vectors. These processed latents are then merged and passed to subsequent layers. This creates a "bottleneck" hierarchy that mimics the spatial reduction of a Convolutional Neural Network (CNN) but relies entirely on generic transformer operations.
Learning Spatial Awareness with MAE
Traditional Perceiver models often require hand-designed Fourier features to encode positional information, which are difficult to tune across different modalities. HiP replaces these with low-dimensional (16d or 32d) positional embeddings learned from scratch.
To facilitate this learning at high resolutions, the authors utilize Masked Auto-Encoding (MAE) as a pre-training task. By forcing the model to reconstruct missing pixels or audio segments, the model is incentivized to organize millions of learned embeddings into a coherent spatial or temporal map. Notably, for Kinetics-600 video, the model achieved its best performance with a staggering 99.375% masking rate, suggesting that high-resolution video contains extreme redundancy.
Experimental Results
The HiP architecture was evaluated across a diverse suite of benchmarks, demonstrating its generality and efficiency:
- Efficiency: HiP-16 is approximately 3.7x faster than Perceiver IO on standard images and successfully scales to $1024 \times 1024$ resolutions where previous iterations would encounter out-of-memory (OOM) errors.
- ImageNet-1K: The model achieved 81.0% top-1 accuracy using raw pixels, outperforming the original Perceiver IO (79.0%) and proving that learned embeddings can surpass hand-engineered Fourier features.
- Audio-Visual Recognition: On AudioSet, HiP-256 reached 43.8 mAP, outperforming baselines that rely on specialized patches or spectrograms by operating directly on raw waveforms.
- Modality Agnosticism: The exact same architecture was applied to 3D point clouds (ModelNet40), where points are randomly permuted, showing that the hierarchical bias is flexible enough to handle non-grid data.
Conclusion
The Hierarchical Perceiver demonstrates that domain-specific components like convolutions or patching are not strictly necessary for high-resolution tasks. By combining a hierarchical bottleneck with self-supervised representation learning, HiP provides a scalable, unified framework for processing images, video, audio, and point clouds. Future work aims to further reduce reliance on domain-specific data augmentations and explore more flexible input projections.
Summary updated