On the Euclidean Distance Degree of Quadratic Two-Neuron Neural Networks
Giacomo Graziani
TL;DR
This work analyzes the Euclidean Distance degree ($ED$-degree) for shallow two-neuron quadratic neural networks by embedding the problem in algebraic geometry. It introduces the virtual ED-degree ($vED$) as a projective invariant equal to the sum of polar degrees and uses Kempf resolution, Nash blow-up, and intersection theory to reduce the computation to explicit Grassmannian integrals, proving stable polynomiality in the input dimension via equivariant localization. The authors also demonstrate that the ED-degree depends on the chosen metric, with a numerical example showing a substantial gap between the generic metric and the Bombieri–Weyl metric. The results provide a rigorous framework for understanding metric dependence of ED-based model-selection criteria and offer a scalable method to compute these invariants in higher dimensions.
Abstract
We study the Euclidean Distance degree of algebraic neural network models from the perspective of algebraic geometry. Focusing on shallow networks with two neurons, quadratic activation, and scalar output, we identify the associated neurovariety with the second secant variety of a quadratic Veronese embedding. We introduce and analyze the virtual Euclidean Distance degree, a projective invariant defined as the sum of the polar degrees of the variety, which coincides with the usual Euclidean Distance degree for a generic choice of scalar product. Using intersection theory, Chern-Mather classes, and the Nash blow-up provided by Kempf's resolution, we reduce the computation of the virtual Euclidean Distance degree to explicit intersection numbers on a Grassmannian. Applying equivariant localization, we prove that this invariant depends stably polynomially on the input dimension. Numerical experiments based on homotopy continuation illustrate the dependence of the Euclidean Distance degree on the chosen metric and highlight the distinction between the generic and nongeneric cases, such as the Bombieri-Weyl metric.
