Skip to main content
QUICK REVIEW

[论文解读] CLIPSelf: Vision Transformer Distills Itself for Open-Vocabulary Dense Prediction

Size Wu, Wenwei Zhang|arXiv (Cornell University)|Oct 2, 2023
Multimodal Machine Learning ApplicationsComputer Science被引用 12
一句话总结

CLIPSelf 在密集特征上通过自蒸馏微调 CLIP Vision Transformers,将区域表示与图像级表示对齐,并且不需要区域-文本对,从而提升开放词汇的目标检测与分割性能。

ABSTRACT

Open-vocabulary dense prediction tasks including object detection and image segmentation have been advanced by the success of Contrastive Language-Image Pre-training (CLIP). CLIP models, particularly those incorporating vision transformers (ViTs), have exhibited remarkable generalization ability in zero-shot image classification. However, when transferring the vision-language alignment of CLIP from global image representation to local region representation for the open-vocabulary dense prediction tasks, CLIP ViTs suffer from the domain shift from full images to local image regions. In this paper, we embark on an in-depth analysis of the region-language alignment in CLIP models, which is essential for downstream open-vocabulary dense prediction tasks. Subsequently, we propose an approach named CLIPSelf, which adapts the image-level recognition ability of CLIP ViT to local image regions without needing any region-text pairs. CLIPSelf empowers ViTs to distill itself by aligning a region representation extracted from its dense feature map with the image-level representation of the corresponding image crop. With the enhanced CLIP ViTs, we achieve new state-of-the-art performance on open-vocabulary object detection, semantic segmentation, and panoptic segmentation across various benchmarks. Models and code are released at https://github.com/wusize/CLIPSelf.

研究动机与目标

  • 激发开放词汇密集预测任务(检测和分割),并分析 CLIP ViT 的区域-语言对齐。
  • 研究为何 CLIP ViT 的密集特征在区域识别上表现不佳,并提出一个区域到图像的自蒸馏解决方案。
  • 开发 CLIPSelf,以在无区域文本对的情况下将密集图的区域表示与图像裁剪对齐。
  • 在 OV-COCO、OV-LVIS 和开放词汇分割基准上展示最先进的结果。

提出的方法

  • 通过舍弃最后一层的自注意力,从最后的 ViT 块提取密集特征图,生成用于区域的空间特征图。
  • 将图像分割成 m x n 的随机网格补丁,并将这些补丁用作自蒸馏的区域。
  • 在保持固定的 Teacher CLIPViT 的同时微调 Student CLIPViT;通过最大化 Student 区域嵌入和对应补丁的 Teacher 图像表示之间的余弦相似度来训练。
  • 通过对密集图进行池化(RoIAlign)计算区域嵌入,并使用余弦相似度损失将其与 Teacher 的图像表示对齐。
  • 更新 ViT 的所有注意力层以最大化区域到图像的对齐,Student 的更大输入尺寸可提升区域识别。
  • 将微调后的 CLIPViTs 应用于开放词汇检测(在冻结骨干上的两阶段检测器)、语义分割(Cat-Seg 初始化)和全景分割(ODISE 推理阶段)。

实验结果

研究问题

  • RQ1基于 ViT 的 CLIP 模型在开放词汇密集任务中,将局部区域表示与语言对齐的效果如何?
  • RQ2是否可以利用图像级 CLIP 表征进行自蒸馏,在没有区域文本对的情况下改进密集区域表示?
  • RQ3将密集区域嵌入对齐到图像裁剪是否能提升开放词汇目标检测和分割的性能?
  • RQ4CLIPSelf 是否在不同 ViT 尺寸和训练数据(如 CC3M)上具有鲁棒性,并且与窗口注意力变体兼容?
  • RQ5在开放词汇检测与分割中,使用区域建议与基于补丁的区域之间的相对收益如何?

主要发现

  • CLIPViT 的密集表示在比图像裁剪更差的区域级识别,促使进行区域到图像对齐。
  • CLIPSelf,一种使用随机 m x n 图像补丁进行自蒸馏的方法,在区域和全景掩码分类准确性方面显著优于基线 ViT CLIP 模型。
  • 以教师的图像表示作为引导,学生 ViT 学会生成与相应图像裁剪对齐的区域嵌入,提升开放词汇检测与分割性能。
  • 用 CLIPSelf 增强的 ViT 作为骨干网络可在开放词汇对象检测的 OV-COCO 与 OV-LVIS 上取得最先进的结果,并提升开放词汇分割和全景分割基准。
  • CLIPSelf 超过基于区域-文本对的方法(嘈杂的区域到文本匹配),在局部窗口注意力变体下仍有效,甚至在 CC3M 数据上训练时也有效。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。