[论文解读] On the duality between contrastive and non-contrastive self-supervised learning
本文在归一化假设下证明了样本对比(contrastive)与维度对比(covariance-based non-contrastive)自监督损失之间的等价性,并在经验上展示了如何在 VICReg 和 SimCLR 之间进行插值与调参,以缩小性能差距并提高对嵌入维度的鲁棒性。
Recent approaches in self-supervised learning of image representations can be categorized into different families of methods and, in particular, can be divided into contrastive and non-contrastive approaches. While differences between the two families have been thoroughly discussed to motivate new approaches, we focus more on the theoretical similarities between them. By designing contrastive and covariance based non-contrastive criteria that can be related algebraically and shown to be equivalent under limited assumptions, we show how close those families can be. We further study popular methods and introduce variations of them, allowing us to relate this theoretical result to current practices and show the influence (or lack thereof) of design choices on downstream performance. Motivated by our equivalence result, we investigate the low performance of SimCLR and show how it can match VICReg's with careful hyperparameter tuning, improving significantly over known baselines. We also challenge the popular assumption that non-contrastive methods need large output dimensions. Our theoretical and quantitative results suggest that the numerical gaps between contrastive and non-contrastive methods in certain regimes can be closed given better network design choices and hyperparameter tuning. The evidence shows that unifying different SOTA methods is an important direction to build a better understanding of self-supervised learning.
研究动机与目标
- 动机并形式化对比学习和非对比自监督学习方法之间的关系。
- 证明在归一化条件下,样本对比损失和维度对比损失等价,并将流行方法与这些准则联系起来。
- 在 VICReg 与 SimCLR 之间进行插值,以研究损失分量并实证验证等价性。
- 证明通过细致的超参数调优和架构(投影头)设计,可以缩小方法之间的性能差距并提升鲁棒性。
提出的方法
- 定义两个准则:样本对比损失 L_c = ||K^T K - diag(K^T K)||_F^2 和维度对比损失 L_nc = ||K K^T - diag(K K^T)||_F^2。
- 证明 L_nc 和 L_c 在嵌入矩阵 K 的行/列归一化条件下等价(定理 3.3)。
- 将现有方法(SimCLR、VICReg、Barlow Twins、DCL、Spectral Contrastive Loss 等)与这些准则联系起来(命题 3.1–3.2)。
- 改写 VICReg 的损失,揭示在范数正则化方案下它如何被视为一个样本对比目标(将 VICReg 伪装成对比方法)。
- 提出 VICReg 的变体(VICReg-exp、VICReg-ctr),使其向对比式表述插值,并研究它们的优化/表征。
- 评估归一化策略和投影头架构,以评估对下游性能的实际影响。
实验结果
研究问题
- RQ1在归一化条件下,样本对比损失和维度对比损失是否定义了等价的优化目标?
- RQ2是否可以通过损失设计将 VICReg 与 SimCLR 联系起来,且超参数的选择是否可以抹平经验性能差距?
- RQ3归一化策略对各方法的 SSL 性能的实际影响是什么?
- RQ4在 100 轮训练窗口内,投影头架构和嵌入维度如何影响各方法的性能和鲁棒性?
主要发现
- L_nc 与 L_c 在 K 的行/列归一化下等价,从而使样本对比和维度对比损失密切相关。
- 在某些条件下,SimCLR 和 DCL 的标准与 L_c 趋同,而 VICReg 风格的方法则与 L_nc 对齐。
- 通过重新解释其协方差项,可以将 VICReg 表达为对比式目标,突出这两类方法之间的对偶性。
- 两种 VICReg 变体(VICReg-exp 和 VICReg-ctr)实现向对比式表述的插值,经验结果在 100 轮中显示 VICReg、VICReg-exp、VICReg-ctr 的性能接近。
- 通过仔细的超参数调优和更大的投影头,可以将 SimCLR 的性能提升到 VICReg 的水平,挑战关于方法之间固有差距的假设。
- 归一化策略(嵌入归一化 vs. 维度归一化)在所研究的设置中并不决定性地影响峰值性能,前提是采用了实际可行的实现选择。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。