对Sigmoid对比损失的全局极小值
Global Minimizers of Sigmoid Contrastive Loss
AI总结:
本文理论分析了Sigmoid对比损失中同步可训练逆温度和偏置的优势,并提出改进训练动态的重参数化方法。
摘要:
通过对比预训练获取和对齐表示的元任务近年来因其在CLIP和ALIGN中的引入而逐渐变得重要。在本文中,我们从理论上解释了在Sigmoid损失中同步可训练的逆温度和偏置的优势,如在谷歌DeepMind最近的SigLIP和SigLIP2模型中所实现的。温度和偏置可以驱动损失函数在我们称之为(m, b_rel)-星座的丰富配置类中趋近于零。(m, b_rel)-星座是一种与球面码相关的新型组合对象,由一个边距m和相对偏置b_rel参数化。我们利用对星座的特征化来从理论上证明SigLIP在检索中的成功,解释SigLIP和CLIP中存在的模态差距,并确定产生高质量表示所需的必要维度。最后,我们提出了一种带有显式相对偏置的Sigmoid损失重参数化,这在合成数据的实验中改善了训练动态。
英文摘要:
The meta-task of obtaining and aligning representations through contrastive pretraining is steadily gaining importance since its introduction in CLIP and ALIGN. In this paper we theoretically explain the advantages of synchronizing with trainable inverse temperature and bias under the sigmoid loss, as implemented in the recent SigLIP and SigLIP2 models of Google DeepMind. Temperature and bias can drive the loss function to zero for a rich class of configurations that we call $(\mathsf{m}, \mathsf{b}_{\mathsf{rel}})$-Constellations. $(\mathsf{m}, \mathsf{b}_{\mathsf{rel}})$-Constellations are a novel combinatorial object related to spherical codes and are parametrized by a margin $\mathsf{m}$ and relative bias $\mathsf{b}_{\mathsf{rel}}$. We use our characterization of constellations to theoretically justify the success of SigLIP on retrieval, to explain the modality gap present in SigLIP and CLIP, and to identify the necessary dimension for producing high-quality representations. Finally, we propose a reparameterization of the sigmoid loss with explicit relative bias, which improves training dynamics in experiments with synthetic data.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。