[Paper Review] Training Fully Connected Neural Networks is $\exists\mathbb{R}$-Complete
This paper proves that training fully connected two-layer ReLU neural networks to achieve zero training error is ∃ℝ-complete, even under highly constrained settings—such as two inputs, two outputs, 13 labels, and a fixed fraction of hidden neurons. The result shows that optimal training requires solving algebraic equations with real roots, implying that standard NP-solving tools like SAT or MIP solvers are insufficient unless NP = ∃ℝ.
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 $\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 $\mathsf{NP}=\exists\mathbb{R}$.
Motivation & Objective
- To establish the computational complexity of training fully connected two-layer ReLU neural networks to global optimality.
- To show that this problem remains ∃ℝ-complete even under stringent constraints: two inputs, two outputs, 13 labels, zero target error, and a constant fraction of hidden neurons.
- To demonstrate that arbitrary algebraic numbers are necessary for optimal weights, even when all data points are rational.
- To prove that no general-purpose NP-solving tools (e.g., SAT or MIP solvers) can solve this problem efficiently unless NP = ∃ℝ.
- To strengthen prior results by showing that hardness arises inherently in basic network architectures, not just adversarial ones.
Proposed method
- Reduction from the existential theory of the reals with inversion (ETR-INV), a known ∃ℝ-complete problem.
- Design of specialized neural network gadgets: levee, inversion, and cancel components, each encoding algebraic constraints.
- Construction of a Train-F2NN instance where data points lie on rational coordinates and are fitted exactly by continuous piecewise linear functions.
- Use of ReLU activation to enforce piecewise linear behavior and control slopes via weight and bias configurations.
- Proof that solutions to the neural network problem correspond bijectively to solutions of the ETR-INV instance via field arithmetic (addition, multiplication, division).
- Establishment of algebraic universality: the solution space of Train-F2NN captures all real algebraic solutions of ETR-INV instances.
Experimental results
Research questions
- RQ1Is training a fully connected two-layer ReLU neural network to zero training error computationally hard, even under minimal architectural constraints?
- RQ2Can the hardness of neural network training be attributed to the architecture itself, or only to pathological constructions?
- RQ3Are algebraic numbers necessary for optimal training, even when all input data are rational?
- RQ4Can standard NP-solving tools like SAT or MIP solvers solve this problem efficiently, assuming ∃ℝ is strictly larger than NP?
- RQ5Does the solution space of optimal neural network weights correspond exactly to the solution space of a real algebraic system?
Key findings
- Training fully connected two-layer ReLU neural networks to zero error is ∃ℝ-complete, even with only two input and two output neurons.
- The problem remains ∃ℝ-complete under the simultaneous constraints of 13 distinct labels, zero target error, and hidden neurons scaling as a constant fraction of data points.
- Optimal weights and biases may require arbitrary algebraic numbers, even when all training data points are rational.
- The solution space of the neural network training problem is algebraically universal: it captures all real solutions of ETR-INV instances via field operations.
- No general-purpose NP-solving tools (e.g., SAT or MIP solvers) can solve this problem efficiently unless NP = ∃ℝ.
- The hardness is inherent to the problem and not due to adversarial architectures—even the most basic fully connected networks exhibit this complexity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.