TL;DR
This paper introduces "Hadamard initialization" as a mathematical key to unlock the training dynamics of cross-entropy (CE) loss in neural networks. By diagonalizing the softmax operator, the authors provide the first trajectory-level analysis of Neural Collapse, proving that gradient flow naturally converges to these symmetric geometric states and revealing unique non-monotonic behaviors that don't exist under standard squared-loss training.
What Problem Does This Paper Address?
In the study of deep learning theory, we have a fairly robust understanding of how networks learn when using Mean Squared Error (MSE) loss, thanks to "spectral dynamics" frameworks. However, most modern classification is done using Cross-Entropy (CE) loss with a softmax layer.
The softmax function is a mathematical "black box" for theorists because it nonlinearly couples the singular values of the weight matrices. This coupling makes it nearly impossible to write down tractable differential equations for the training path. Consequently, while we know that networks eventually reach a state called Neural Collapse (NC)—where class features align into a perfectly symmetric "simplex"—we haven't had a clear picture of the path they take to get there or a rigorous proof of convergence for the simplest non-convex models.
Methods
The authors propose a novel approach called Hadamard Initialization.
- The Core Idea: They use Sylvester-Hadamard matrices (matrices consisting of $\pm 1$ with specific orthogonal properties) to initialize the network weights.
- Softmax Diagonalization: The "aha" discovery is that this specific initialization "diagonalizes" the softmax operator. This effectively uncouples the complex matrix interactions, reducing the training dynamics from a messy matrix differential equation to a much simpler vector ODE over the singular values of the logit matrix.
- The Model: They analyze the Unconstrained Features Model (UFM), a popular theoretical proxy where the last-layer embeddings are treated as free, optimizable variables.
- Lyapunov Analysis: To prove convergence, they identify an explicit Lyapunov function based on Kullback-Leibler (KL) divergence. They show this function decreases monotonically throughout the entire training trajectory, guaranteeing that the network will reach Neural Collapse.
Datasets
As a theoretical paper, it does not use standard empirical benchmarks like ImageNet or CIFAR-10. Instead, it uses:
- Synthetic Multiclass Data: Controlled setups with $K$ classes (where $K$ is a power of 2, e.g., 4, 8, 16) and $n$ samples per class.
- Simulated Gradient Flow: Numerical solvers are used to verify that the theoretical "Vector ODE" perfectly matches the actual "Matrix ODE" of a training network.
Key Insights and Ideas
- The "Magic" Basis: Hadamard matrices provide a coordinate system where the nonlinearity of the softmax doesn't "mix" the different components of the weight matrices. This allows researchers to track exactly how each "mode" of the network grows or shrinks during training.
- Non-Monotonicity (The "K=8" Surprise): One of the most striking findings is that for 8 or more classes, standard metrics for Neural Collapse (like $L_2$ distance) can actually increase before they decrease. The network might look like it's moving away from the optimal solution before eventually swinging back. This behavior is unique to CE loss and is completely absent in MSE-based models.
- Alignment Phase: The authors show that even if you start with small random initialization (instead of Hadamard), the network spends its first few steps "aligning" itself to the Hadamard basis. Once aligned, the rest of the training follows the trajectory predicted by their Hadamard theory.
- Implicit Bias is Dynamic: Rather than just looking at where the network ends up (asymptotic analysis), this work shows that the entire path is driven by the way singular values compete to enlarge "margins" in the loss landscape.
Key Results
- Convergence Proof: The paper provides the first finite-time analysis proving that gradient flow on the CE UFM converges to Neural Collapse.
- Theoretical vs. Empirical Match: Numerical experiments (shown in Figures 1 and 3) demonstrate that the simplified vector equations are "indistinguishable" from the full matrix dynamics.
- Metric Sensitivity: They prove that while KL divergence is a "well-behaved" metric that always decreases, the commonly used $L_2$ metric is not monotonic for $K \ge 8$, warning researchers to be careful about which metrics they use to track training progress.
Limitations and Future Work
- Power of Two Constraint: The current mathematical proof relies on Sylvester-Hadamard matrices, which only exist for class counts $K = 2^m$. Extending this to any number of classes is a logical next step.
- Linearity: The analysis is performed on a two-layer linear network (UFM). While this is a standard starting point for theory, real-world networks are deep and nonlinear.
- General Activations: The authors suggest that their "diagonalization" trick might work for any elementwise activation function, not just softmax, which could open the door to spectral analysis of much more complex architectures.
Summary updated