Implicit Regularization via Neural Feature Alignment

Aristide Baratin, Thomas George, César Laurent, R. Devon Hjelm, Guillaume Lajoie, Pascal Vincent, Simon Lacoste-Julien

Abstract

Deep neural networks often possess far more parameters than training examples, yet they generalize remarkably well. This paper explores the mechanism of implicit regularization, revealing that networks dynamically align their "tangent features" (gradients of the output with respect to parameters) with task-relevant directions during training. This process leads to a significant reduction in the effective rank of the model's capacity, concentrating predictive power into a low-dimensional subspace. We demonstrate this phenomenon across various architectures and propose a novel complexity measure that outperforms traditional bounds in predicting generalization performance.

Introduction: The Mystery of Overparameterization

A central paradox in modern deep learning is the success of overparameterized models. According to classical statistical learning theory, models with millions of parameters should easily overfit and fail to generalize unless constrained by explicit regularization like weight decay. However, Stochastic Gradient Descent (SGD) seems to impart an implicit regularization that guides networks toward simple, generalizable solutions.

This research demystifies this process by analyzing the geometric evolution of tangent features. By shifting focus from the static "lazy training" regime to the dynamic adaptation of features, we show how networks effectively "shrink" their functional capacity to match the task at hand.

Methodology

The authors analyze the evolution of the Neural Tangent Kernel (NTK) during standard non-linear training. Unlike the frozen NTK assumption, this study tracks how the spectrum of the tangent kernel matrix changes over time. Key metrics include:

  • Spectrum Tracking: Monitoring eigenvalues (λ) and the "effective rank" (based on Shannon entropy) to observe capacity compression.
  • Label Alignment: Using Centered Kernel Alignment (CKA) to measure the similarity between learned features and target labels.
  • Complexity Heuristics: Developing a new measure based on the cumulative product of SGD update norms and feature matrix norms.

Experiments were conducted on toy 2D datasets, MNIST, CIFAR10, and KMNIST using architectures ranging from simple MLPs to ResNet18.

The Geometry of Learning: Dynamic Anisotropy

A key finding is that the tangent kernel does not scale uniformly. Instead, it evolves anisotropically: a few specific directions in the parameter space become exponentially more sensitive than others. This suggests the network is performing a form of automated feature selection.

Evolution of tangent kernel eigenfunctions on a 2D disk dataset. Over iterations, the network's sensitivity concentrates on task-relevant structures like the ring pattern in Component 0.

As shown in the visualization of eigenfunctions, the network's initial random features quickly reorganize. By iteration 10,000, the primary components align with the geometric structure of the task (e.g., the circular boundary of the disk dataset). This "spectral bias" ensures that the network prioritizes simple patterns before fitting complex noise.

Empirical Evidence: Rank Collapse and Feature Alignment

The most striking evidence of implicit regularization is the "massive rank collapse" observed early in training. Even in the presence of label noise, the effective rank of the tangent kernel drops precipitously, often to less than 10% of its initial value.

Evolution of accuracy, eigenvalues (λ), and effective rank across different levels of label noise. Note the sharp drop in effective rank and the concentration of variance in the top eigenvalues.

As training progresses, the variance concentrates in a tiny fraction of the available dimensions. For instance, the top 40 eigenvalues can account for over 70% of the kernel matrix's trace. This concentration is directly linked to generalization: the network aligns its most sensitive directions with the true labels, effectively ignoring the vast majority of its parameter space that would otherwise lead to overfitting.

A New Measure of Complexity

Traditional complexity bounds (e.g., Frobenius or Spectral bounds) often fail to track with empirical generalization gaps, especially as models scale. The authors' proposed measure—summing the product of update norms and feature norms—correctly predicts performance trends even for models with millions of parameters and varying levels of label corruption. This suggests that the path taken by SGD and the resulting feature alignment are more critical for generalization than the final parameter values alone.

Conclusion and Future Directions

This work provides a geometric explanation for why deep networks generalize: they are not using their full capacity, but rather a task-specific, low-dimensional projection of it. While this alignment explains generalization, it also hints at the roots of adversarial vulnerability—relying on a few highly predictive features makes models brittle to distribution shifts. Future research into optimizers that explicitly manage this alignment may lead to more robust and efficient learning systems.

Summary updated

BibTeX
@inproceedings{baratin2021implicit,
  author = {Aristide Baratin and Thomas George and César Laurent and R. Devon Hjelm and Guillaume Lajoie and Pascal Vincent and Simon Lacoste-Julien},
  title = {{Implicit Regularization via Neural Feature Alignment}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
}
Figure