Abstract
This paper establishes rigorous computational limits for training neural networks, proving that Empirical Risk Minimization (ERM) is NP-hard even for simple two-layer architectures in dimensions as low as $d=2$. While previous complexity results relied on high-dimensional inputs, this work demonstrates that the combinatorial challenge of assigning data points to neurons persists in fixed, low-dimensional space. However, the authors also identify a "silver lining": when the network is constrained to compute a convex function (e.g., by enforcing positive output weights), the training problem becomes fixed-parameter tractable (FPT).
Introduction
A central question in machine learning theory is identifying the source of computational difficulty in training neural networks. While "big data" and high-dimensional feature spaces are often cited as primary hurdles, this research investigates whether training remains hard when the input dimension ($d$) is small and fixed.
Prior proofs of NP-hardness for neural network training typically required the dimension $d$ to grow with the dataset size. This paper settles several open conjectures by proving that for standard ReLU and linear threshold networks, finding the optimal weights is NP-hard even in 2D. This suggests that the difficulty is fundamentally geometric and combinatorial, rather than purely a consequence of high dimensionality.
Problem Formulation and Architecture
The study focuses on the standard two-layer neural network architecture, which consists of an input layer, a single hidden layer with $k$ neurons, and an output layer.
As shown in the architecture diagram, the network processes $d$ inputs through hidden units with weights $\mathbf{w}_i$ and biases $b_i$. The goal of training is to find weights and biases that minimize the empirical risk over a given dataset. The authors specifically examine the complexity of this task for ReLU and linear threshold activation functions.
Methods
The authors employ parameterized complexity theory and geometric reductions to establish their results:
- Reduction from POITS: To prove NP-hardness for $d=2$, the authors reduce the Positive One-In-Three 3-SAT (POITS) problem to a 2D training task. They construct "Selection Gadgets"—specific spatial arrangements of data points that force the network's activation boundaries (breaklines) to simulate logic gates.
- Levee Functions: A key construction is the "levee function," formed by four ReLU units to create a raised stripe in 2D space. By manipulating the orientation of these stripes, the authors encode discrete logical choices into the geometric configuration of the neurons.
- The
ExactFitAlgorithm: For the positive result concerning convex functions, the authors developedExactFit. This algorithm uses a search tree to partition data points into linear regions of the convex function, utilizing Linear Programming (LP) to verify the feasibility of each configuration.
Key Results
The paper provides several landmark theoretical results:
- NP-Hardness in 2D: Training both ReLU and Linear Threshold networks to zero error ($\gamma = 0$) is NP-hard for $d=2$. This implies no algorithm can be polynomial in the number of neurons $k$ for a fixed dimension.
- W[1]-Hardness: For a small number of neurons (e.g., $k=4$), the problem is W[1]-hard with respect to the dimension $d$, suggesting that efficiency in $d$ is unlikely even for tiny networks.
- Convex Tractability: If the network is restricted to convex functions (typically by setting all $a_j \ge 0$), the problem is solvable in $2^{O(k^2d)} \text{poly}(k, L)$ time. This identifies convexity as a critical boundary between computational tractability and intractability.
Discussion and Conclusion
The findings highlight that the "hardness" of ReLU networks stems largely from their ability to flip signs in the output layer, which creates a complex combinatorial "jigsaw puzzle" of neuron coverage. While these results focus on exact global optimality and piecewise activations, they provide a foundation for understanding the limits of gradient-based optimization.
Future work may explore whether these results extend to smooth activation functions like Sigmoid or Swish, or if the hardness persists for additive approximations. For now, this research clarifies that even in the simplest geometric settings, training neural networks remains a formidable computational challenge.
Summary updated