Abstract
SimPool is a simple, universal attention-based pooling mechanism designed to replace standard pooling layers in both Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs). By addressing the "attention deficit" typically found in supervised Transformers, SimPool not only boosts classification accuracy across various architectures but also generates high-quality attention maps that clearly delineate object boundaries.
Introduction: The Attention Deficit Problem
In deep learning, pooling condenses spatial feature grids into single vectors for classification. Traditional methods like Global Average Pooling (GAP) in CNNs or the "CLS" token in Vision Transformers often result in "noisy" or low-quality attention maps when trained under supervision. In contrast, self-supervised models like DINO produce clean, segment-like maps. This research investigates whether this discrepancy is inherent to supervision or a byproduct of the pooling mechanism itself.
The authors propose that the issue lies in the pooling method and introduce SimPool to achieve "self-supervised quality" attention maps in supervised models without additional overhead.
SimPool: A Unified Pooling Framework
SimPool is a non-iterative, attention-based layer designed as a drop-in replacement at the network's end. It unifies methods ranging from simple average pooling to complex iterative clustering under one mathematical umbrella. Its workflow involves:
- Initialization: A query vector is derived from the average of features.
- Pairwise Interaction: Linear mappings create queries and keys to compute a spatial attention map via scaled softmax, identifying important image regions.
- Weighted Averaging: A generalized weighted average of features is performed based on the attention map.
SimPool is highly efficient, adding negligible parameters (~0.2M for ViT-S) and maintaining computational speed (GFLOPS).
Experimental Evaluation
SimPool was evaluated across a diverse set of benchmarks, including ImageNet-1k for pre-training, downstream classification (CIFAR, Oxford Flowers), and object localization (CUB-200, VOC). It was also tested for robustness on ImageNet-9 and unsupervised object discovery.
Key Results and Insights
SimPool consistently outperformed standard baselines across architectures and tasks.
Performance and Localization
On ImageNet-1k, SimPool improved top-1 accuracy by 1.6% for ViT-S and 0.6% for ResNet-50. It also showed significant gains in object localization, improving accuracy by up to 14% on the CUB dataset. This suggests that the "best" way to pool information is architecture-agnostic.
Attention and Robustness
By switching to SimPool, supervised models produce object-delineating maps comparable to self-supervised ones. This explicit attention weighting also enhances robustness; SimPool-equipped models focus more on the primary object and less on background noise, as evidenced by superior performance on the ImageNet-9 benchmark.
Conclusion
SimPool demonstrates that the "attention deficit" in supervised Transformers is not a fundamental limitation of labels but a consequence of the CLS token mechanism. While highly effective, future work may explore multi-vector pooling for complex scenes with multiple objects and further investigate the specific reasons for the CLS token's failure in supervised settings.
Summary updated