TL;DR
The big.LITTLE Vision Transformer (bLViT) introduces a dual-transformer architecture that dynamically routes important image tokens to a high-capacity "big" block and less important tokens to an efficient "little" block. This approach cuts computational costs by up to 50% while maintaining or even exceeding the accuracy of standard Vision Transformers on both image classification and dense segmentation tasks.
What Problem Does This Paper Address?
Vision Transformers (ViTs) have become the backbone of state-of-the-art computer vision, powering everything from image classification to massive foundation models like the Segment Anything Model (SAM). However, their computational appetite makes them notoriously slow during inference—SAM utilizing a ViT-Huge backbone can drop below 2 frames per second on a high-end NVIDIA A100 GPU.
To speed things up, researchers often turn to "token pruning," which identifies and discards less important image patches layer by layer. While this works well for simple tasks like image classification (where the model only needs to output a single label), directly dropping tokens destroys the spatial structure and background context of the image. This incomplete information flow severely degrades performance on dense downstream tasks like image segmentation, where background context matters.
Methods
Inspired by the big.LITTLE architecture common in mobile CPUs, the authors propose the big.LITTLE Vision Transformer (bLViT). Instead of completely erasing less important tokens, bLViT splits the workload between two parallel paths:
- P-Block (Performance Block): A large, high-capacity transformer block designed to perform heavy-duty processing on only the most critical tokens (typically the top 25%).
- E-Block (Efficiency Block): A lightweight, low-capacity transformer block that processes all tokens to keep the global context alive at a minimal computational cost.
To make this hybrid system work seamlessly, the authors introduced three key mechanisms:
- Dynamic Token Selection: A lightweight prediction layer scores the importance of each token, routing the top-K tokens to the P-Block.
- Semi-Cross Attention: Instead of isolating the important tokens inside the P-Block, the authors use a semi-cross attention mechanism. The primary (important) tokens act as queries ($q$), but they attend to all tokens (both selected and unselected) as keys ($k$) and values ($v$). This allows the high-capacity block to still gather context from the background.
- Feature Distillation: Training a dual-block architecture from scratch with aggressive token routing can be unstable. The authors use feature distillation to transfer knowledge from a pre-trained vanilla ViT (the teacher) to the bLViT (the student), ensuring stable convergence.
Datasets
The architecture was validated across several standard benchmarks:
- ImageNet-1K: Used to evaluate standard image classification accuracy and computational efficiency (GFLOPs).
- SA-1B: A large-scale mask segmentation dataset; 2% of it was used to fine-tune the model for the Segment Anything task.
- LVIS & COCO: Used to evaluate zero-shot instance segmentation and mask prediction performance.
Key Insights and Ideas
- Context Preservation over Elimination: The core "aha" moment is realizing that all tokens are needed, but they aren't all equally important. Keeping background tokens alive in a cheap "LITTLE" block prevents spatial disruption, making token reduction viable for dense prediction tasks like segmentation.
- Asymmetric Information Flow: The Semi-Cross Attention mechanism allows the high-capacity block to pull context from the low-capacity block without paying the computational price of running the heavy model on every single background patch.
- Surpassing the Teacher: Thanks to the combination of feature distillation and targeted computation, the hybrid model can actually outperform its vanilla counterpart by focusing its capacity where it matters most.
Key Results
Image Classification
On ImageNet-1K, the Base + Tiny (B+T) variant of bLViT achieved 81.9% Top-1 accuracy using only 9.89 GFLOPs. For comparison, the standard vanilla ViT-Base baseline achieves 81.8% accuracy but requires 16.86 GFLOPs. This represents a ~50% reduction in computation with a slight improvement in accuracy.
Segment Anything Task (SAM)
When applied to dense prediction within SAM, bLViT significantly outperformed traditional token pruning methods (like Evo-ViT and EViT). For instance, the B+T model achieved 71.1 mIoU (with 3-point prompts) compared to EViT-B's 60.8 mIoU, while using fewer GFLOPs (210.5 vs 216.4).
Limitations and Future Work
While bLViT demonstrates an excellent speed-accuracy trade-off, it does have a few limitations:
- Dependency on Pre-training: The training strategy relies heavily on a pre-trained vanilla ViT teacher model to guide the feature distillation process, meaning it cannot easily be trained entirely from scratch.
- Static Hyperparameters: The optimal token pruning ratio (experimentally set to 0.75) and the distillation loss weight ($\lambda_{fd} = 2.5$) were determined empirically. These values might require manual re-tuning when adapting the architecture to entirely different domains or modalities.
Future work includes exploring even more adaptive stacking ratios (e.g., 2:1 configurations of P-blocks to E-blocks) and deploying the architecture on billion-parameter vision-language foundation models.
Summary updated