Explicit regularization and implicit bias in deep network classifiers trained with the square loss

Tomaso A. Poggio, Qianli LiaoarXiv 2020

Abstract

This paper provides a theoretical justification for why deep ReLU networks perform surprisingly well on classification tasks when trained with the square loss—a loss function traditionally reserved for regression. We demonstrate that the combination of normalization (such as Batch Normalization) and weight decay creates an explicit bias toward "minimum norm" solutions. These solutions naturally maximize classification margins and improve generalization, offering a resolution to the "square loss mystery" in deep learning.

Introduction

In deep learning, cross-entropy loss is the standard choice for classification, supported by theory suggesting it asymptotically maximizes the classification margin. However, recent empirical work has shown that the square loss can perform just as well. This presents a puzzle: the square loss lacks the inherent margin-maximizing properties of exponential-type losses. This study investigates how the dynamics of gradient flow, when combined with Batch Normalization (BN) and Weight Decay (WD), influence the final solution's ability to generalize.

Methodology

The authors analyze the gradient flow of deep ReLU networks by decomposing the network's weights into two components:

  1. $\rho$ (Rho): The product of the Frobenius norms of the weight matrices across all layers.
  2. $f(x)$: The "normalized" network where each layer's weight matrix has a unit norm.

By modeling Batch Normalization and Weight Normalization as a constrained optimization problem and adding a Weight Decay term ($\lambda \rho^2$) to the square loss, the authors derive a dynamical system describing the evolution of the total norm $\rho$ and the normalized weights during training. Theoretical claims were validated using binary classification subsets of CIFAR-10 on 4-layer fully-connected and convolutional architectures.

Key Theoretical Insights

  • The Norm-Margin Connection: The paper proves that for a zero-loss solution, the total norm $\rho$ is inversely related to the average classification margin. Consequently, finding a "minimum norm" solution is mathematically equivalent to finding a "maximum margin" solution.
  • Equilibrium of the Norm: The norm $\rho$ converges to an equilibrium $\rho_{eq}$ determined by the weight decay parameter $\lambda$ and the average margin of the training data.
  • Implicit Bias from Initialization: Even without explicit weight decay, near-zero initialization provides an implicit bias that nudges the network toward desirable small-norm, high-margin solutions.
  • Neural Collapse: The theory provides a mathematical basis for "Neural Collapse," where last-layer activations for the same class collapse to the class mean at the end of training.

Empirical Results

The authors demonstrate that when BN and WD are used together, the training process is highly stable and converges to a predictable minimum-norm solution regardless of initialization.

Figure 1: Training and test metrics for a ConvNet with BN and WD. The system shows high stability and convergence across different initializations (0.1, 1, and 5).

As shown in the dynamics of $\rho$, the norm evolves toward an equilibrium point that balances the loss and the weight decay. For large initializations, the norm may decrease initially before stabilizing, while small initializations grow toward the equilibrium.

Figure 2: The evolution of the total norm $\rho$ over time. The trajectory illustrates the convergence toward a stable range, which is critical for maximizing the classification margin.

Crucially, the paper shows that the upper bound on the expected classification error is directly controlled by $\rho$. A smaller $\rho$ at the end of training leads to a tighter bound on error, explaining why these specific training configurations generalize so effectively.

Conclusion and Future Work

This work clarifies the role of explicit and implicit regularization in square-loss classification. While the analysis focuses on continuous-time gradient flow, future work is needed to formally extend these findings to discrete-time gradient descent and Stochastic Gradient Descent (SGD). Additionally, the potential role of weight matrix rank in generalization remains an open question for further investigation.

Summary updated

BibTeX
@misc{poggio2020explicit,
  author = {Tomaso A. Poggio and Qianli Liao},
  title = {{Explicit regularization and implicit bias in deep network classifiers trained with the square loss}},
  year = {2020},
  eprint = {2101.00072},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.00072},
}
Figure