CLIP 的双椭球几何
The Double-Ellipsoid Geometry of CLIP
AI总结:
本文研究CLIP嵌入的几何结构,发现文本和图像位于线性可分离的椭球壳上,并引入“一致性”度量,证明其可由模态均值向量估计,且模态差距优化了该分布的匹配。
摘要:
对比语言-图像预训练(CLIP)在机器学习应用中具有重要作用,涉及众多领域。我们研究了这种嵌入的几何结构,目前对此仍缺乏深入理解。我们考察了原始的未归一化嵌入,发现文本和图像位于线性可分离的椭球壳上,且这些椭球壳并非以原点为中心。我们解释了这种结构带来的益处,即能够在对比训练过程中根据实例的不确定性更好地嵌入它们。数据集中频繁出现的概念会产生更多假负例,从而引发更大的不确定性。我们引入了“一致性”这一新概念,它衡量一个实例与代表性数据集中任何其他实例的平均余弦相似度。我们证明,通过简单地计算与模态均值向量的余弦相似度,即可准确估计该度量。此外,我们发现CLIP的模态差距优化了图像和文本一致性分布的匹配。
英文摘要:
Contrastive Language-Image Pre-Training (CLIP) is highly instrumental in machine learning applications within a large variety of domains. We investigate the geometry of this embedding, which is still not well understood. We examine the raw unnormalized embedding and show that text and image reside on linearly separable ellipsoid shells, not centered at the origin. We explain the benefits of having this structure, allowing to better embed instances according to their uncertainty during contrastive training. Frequent concepts in the dataset yield more false negatives, inducing greater uncertainty. A new notion of conformity is introduced, which measures the average cosine similarity of an instance to any other instance within a representative data set. We show this measure can be accurately estimated by simply computing the cosine similarity to the modality mean vector. Furthermore, we find that CLIP's modality gap optimizes the matching of the conformity distributions of image and text.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。