arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.03251cs.CVcs.AIcs.LG
收藏

CLIP 能够理解深度

CLIP Can Understand Depth

Korea Institute of Energy Technology (KENTECH)(韩国能源技术研究院)

Sohee Kim, Jisu Kang, Dunam Kim, Seokju Lee

AI总结:

本文提出一种无需微调的方法,通过将 CLIP 文本编码器语义蒸馏到可学习嵌入“mirror”,联合训练轻量模块实现高效单目深度估计,在 NYU Depth v2 和 KITTI 上达到先进水平。

摘要:

在本文中,我们证明 CLIP 也可以适应那些其视觉-语言对齐在基于网络爬取数据的预训练过程中未能充分学习的下游任务,且无需进行微调。我们探索了单目深度估计这一案例,在该领域中,与生成建模和语义分割等领域的成功相比,CLIP 的对比先验难以泛化。由于 CLIP 无法一致地捕捉图像块与描述距离的自然语言提示之间的相似性,我们弃用了其预训练的自然语言词元嵌入,并将其冻结文本编码器的语义先验蒸馏到一个称为“mirror”的可学习嵌入矩阵中。mirror 的主要设计目标是推导出一个非人类语言提示,以近似最优的自然语言提示:“这个位置距离相机有多远?”利用这种方法,我们在冻结的 CLIP 之上联合训练两个轻量级模块(一个 mirror 和一个紧凑解码器),用于密集深度预测。与传统深度模型相比,我们的框架在参数和计算方面显著更高效。所得模型表现出令人印象深刻的性能,在 NYU Depth v2 和 KITTI 基准数据集上匹配了若干最先进的视觉模型,同时优于所有基于冻结 CLIP 先验的视觉-语言深度模型。实验表明,CLIP 在空间和时间一致性方面的次优深度理解可以在不微调它或将其与预训练子词元嵌入拼接的情况下得到显著纠正。此外,对 mirror 收敛状态的消融研究表明,它被隐式训练以捕捉人类和窗户等对象,其中语义线索在检测中起着重要作用。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑