Researchers at NYU and NYU Shanghai have uncovered a critical divergence in how neural networks learn classification versus regression tasks. While "neural collapse"—the simplification of features into low-dimensional structures—is beneficial for image categorization, it consistently degrades performance in multivariate regression.
The Problem: Neural Regression Collapse (NRC)
In classification, features converge toward a highly symmetric, simplified geometry, which aids generalization. However, in multivariate regression (predicting continuous values like robot joint angles or stock prices), a similar phenomenon called Neural Regression Collapse (NRC) occurs. Here, features squash into a linear subspace, but unlike in classification, this collapse hurts performance.
Measuring Dimensionality: Intrinsic Dimension
To explain this contradiction, the authors move beyond simple linear analysis and utilize Intrinsic Dimension (ID). They employ a 2-NN Estimator, a non-linear tool that determines the "true" dimensionality of the data manifold by looking at the ratio of distances between a point and its two nearest neighbors.
The core of their method involves comparing the intrinsic dimension of the last-layer features ($ID_H$) against the intrinsic dimension of the regression targets ($ID_Y$). Invoking Sard’s Theorem from differential geometry, they prove that if the feature manifold has a lower dimension than the target manifold ($ID_H < ID_Y$), it is mathematically impossible for the model to "cover" all necessary target values, leading to unavoidable errors.
Two Regimes of Generalization
The study identifies two distinct regimes based on the relationship between feature ID and target ID:
- Over-compressed ($ID_H < ID_Y$): The model lacks expressive capacity. Features have fewer degrees of freedom than the targets, leading to high training and test error. In this regime, increasing model width or reducing regularization (like weight decay) improves performance.
- Under-compressed ($ID_H > ID_Y$): The model has "extra" dimensions. In noisy or low-data scenarios, these extra dimensions can lead to overfitting (predicting the noise). Here, increasing collapse via weight decay can actually improve generalization.
Key Results and Practical Guidelines
Empirical results confirm a U-shaped relationship between feature ID and test error in noisy tasks. The optimal performance is consistently found near the $ID_H \approx ID_Y$ threshold. Interestingly, the intrinsic dimension of features almost always decreases monotonically during training, regardless of whether the model is collapsing or not.
For practitioners, this offers a diagnostic tool:
- If a regression model is underperforming, check the ID of the features.
- If $ID_H < ID_Y$, relax regularization or increase model width.
- If $ID_H \gg ID_Y$ and data is scarce, increase regularization to induce more collapse.
Conclusion
This work highlights that the geometric "simplification" favored in classification is a double-edged sword. While it helps discard irrelevant information in discrete tasks, it can destroy essential signal in continuous ones. Future research may focus on developing adaptive optimizers that automatically tune regularization to keep the model near the $ID_H \approx ID_Y$ "sweet spot."
Summary updated