Beyond Unconstrained Features: Neural Collapse for Shallow Neural Networks with General Data

Wanli Hong, Shuyang Ling
9/3/2024
stat.MLcs.LG

No official code found. Best implementation: WanliHongC/Neural-Collapse (3 stars, last commit 2023-09-19).

Abstract

Neural collapse (NC) is a phenomenon that emerges at the terminal phase of the training (TPT) of deep neural networks (DNNs). The features of the data in the same class collapse to their respective sample means and the sample means exhibit a simplex equiangular tight frame (ETF). In the past few years, there has been a surge of works that focus on explaining why the NC occurs and how it affects generalization. Since the DNNs are notoriously difficult to analyze, most works mainly focus on the unconstrained feature model (UFM). While the UFM explains the NC to some extent, it fails to provide a complete picture of how the network architecture and the dataset affect NC. In this work, we focus on shallow ReLU neural networks and try to understand how the width, depth, data dimension, and statistical property of the training dataset influence the neural collapse. We provide a complete characterization of when the NC occurs for two or three-layer neural networks. For two-layer ReLU neural networks, a sufficient condition on when the global minimizer of the regularized empirical risk function exhibits the NC configuration depends on the data dimension, sample size, and the signal-to-noise ratio in the data instead of the network width. For three-layer neural networks, we show that the NC occurs as long as the first layer is sufficiently wide. Regarding the connection between NC and generalization, we show the generalization heavily depends on the SNR (signal-to-noise ratio) in the data: even if the NC occurs, the generalization can still be bad provided that the SNR in the data is too low. Our results significantly extend the state-of-the-art theoretical analysis of the N C under the UFM by characterizing the emergence of the N C under shallow nonlinear networks and showing how it depends on data properties and network architecture.

View on arXivView PDF

Code Implementations(1)

Code for paper

30PythonSep 13, 20233 years ago

Similar Papers

Cite this paper

@article{hong2024beyond,
  title  = {Beyond Unconstrained Features: Neural Collapse for Shallow Neural Networks with General Data},
  author = {Wanli Hong and Shuyang Ling},
  year   = {2024},
  eprint = {2409.01832},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.01832v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.01832.svg)](https://codeofpaper.com/paper/2409.01832)

Discussion