Skip to main content
QUICK REVIEW

[Paper Review] A Contrastive Learning Framework Empowered by Attention-based Feature Adaptation for Street-View Image Classification

Qi You, Yitai Cheng|arXiv (Cornell University)|Feb 18, 2026
Advanced Neural Network ApplicationsComputer Science0 citations
TL;DR

The paper introduces CLIP-MHAdapter, a lightweight CLIP adaptation module with a bottleneck MLP and multi-head self-attention on patch tokens to improve fine-grained street-view attribute classification while freezing the CLIP backbone, achieving competitive or superior results with lower training cost on Global StreetScapes.

ABSTRACT

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.

Motivation & Objective

  • Enable accurate fine-grained street-view attribute classification without full fine-tuning of large models.
  • Leverage CLIP with a lightweight, patch-level attention-based adapter to capture local cues in cluttered urban scenes.
  • Maintain efficiency suitable for edge devices by freezing the backbone and using a small trainable module.
  • Address class imbalance in street-view attribute datasets through an imbalance-aware weighting scheme.

Proposed method

  • Freeze CLIP visual and text backbones and attach a bottleneck MLP with multi-head self-attention to patch tokens.
  • Process patch-level CLIP embeddings, apply layer normalization, then MHSA to model inter-patch dependencies.
  • Aggregate patch outputs via mean pooling and blend with frozen global CLIP features using a residual coefficient alpha.
  • Use text prompts to generate class-specific classifier weights via the text encoder, following CLIP's contrastive objective.
  • Train with an inverse-frequency weighting in the cross-entropy loss to mitigate class imbalance.
  • Evaluate with accuracy, macro-F1, weighted-F1, and adjusted balanced accuracy on the Global StreetScapes dataset.

Experimental results

Research questions

  • RQ1Can a lightweight, patch-level attention-based adapter improve fine-grained SVI attribute classification beyond existing CLIP adaptation methods?
  • RQ2Does preserving the CLIP backbone while introducing a small MHAdapter yield favorable accuracy-efficiency trade-offs on cluttered street-view images?
  • RQ3How does the method perform under class-imbalanced conditions typical of SVI attribute datasets?

Key findings

  • CLIP-MHAdapter achieves competitive or superior accuracy compared with the fully trained baseline on eight attributes in Global StreetScapes.
  • The model uses about 1.4M trainable parameters, significantly fewer than full fine-tuning, with notable improvements in efficiency.
  • MHAdapter effectively captures inter-patch dependencies and local spatial cues, improving fine-grained attribute recognition.
  • Imbalance-aware weighting mitigates performance bias across classes, enhancing fairness across evaluations.
  • Prompt-based text classifiers in CLIP-MHAdapter leverage frozen text encoders for stable, cross-modal alignment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.