arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.06226cs.LGstat.ML
收藏

非对比自监督学习中的预测头机制

The Mechanism of Prediction Head in Non-contrastive Self-supervised Learning

Carnegie Mellon University(卡内基梅隆大学)

Zixin Wen, Yuanzhi Li

摘要:

最近,Grill等人令人惊讶地发现了Bootstrap Your Own Latent(BYOL)方法,该方法表明,如果我们向网络中添加所谓的预测头,则可以去除对比损失中的负项。这开创了非对比自监督学习的研究。令人费解的是,即使存在平凡的崩溃全局最优解,由(随机)梯度下降训练的神经网络仍然可以学习竞争表示。这种现象是深度学习中内隐偏见的典型例子,并且仍然很少有人了解。在这项工作中,我们提出了我们的经验和理论发现的非对比自监督学习。从经验上讲,我们发现,当预测头被初始化为一个单位矩阵,只有其非对角项是可训练的,网络可以学习竞争表示,即使平凡的最优仍然存在于训练目标。从理论上讲,我们提出了一个框架来理解可训练的,但身份初始化的预测头的行为。在一个简单的设置下,我们表征了预测头的替代效应和加速效应。当学习某些神经元中的较强特征可以通过更新预测头来替代学习其他神经元中的这些特征时,就会发生替代效应。当替代特征可以加速其他较弱特征的学习,以防止它们被忽略时,就会发生加速效应。这两种效应使神经网络能够学习所有的特征,而不是只专注于学习更强的特征,这可能是维度崩溃现象的原因。据我们所知,这也是使用具有可训练预测头和归一化的非线性神经网络的非对比方法的第一个端到端优化保证。

英文摘要:

Recently the surprising discovery of the Bootstrap Your Own Latent (BYOL) method by Grill et al. shows the negative term in contrastive loss can be removed if we add the so-called prediction head to the network. This initiated the research of non-contrastive self-supervised learning. It is mysterious why even when there exist trivial collapsed global optimal solutions, neural networks trained by (stochastic) gradient descent can still learn competitive representations. This phenomenon is a typical example of implicit bias in deep learning and remains little understood. In this work, we present our empirical and theoretical discoveries on non-contrastive self-supervised learning. Empirically, we find that when the prediction head is initialized as an identity matrix with only its off-diagonal entries being trainable, the network can learn competitive representations even though the trivial optima still exist in the training objective. Theoretically, we present a framework to understand the behavior of the trainable, but identity-initialized prediction head. Under a simple setting, we characterized the substitution effect and acceleration effect of the prediction head. The substitution effect happens when learning the stronger features in some neurons can substitute for learning these features in other neurons through updating the prediction head. And the acceleration effect happens when the substituted features can accelerate the learning of other weaker features to prevent them from being ignored. These two effects enable the neural networks to learn all the features rather than focus only on learning the stronger features, which is likely the cause of the dimensional collapse phenomenon. To the best of our knowledge, this is also the first end-to-end optimization guarantee for non-contrastive methods using nonlinear neural networks with a trainable prediction head and normalization.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑