Abstract
Vision Big Bird (VBB) addresses the quadratic complexity bottleneck of standard Vision Transformers (ViTs) by adapting the "Big Bird" architecture from natural language processing to the visual domain. By replacing global self-attention with a parallel combination of convolutional layers, random sampling windows, and pooled global attention, VBB achieves linear complexity $O(n)$ relative to image size. Experimental results on ImageNet-1K, COCO, and ADE20K demonstrate that VBB outperforms state-of-the-art models like Swin Transformer and MaxViT while maintaining superior scalability for high-resolution tasks.
Introduction
The primary challenge in scaling Vision Transformers is the $O(n^2)$ computational and memory cost of global self-attention. While window-based approaches like Swin Transformer mitigate this cost, they often sacrifice the immediate global receptive field characteristic of the original Transformer, requiring deep stacks of blocks to recover non-local dependencies. Vision Big Bird (VBB) introduces a novel architecture that maintains global connectivity from the initial layers with linear complexity.
Methodology
Parallel Block Architecture
Unlike traditional hybrid models that stack convolutional and transformer layers sequentially, VBB utilizes a parallel implementation within each block. This design allows the model to process local and global features simultaneously, using learnable scaling weights ($\alpha, \beta, \lambda$) to adaptively fuse information based on the network depth.
Three-Branch Attention Mechanism
The core of VBB is its sparsified attention mechanism, which splits attention heads into three distinct functional groups:
- Convolutional Branch (Local): A 3x3 depthwise convolution captures fine-grained spatial features and provides necessary inductive bias.
- Random Sampling Windows (RS-Win): This branch randomly samples patches across the entire image to form attention windows, introducing stochastic global connections that capture long-range dependencies early in the network.
- Global Attention (Pooled): To maintain efficiency, this branch uses average pooling to reduce the resolution of Keys and Values, allowing every patch to attend to a summarized global representation of the image.
Key Insights and Results
Architectural Innovations
- Implicit Positional Information: VBB eliminates the need for explicit positional encodings (PE). The zero-padding in the parallel convolutional branch provides sufficient spatial cues for the model to learn patch locations.
- Dynamic Feature Prioritization: Analysis of learnable weights reveals that Random Sampling is critical in early layers, while Pooled Global Attention becomes dominant in deeper stages of the network.
Performance Benchmarks
- ImageNet-1K: VBB-Tiny achieved 83.8% Top-1 accuracy, surpassing Swin-T (81.3%) and MaxViT-T (83.6%) with comparable FLOPs.
- Data Efficiency: On smaller datasets like Mini-ImageNet, VBB-T reached 86.2%, significantly outperforming pure ViTs which typically require massive pre-training.
- Downstream Tasks: In object detection (COCO), VBB-B achieved 49.3 box mAP, demonstrating its effectiveness in preserving fine-grained details for localization tasks.
Conclusion
Vision Big Bird successfully bridges the gap between the efficiency of local convolutions and the expressive power of global Transformers. By achieving linear complexity through random sparsification and parallel processing, VBB provides a scalable framework for high-resolution computer vision tasks without the prohibitive costs of standard self-attention.
Summary updated