Visualising Feature Learning in Deep Neural Networks by Diagonalizing the Forward Feature Map
<|reference_start|>Visualising Feature Learning in Deep Neural Networks by Diagonalizing the Forward Feature Map: Deep neural networks (DNNs) exhibit a remarkable ability to automatically learn data representations, finding appropriate features without human input. Here we present a method for analysing feature learning by decomposing DNNs into 1) a forward feature-map $\Phi$ that maps the input dataspace to the post-activations of the penultimate layer, and 2) a final linear layer that classifies the data. We diagonalize $\Phi$ with respect to the gradient descent operator and track feature learning by measuring how the eigenfunctions and eigenvalues of $\Phi$ change during training. Across many popular architectures and classification datasets, we find that DNNs converge, after just a few epochs, to a minimal feature (MF) regime dominated by a number of eigenfunctions equal to the number of classes. This behaviour resembles the neural collapse phenomenon studied at longer training times. For other DNN-data combinations, such as a fully connected network on CIFAR10, we find an extended feature (EF) regime where significantly more features are used. Optimal generalisation performance upon hyperparameter tuning typically coincides with the MF regime, but we also find examples of poor performance within the MF regime. Finally, we recast the phenomenon of neural collapse into a kernel picture which can be extended to broader tasks such as regression.<|reference_end|>
@article{nam2024visualising,
    title={Visualising Feature Learning in Deep Neural Networks by Diagonalizing
  the Forward Feature Map},
    author={Yoonsoo Nam, Chris Mingard, Seok Hyeong Lee, Soufiane Hayou, Ard Louis},
    journal={arXiv preprint arXiv:2410.04264},
    year={2024},
    archivePrefix={arXiv},
    eprint={2410.04264},
    primaryClass={stat.ML cs.LG}
}