Training Dynamics of Nonlinear Contrastive Learning Model in the High Dimensional Limit
Lineghuan Meng, Chuang Wang
TL;DR
This work addresses the training dynamics of a one-layer nonlinear contrastive learning model in the high-dimensional limit, deriving a McKean–Vlasov PDE that describes the evolution of the weight distribution. When regularization is limited to $L_2$, this PDE collapses to a low-dimensional system of ODEs that track model performance via the cosine-similarity metrics. The key findings are that the learnability of a feature at initialization depends solely on the second moment $\langle c^2 \rangle$, while higher moments influence feature selection probability through attraction regions; moreover, correlated additive noise can reduce gradient variance and improve performance, whereas independent noise generally harms learning. The results reveal a rich set of training-dynamics phenomena in a minimal model, offering insights toward understanding large-priority models and guiding design of data-augmentation schemes. Overall, the work provides a rigorous mean-field framework to connect data statistics, noise, and optimization dynamics in self-supervised contrastive learning.keywordsmean-field limitMcKean-Vlasov PDEone-layer nonlinear contrastive learningcosine similarity dynamicsdata augmentation noise correlationgradient variance reductionphase portrait feature selection
Abstract
This letter presents a high-dimensional analysis of the training dynamics for a single-layer nonlinear contrastive learning model. The empirical distribution of the model weights converges to a deterministic measure governed by a McKean-Vlasov nonlinear partial differential equation (PDE). Under L2 regularization, this PDE reduces to a closed set of low-dimensional ordinary differential equations (ODEs), reflecting the evolution of the model performance during the training process. We analyze the fixed point locations and their stability of the ODEs unveiling several interesting findings. First, only the hidden variable's second moment affects feature learnability at the state with uninformative initialization. Second, higher moments influence the probability of feature selection by controlling the attraction region, rather than affecting local stability. Finally, independent noises added in the data argumentation degrade performance but negatively correlated noise can reduces the variance of gradient estimation yielding better performance. Despite of the simplicity of the analyzed model, it exhibits a rich phenomena of training dynamics, paving a way to understand more complex mechanism behind practical large models.
