Skip to main content
QUICK REVIEW

[论文解读] CLIP-TD: CLIP Targeted Distillation for Vision-Language Tasks

Zhecan Wang, Noel Codella|arXiv (Cornell University)|Jan 15, 2022
Multimodal Machine Learning ApplicationsComputer Science被引用 19
一句话总结

本文提出 CLIP-TD,一种面向视觉-语言模型的定向知识蒸馏方法,通过动态标记选择与基于置信度的加权机制,将 CLIP 的视觉与语言编码器知识迁移至现有模型。该方法在 VCR、SNLI-VE 和 VQA 任务上均达到最先进性能,在低样本设置下提升最高达 51.9%,在领域偏移场景下提升最高达 71.3%,且未增加推理或预训练复杂度。

ABSTRACT

Contrastive language-image pretraining (CLIP) links vision and language modalities into a unified embedding space, yielding the tremendous potential for vision-language (VL) tasks. While early concurrent works have begun to study this potential on a subset of tasks, important questions remain: 1) What is the benefit of CLIP on unstudied VL tasks? 2) Does CLIP provide benefit in low-shot or domain-shifted scenarios? 3) Can CLIP improve existing approaches without impacting inference or pretraining complexity? In this work, we seek to answer these questions through two key contributions. First, we introduce an evaluation protocol that includes Visual Commonsense Reasoning (VCR), Visual Entailment (SNLI-VE), and Visual Question Answering (VQA), across a variety of data availability constraints and conditions of domain shift. Second, we propose an approach, named CLIP Targeted Distillation (CLIP-TD), to intelligently distill knowledge from CLIP into existing architectures using a dynamically weighted objective applied to adaptively selected tokens per instance. Experiments demonstrate that our proposed CLIP-TD leads to exceptional gains in the low-shot (up to 51.9%) and domain-shifted (up to 71.3%) conditions of VCR, while simultaneously improving performance under standard fully-supervised conditions (up to 2%), achieving state-of-art performance on VCR compared to other single models that are pretrained with image-text data only. On SNLI-VE, CLIP-TD produces significant gains in low-shot conditions (up to 6.6%) as well as fully supervised (up to 3%). On VQA, CLIP-TD provides improvement in low-shot (up to 9%), and in fully-supervised (up to 1.3%). Finally, CLIP-TD outperforms concurrent works utilizing CLIP for finetuning, as well as baseline naive distillation approaches. Code will be made available.

研究动机与目标

  • 评估 CLIP 在未充分研究的视觉-语言任务(如视觉常识推理 VCR、视觉蕴含 SNLI-VE 和视觉问题回答 VQA)上的有效性。
  • 探究 CLIP 在低样本与领域偏移学习场景下是否能提升性能。
  • 开发一种方法,在不增加推理或预训练复杂度的前提下,增强现有视觉-语言模型。
  • 建立涵盖零样本、低样本、半监督、全监督及领域偏移设置的视觉-语言任务综合评估协议。

提出的方法

  • CLIP-TD 通过基于输入样本相关性的选择,从 CLIP 的视觉与语言编码器中选取特定标记,实现定向蒸馏。
  • 采用动态加权损失,根据教师模型(CLIP)与学生模型预测的置信度自适应调整蒸馏强度。
  • 针对每个输入样本进行标记选择,聚焦于输入中语义显著且不确定的区域,实现知识迁移。
  • 该方法具有模型无关性,可与多种学生架构(如 VL-BERT、UNITER、VILLA)集成。
  • 避免对学生模型进行微调,保持学生网络原始的推理复杂度。
  • 与朴素蒸馏及同期的微调方法(如 CLIP-ViL p)进行对比,以验证其有效性。

实验结果

研究问题

  • RQ1CLIP 在未充分研究的视觉-语言任务(如 VCR 和 SNLI-VE)上具有何种优势?
  • RQ2CLIP 是否能在低样本与领域偏移学习场景下带来性能提升?
  • RQ3CLIP 能否在不增加推理或预训练复杂度的前提下改进现有视觉-语言模型?
  • RQ4与朴素蒸馏或直接使用 CLIP 进行微调相比,定向蒸馏表现如何?
  • RQ5所提出的 CLIP-TD 方法在多种视觉-语言架构与任务类型上是否均有效?

主要发现

  • 在低样本设置下的 VCR 任务中,CLIP-TD 实现了 51.9% 的相对性能提升,显著优于基线模型。
  • 在领域偏移的 VCR 任务中,CLIP-TD 实现了 71.3% 的相对增益,展现出对分布偏移的强大鲁棒性。
  • 在全监督 VCR 任务中,CLIP-TD 相较于基线模型性能提升最高达 2%,在仅使用图像-文本数据预训练的单模型中达到最先进水平。
  • 在 SNLI-VE 任务中,CLIP-TD 在低样本设置下实现最高 6.6% 的性能提升,在全监督设置下实现最高 3% 的提升,适用于多种学生模型。
  • 在 VQA 任务中,CLIP-TD 在低样本设置下实现最高 9% 的增益,在全监督设置下实现最高 1.3% 的提升,优于朴素蒸馏与 CLIP-ViL p 方法。
  • CLIP-TD 在所有评估模型(VL-BERT、UNITER、VILLA)与所有设置下均持续提升性能,证实其模型无关性与高效性。

阅读本论文

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

在 Nubint 中阅读本论文

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