English

Training Fully Connected Neural Networks is $\exists\mathbb{R}$-Complete

Computational Complexity 2024-03-25 v3 Machine Learning Neural and Evolutionary Computing

Abstract

We consider the problem of finding weights and biases for a two-layer fully connected neural network to fit a given set of data points as well as possible, also known as EmpiricalRiskMinimization. Our main result is that the associated decision problem is R\exists\mathbb{R}-complete, that is, polynomial-time equivalent to determining whether a multivariate polynomial with integer coefficients has any real roots. Furthermore, we prove that algebraic numbers of arbitrarily large degree are required as weights to be able to train some instances to optimality, even if all data points are rational. Our result already applies to fully connected instances with two inputs, two outputs, and one hidden layer of ReLU neurons. Thereby, we strengthen a result by Abrahamsen, Kleist and Miltzow [NeurIPS 2021]. A consequence of this is that a combinatorial search algorithm like the one by Arora, Basu, Mianjy and Mukherjee [ICLR 2018] is impossible for networks with more than one output dimension, unless NP=R\mathsf{NP}=\exists\mathbb{R}.

Keywords

Cite

@article{arxiv.2204.01368,
  title  = {Training Fully Connected Neural Networks is $\exists\mathbb{R}$-Complete},
  author = {Daniel Bertschinger and Christoph Hertrich and Paul Jungeblut and Tillmann Miltzow and Simon Weber},
  journal= {arXiv preprint arXiv:2204.01368},
  year   = {2024}
}

Comments

39 pages, 17 figures. Changes in version 2: Added algebraic universality result, improved interpretation of results Changes in version 3: Improved exposition by formalizing properties of gadgets

R2 v1 2026-06-24T10:36:44.560Z