A Contrastive Learning Framework Empowered by Attention-based Feature Adaptation for Street-View Image Classification
About
Street-view image attribute classification is a vital downstream task of image classification, enabling applications such as autonomous driving, urban analytics, and high-definition map construction. It remains computationally demanding whether training from scratch, initialising from pre-trained weights, or fine-tuning large models. Although pre-trained vision-language models such as CLIP offer rich image representations, existing adaptation or fine-tuning methods often rely on their global image embeddings, limiting their ability to capture fine-grained, localised attributes essential in complex, cluttered street scenes. To address this, we propose CLIP-MHAdapter, a variant of the current lightweight CLIP adaptation paradigm that appends a bottleneck MLP equipped with multi-head self-attention operating on patch tokens to model inter-patch dependencies. With approximately 1.4 million trainable parameters, CLIP-MHAdapter achieves superior or competitive accuracy across eight attribute classification tasks on the Global StreetScapes dataset, attaining new state-of-the-art results while maintaining low computational cost. The code is available at https://github.com/SpaceTimeLab/CLIP-MHAdapter.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Street-view Image Attribute Classification | GSS Lighting Condition | Accuracy96.46 | 7 | |
| Street-view Image Attribute Classification | GSS Platform | Accuracy69.12 | 7 | |
| Street-view Image Attribute Classification | GSS View Direction | Accuracy95.28 | 7 | |
| Street-view Image Attribute Classification | GSS Panoramic Status | Accuracy99.4 | 7 | |
| Street-view Image Attribute Classification | GSS Reflection | Accuracy76.69 | 7 | |
| Street-view Image Attribute Classification | GSS Quality | Accuracy89.08 | 7 | |
| Street-view Image Attribute Classification | GSS Weather | Accuracy81.84 | 7 | |
| Street-view Image Attribute Classification | GSS Glare | Accuracy95.32 | 7 |