TL;DR
Training deep neural networks with discrete parameters (D-NNT) is fundamentally harder than previously realized, potentially exceeding the complexity of NP-complete problems. This research proves that while training shallow networks is already NP-hard, increasing depth makes the problem significantly more difficult—even in highly restricted settings with minimal data and simple activation functions.
What Problem Does This Paper Address?
Most theoretical research on neural network training (NNT) focuses on "continuous" weights, where parameters can be any real number. However, in the real world, we often use "discrete" weights for quantization—a technique used to run massive models on low-power devices like smartphones by restricting weights to a small set of integers (e.g., {-1, 0, 1}).
Despite its practical importance, the theoretical complexity of discrete training (D-NNT) has been less explored than its continuous counterpart. Specifically, the field lacked a clear understanding of:
- How network depth impacts training difficulty.
- Whether discrete training is fundamentally "harder" than continuous training.
- Whether we can find efficient algorithms for specific, restricted versions of the problem.
Methods
The author employs classical computational complexity theory, using polynomial reductions to map known "hard" problems onto the task of training a neural network.
A standout methodological choice is the reduction from the Positive Straight-Line Program (PosSLP) problem to prove the hardness of deep networks. PosSLP is a notorious problem in numerical analysis related to determining if a value computed by a sequence of arithmetic operations is positive. By showing that a deep neural network can "simulate" these programs, the author links NNT to deep questions in algebraic complexity.
For shallow (two-layer) networks, the paper uses reductions from more familiar combinatorial problems like Subset Sum, Binary Constraint Satisfaction (2-CSP), and Exact Set Cover. Finally, the author develops a Dynamic Programming approach to create a pseudo-polynomial algorithm for specific two-layer scenarios.
Datasets
As a theoretical paper, this work does not use standard empirical benchmarks like ImageNet or MNIST. Instead, it uses constructed adversarial datasets.
- To prove NP-hardness for shallow networks, the author shows the problem is difficult even with a dataset size of $n=1$ and a single input dimension ($d=1$).
- These "minimalist" datasets are used to demonstrate that the hardness stems from the network structure and parameter constraints themselves, rather than the complexity of the data.
Key Insights and Ideas
- Depth is a Game-Changer: The most striking insight is that depth alone can push D-NNT out of the complexity class NP. This means that for deep networks, we likely cannot even verify if a given set of weights is optimal in polynomial time. This separates D-NNT from "easier" NP-complete problems like the Traveling Salesperson Problem.
- Discrete vs. Continuous Gap: In continuous training, "over-parameterized" models (where you have more neurons than data points) are generally easy to fit. The paper shows this is not true for discrete training; D-NNT remains NP-hard even when the model is much larger than the dataset.
- The Identity Function is Enough: Many hardness proofs rely on complex non-linear activations like ReLU. This paper proves that D-NNT is NP-hard even using the identity function ($\sigma(x) = x$), provided the weights are discrete.
- Numerical Instability as Hardness: The "crux" of the hardness in deep networks is the ability of the network to represent and manipulate extremely fast-growing numbers, mirroring the numerical instability often observed by practitioners in deep learning.
Key Results
- Theorem 1.1 (Deep Hardness): Under standard conjectures, D-NNT for deep networks is not in NP, even with input/output dimensions of 1 and weights restricted to $\{-1, 0, 1\}$.
- Theorem 1.3 (Shallow Hardness): D-NNT is NP-hard for a two-layer network even if the dataset has only one point, the activation is the identity, and the loss is the sum of squares.
- Theorem 1.6 (Algorithmic Silver Lining): The author provides a pseudo-polynomial algorithm that can solve D-NNT on two-layer networks in time proportional to the maximum number the network can compute, provided the dataset size is fixed.
Limitations and Future Work
- Conjecture Dependency: The strongest result (Theorem 1.1) relies on the Constructive Univariate Radical Conjecture. While widely believed, it remains unproven.
- Non-Standard Activations: The proof for deep networks uses custom activation functions that perform multiplication and division. While these are mathematically valid, future work is needed to see if the same "not in NP" result holds for standard functions like ReLU or Sigmoid.
- Adversarial vs. Natural Quantization: The paper studies "worst-case" hardness. In practice, quantization is rarely adversarial. Bridging the gap between these theoretical lower bounds and the average-case performance of quantization algorithms remains an open challenge.
Summary updated