[论文解读] A Contrastive Learning Framework Empowered by Attention-based Feature Adaptation for Street-View Image Classification
本文提出 CLIP-MHAdapter,一种轻量级的 CLIP 适配模块,以瓶颈 MLP 和对 patch 令牌的多头自注意力提升细粒度街景属性分类,同时冻结 CLIP 主干,在 Global StreetScapes 上实现具有竞争力或更优的结果且训练成本更低。
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.
研究动机与目标
- 在不对大模型进行完全微调的前提下实现准确的细粒度街景属性分类。
- 利用轻量级、基于 patch 级注意力的适配器来抓取嘈杂城市场景中的局部线索,结合 CLIP。
- 通过冻结主干并使用小型可训练模块,保持在边缘设备上的高效性。
- 通过不平衡感知加权机制解决街景属性数据集中的类别不平衡问题。
提出的方法
- 冻结 CLIP 的视觉和文本主干,并在 patch 令牌上附置一个带瓶颈的 MLP 与多头自注意力。
- 对 patch 级 CLIP 嵌入进行处理,应用层归一化,然后通过 MHSA 建模补丁间的依赖关系。
- 通过均值池化聚合 patch 输出,并以残差系数 alpha 将其与冻结的全局 CLIP 特征进行混合。
- 使用文本提示通过文本编码器生成类别特定的分类器权重,遵循 CLIP 的对比学习目标。
- 在交叉熵损失中引入逆频权重以缓解类别不平衡。
- 在 Global StreetScapes 数据集上以准确度、宏 F1、加权 F1 和对平衡度的调整来评估。
实验结果
研究问题
- RQ1轻量级的基于 patch 级注意力的适配器是否能在比现有 CLIP 适配方法更好的情况下提升细粒度 SVI 属性分类?
- RQ2在嘈杂街景图像上,保留 CLIP 主干并引入小型 MHAdapter 是否能实现有利的精度-效率权衡?
- RQ3在典型的 SVI 属性数据集的类别不平衡条件下,该方法的表现如何?
主要发现
- CLIP-MHAdapter 在 Global StreetScapes 的八个属性上,与全训练基线相比达到竞争力或更高的准确性。
- 模型包含约 1.4M 个可训练参数,显著低于全量微调,且在效率方面有显著提升。
- MHAdapter 能有效捕捉补丁间依赖与局部空间线索,提升细粒度属性识别。
- 不平衡感知加权降低了各类别的性能偏差,提升评估的一致性。
- 基于提示的文本分类器在 CLIP-MHAdapter 中利用冻结文本编码器实现稳定的跨模态对齐。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。