From Density Matrices to Phase Transitions in Deep Learning: Spectral Early Warnings and Interpretability

Hennick, Max, Corlouer, Guillaume

–arXiv.org Artificial Intelligence 

Phase transitions are a ubiquitous concept in modern physics, and can be loosely defined as a qualitative change in the properties of a system as one acts upon it (increasing the temperature, applying an external magnetic field, etc.) As such, it is common to define a phase transition during training as a qualitative change in the internal structure of a model's parameters that produces a corresponding change in behaviour or capabilities. Such transitions can be continuous (the structure changes gradually, with detectable precursors in fluctuation statistics, generally referred to as second order transitions) or discontinuous (the structure reorganizes abruptly, with precursors that are brief or absent, referred to as first order transitions). Understanding, detecting, and predicting phase transitions allows us to better understand and control model training. While the study of phase transitions in deep learning has seen significant progress in recent years, most work is either looking at the properties of a specific transition, and most general methods require large amounts of computational overhead, either from sampling model parameters or from the storage of gradient vectors, limiting their applicability to large models (see section 1.1 for discussion).