Gradient Flow Through Diagram Expansions: Learning Regimes and Explicit Solutions
Dmitry Yarotsky, Eugene Golikov, Yaroslav Gusev
TL;DR
Gradient Flow Through Diagram Expansions develops a unifying framework to analyze gradient flow in large-scale CP-decomposition models by expressing the loss evolution as a time-power series whose coefficients are encoded by diagrammatic graphs. The authors derive a large-size Pareto polygon taxonomy that links scaling relations between input size $p$, hidden size $H$, and initialization variance $\sigma^2$ to distinct learning regimes (NTK, mean-field, under-/overparameterized) and, in some cases, obtain explicit, closed-form GF solutions via a PDE-characteristics method. They further show how summations of the formal series can be carried out in many regimes, yielding explicit loss dynamics and phase diagrams that agree with experiments on identity targets and modular arithmetic tasks. The work provides insights into when feature learning occurs, clarifies the role of symmetry, and offers a potentially generalizable toolkit for analyzing nonlinear gradient flows in high-dimensional learning systems.
Abstract
We develop a general mathematical framework to analyze scaling regimes and derive explicit analytic solutions for gradient flow (GF) in large learning problems. Our key innovation is a formal power series expansion of the loss evolution, with coefficients encoded by diagrams akin to Feynman diagrams. We show that this expansion has a well-defined large-size limit that can be used to reveal different learning phases and, in some cases, to obtain explicit solutions of the nonlinear GF. We focus on learning Canonical Polyadic (CP) decompositions of high-order tensors, and show that this model has several distinct extreme lazy and rich GF regimes such as free evolution, NTK and under- and over-parameterized mean-field. We show that these regimes depend on the parameter scaling, tensor order, and symmetry of the model in a specific and subtle way. Moreover, we propose a general approach to summing the formal loss expansion by reducing it to a PDE; in a wide range of scenarios, it turns out to be 1st order and solvable by the method of characteristics. We observe a very good agreement of our theoretical predictions with experiment.
