Skip to main content
QUICK REVIEW

[论文解读] CLIP Can Understand Depth

Dunam Kim, Kang, Jisu|arXiv (Cornell University)|Feb 5, 2024
Multimodal Machine Learning ApplicationsComputer Science被引用 3
一句话总结

该论文提出 CLIP2Depth,一种无需微调视觉-语言对齐即可使 CLIP 实现单目密集深度估计的方法。通过引入一种可学习的、非人类语言的提示嵌入(称为 'mirror')以及一个紧凑的反卷积解码器,该模型利用 CLIP 的预训练知识,在 NYU Depth v2 和 KITTI 数据集上实现了最先进性能,优于所有先前的 CLIP 基础方法,同时保持了任务无关的泛化能力。

ABSTRACT

In this paper, we demonstrate that CLIP can also be adapted to downstream tasks where its vision-language alignment is suboptimally learned during pre-training on web-crawled data, all without requiring fine-tuning. We explore the case of monocular depth estimation, where CLIP's contrastive prior struggles to generalize, compared to its success in domains such as generative modeling and semantic segmentation. Since CLIP fails to consistently capture similarities between image patches and natural language prompts describing distance, we eliminate the use of its pre-trained natural language token embeddings and distill the semantic prior of its frozen text encoder into a single learnable embedding matrix called "mirror". The main design goal of mirror is to derive a non-human language prompt that approximates an optimal natural language prompt: "How far is this location from the camera?" Using this approach, we jointly train two lightweight modules, a mirror and a compact decoder, on top of a frozen CLIP for dense depth prediction. Compared to conventional depth models, our framework is significantly more efficient in terms of parameters and computation. The resulting model exhibits impressive performance, matching several state-of-the-art vision models on the NYU Depth v2 and KITTI benchmark datasets, while outperforming all vision-language depth models based on a frozen CLIP prior. Experiments demonstrate that the suboptimal depth understanding of CLIP in terms of spatial and temporal consistency can be significantly corrected without either fine-tuning it or concatenating mirror with its pre-trained subword token embeddings. Furthermore, an ablation study on the convergence status of mirror shows that it is implicitly trained to capture objects, such as humans and windows, where semantic cues play an important role in detection.

研究动机与目标

  • 探究 CLIP 是否能仅依靠其预训练先验知识,实现单目深度估计的泛化。
  • 解决 CLIP 在深度估计任务中图像-文本对齐不佳的问题,即自然语言提示无法有效激发有意义的深度线索。
  • 开发一种最小化适应框架,避免直接微调 CLIP 的视觉-语言组件。
  • 证明非人类语言提示可有效引导视觉-语言模型在网页爬取数据中缺乏足够深度监督的领域中发挥作用。
  • 在保持 CLIP 任务无关泛化能力的同时,实现与特定任务最先进深度估计模型相当的性能。

提出的方法

  • 引入一种可学习的紧凑嵌入矩阵,命名为 'mirror',以替代 CLIP 的子词标记嵌入,作为文本编码器的非人类语言提示。
  • 与 'mirror' 嵌入联合训练一个小型反卷积解码器,从冻结的 CLIP 图像特征中生成密集深度预测。
  • 通过由 'mirror' 嵌入调制的 FiLM 模块对图像表示进行条件化,实现在不修改 CLIP 架构的前提下实现深度感知的特征自适应。
  • 以 CLIPSeg 解码器架构为基础构建深度头,复用其学习到的结构以实现更优的特征传播和空间建模。
  • 通过预测深度与 'mirror' 嵌入之间的对比损失,端到端联合训练整个系统,利用 CLIP 的预训练文本编码器实现深度监督。
  • 进行消融研究以隔离 'mirror' 的作用,并验证深度估计依赖于图像和文本编码器的联合作用,而非仅依赖图像特征。

实验结果

研究问题

  • RQ1CLIP 是否能在不进行直接微调的情况下,仅依靠其预训练的视觉-语言对齐理解深度?
  • RQ2通过引入非人类语言提示嵌入而非自然语言提示,能否提升 CLIP 的深度估计性能?
  • RQ3'mirror' 嵌入是否使模型能够利用 CLIP 文本编码器中的语义知识,而非仅依赖图像特征?
  • RQ4与现有 CLIP 基础深度估计方法相比,该方法在准确性、空间连续性和时间一致性方面表现如何?
  • RQ5通过使用可学习提示和小型解码器的最小化适应,能否实现与特定任务最先进模型相当的性能?

主要发现

  • CLIP2Depth 在 NYU Depth v2 和 KITTI 数据集上均优于所有先前的 CLIP 基础深度估计模型,实现了无需微调 CLIP 的最先进性能。
  • 该模型达到了先前特定任务视觉模型的性能水平,证明 CLIP 的先验知识可被有效重用于深度估计。
  • 消融研究显示,随机化 'mirror' 嵌入会导致车辆和行人等语义物体的深度估计准确率显著下降,证明其在捕捉深度线索中的关键作用。
  • 尽管 'mirror' 被随机化,模型在非语义区域仍保持良好的深度性能,表明图像编码器仍具有显著贡献,且系统能自我调节学习角色。
  • 基于调制的单 'mirror' 提示方法优于使用多个提示的基于相似度的方法,表明统一的非人类提示调制在深度对齐方面更有效。
  • 该框架在 KITTI 视频片段上表现出强大的时间一致性,在 KITTI 目标检测基准上展现出良好的空间连续性,证实了所学深度表征的鲁棒性。

阅读本论文

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

在 Nubint 中阅读本论文

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