arXiv:2510.08852cs.LG2025-10被引 2

揭示自监督对比学习与有监督对比学习的表征一致性机制

On the Alignment Between Supervised and Self-Supervised Contrastive Learning

  • 在相同初始化和数据下对比两类模型的表征相似性
  • 证明两者表征相似矩阵在大量类别下保持高度一致
  • 发现参数差异随训练时间指数增长,但表征仍对齐

自监督对比学习(CL)在下游任务中表现优异,常可媲美有监督预训练。现有理论表明,当类别数增加时,CL损失近似于仅用负样本的有监督对比学习(NSCL)损失。然而,一个关键问题仍未解决:在训练过程中,CL与NSCL的表征是否也持续对齐?本文通过在相同随机性(相同初始化、批次和增强)下训练两类模型,分析其表征对齐性。首先证明,在现实条件下,CL与NSCL的相似性矩阵始终保持接近;理论边界给出了中心核对齐(CKA)和表征相似性分析(RSA)等指标的高概率保证,并揭示对齐性随类别数增多、温度升高而增强,且受批大小影响。相反,参数空间的耦合本质上不稳定:CL与NSCL权重间的差异会随训练时间呈指数级增长。最后,实证验证了预测结果——随着规模和温度提升,CL与NSCL的对齐性增强,且NSCL比其他有监督目标更贴近CL。这为理解自监督与有监督学习之间的桥梁提供了原则性依据。

原文摘要 · Abstract (English)

Self-supervised contrastive learning (CL) has achieved remarkable empirical success, often producing representations that rival supervised pre-training on downstream tasks. Recent theory explains this by showing that the CL loss closely approximates a supervised surrogate, Negatives-Only Supervised Contrastive Learning (NSCL) loss, as the number of classes grows. Yet this loss-level similarity leaves an open question: {\em Do CL and NSCL also remain aligned at the representation level throughout training, not just in their objectives?} We address this by analyzing the representation alignment of CL and NSCL models trained under shared randomness (same initialization, batches, and augmentations). First, we show that their induced representations remain similar: specifically, we prove that the similarity matrices of CL and NSCL stay close under realistic conditions. Our bounds provide high-probability guarantees on alignment metrics such as centered kernel alignment (CKA) and representational similarity analysis (RSA), and they clarify how alignment improves with more classes, higher temperatures, and its dependence on batch size. In contrast, we demonstrate that parameter-space coupling is inherently unstable: divergence between CL and NSCL weights can grow exponentially with training time. Finally, we validate these predictions empirically, showing that CL-NSCL alignment strengthens with scale and temperature, and that NSCL tracks CL more closely than other supervised objectives. This positions NSCL as a principled bridge between self-supervised and supervised learning. Our code and project page are available at [\href{https://github.com/DLFundamentals/understanding_ssl_v2}{code}, \href{https://dlfundamentals.github.io/cl-nscl-representation-alignment/}{project page}].

对比学习表征对齐自监督

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