arXiv:2506.22881cs.CV2025-06中稿 · CVPR

将CLIP模型重新理解为密度比估计算法,实现重要性权重学习与跨模态分布差异度量。

CLIP-like Model as a Foundational Density Ratio Estimator

  • 利用对比学习隐含的密度比结构,将视觉语言模型视为通用密度比估计器。
  • 仅需一个额外提示即可提升重要性权重学习的F1分数达7点,且可估计图像-文本模态间的KL散度。
  • 适用于数据清洗与语义多样性分析,性能媲美大规模筛选方法。

密度比估计是统计机器学习的核心概念,能统一处理重要性加权、散度估计和无似然推断等任务,但在视觉与语言模型中的潜力尚未充分挖掘。现代视觉-语言编码器如CLIP和SigLIP采用对比学习目标,隐式优化联合分布与边缘分布之间的对数密度比,从而学习到与对数密度比成比例的相似性得分。然而,以往研究主要关注其嵌入能力,而未系统考察或利用对比学习所诱导的密度比结构。为此,我们重新将CLIP类模型视为预训练的通用密度比估计器,并展示了该视角带来的新算法能力。我们统一解释了对比目标如何估计密度比,并提出了两项实际应用:重要性权重学习和KL散度估计。我们的重要性权重学习方法仅需一个额外提示,最高提升F1分数7个百分点;同时,基于CLIP的密度比可用于量化条件化图像或文本对另一模态分布的影响。通过定性示例和标题的N-gram分析,我们发现这些散度能捕捉多模态数据中的语义多样性与模式结构。基于此特性,我们提出一种简单的KL引导数据清洗方法,在性能上媲美LAION2B过滤方案。

原文摘要 · Abstract (English)

Density ratio estimation is a core concept in statistical machine learning because it provides a unified mechanism for tasks such as importance weighting, divergence estimation, and likelihood-free inference, but its potential in vision and language models has not been fully explored. Modern vision-language encoders such as CLIP and SigLIP are trained with contrastive objectives that implicitly optimize log density ratios between joint and marginal image-text distributions, which implicitly learn similarity scores proportional to log density ratios. However, prior work has largely focused on their embedding utility, and the density-ratio structure induced by contrastive learning has not been systematically examined or exploited in multimodal applications. To address this gap, we reinterpret CLIP-style models as pretrained and general-purpose density ratio estimators and show that this perspective enables new algorithmic capabilities. We present a unified explanation of how contrastive objectives estimate density ratios and propose two practical applications: Importance Weight Learning and KL divergence estimation. Our Importance Weight Learning method requires only a single additional prompt and improves F1 scores by up to 7 points. We further show that CLIP-based density ratios support estimation of KL divergences that quantify how conditioning on an image or text alters the distribution of the other modality. Through qualitative examples and an N-gram analysis of captions, we find that these divergences capture semantic diversity and mode structure in multimodal data. Leveraging this property, we introduce a simple KL-guided data curation method that achieves performance competitive with LAION2B filtering.

密度比估计CLIP多模态数据清洗

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。