[Paper Review] The Computational Complexity of Training ReLU(s)
This paper establishes the computational complexity of training depth-2 ReLU neural networks, proving that minimizing squared error is NP-hard even for a single ReLU or two ReLUs in the realizable case. It further provides a proper learning algorithm running in time $2^{(k/\\/epsilon)^{O(1)}}n^{O(1)}}$ for networks with weights and inputs in the unit ball, extending prior improper learning results.
We consider the computational complexity of training depth-2 neural networks composed of rectified linear units (ReLUs). We show that, even for the case of a single ReLU, finding a set of weights that minimizes the squared error (even approximately) for a given training set is NP-hard. We also show that for a simple network consisting of two ReLUs, the error minimization problem is NP-hard, even in the realizable case. We complement these hardness results by showing that, when the weights and samples belong to the unit ball, one can (agnostically) properly and reliably learn depth-2 ReLUs with $k$ units and error at most $ε$ in time $2^{(k/ε)^{O(1)}}n^{O(1)}$; this extends upon a previous work of Goel, Kanade, Klivans and Thaler (2017) which provided efficient improper learning algorithms for ReLUs.
Motivation & Objective
- To determine the computational complexity of training depth-2 ReLU networks with respect to minimizing squared error.
- To investigate whether the ReLU training problem remains hard even in the realizable case, where zero training error is theoretically achievable.
- To develop a proper, reliable learning algorithm for ReLU networks under bounded norm constraints, improving upon prior improper learning approaches.
- To establish a separation between the hardness of training (NP-hard) and the feasibility of learning under specific norm constraints.
- To clarify the relationship between NP-hardness of ReLU training and prior results on threshold units or average-case hardness.
Proposed method
- Proves NP-hardness of ReLU training via a reduction from a known NP-hard problem, showing that even approximating the minimum error within a nearly polynomial factor is NP-hard.
- Introduces a bias-shifting technique to convert an approximate minimizer into a proper ReLU hypothesis while controlling error, ensuring the output remains a valid ReLU network.
- Applies generalization bounds using Lipschitz loss functions (e.g., $\ell_{\gamma\text{-cont}}$) to relate empirical and true losses, enabling reliable learning guarantees.
- Uses the fact that the squared loss is Lipschitz and bounded on the output range $[0, 2k]$, allowing application of generalization theorems to bound generalization error.
- Employs a sample-based optimization strategy where the hypothesis is derived from minimizing empirical error over a finite sample, followed by bias adjustment to ensure proper ReLU structure.
- Leverages tools from approximation theory and kernel methods, building on prior work by Goel et al. [GKKT17], to design a learning algorithm with time complexity $2^{(k/\epsilon)^{O(1)}}n^{O(1)}}$.
Experimental results
Research questions
- RQ1Is training a single ReLU network to minimize squared error NP-hard?
- RQ2Is the ReLU training problem NP-hard even when the training data is realizable (i.e., zero error is achievable)?
- RQ3Can one design a proper learning algorithm for ReLU networks with bounded weights and inputs that achieves error $\epsilon$ in time exponential only in $k/\epsilon$?
- RQ4How does the NP-hardness of ReLU training relate to prior hardness results on threshold units or average-case assumptions?
- RQ5Can bias shifting be used to convert an improper solution into a proper ReLU network while preserving generalization guarantees?
Key findings
- Training a single ReLU to minimize squared error is NP-hard, even to approximate within a nearly polynomial factor.
- For two ReLUs, the error minimization problem remains NP-hard even in the realizable case, where zero training error is theoretically possible.
- A proper learning algorithm exists for ReLU networks with $k$ units and inputs/weights in the unit ball, achieving error at most $\epsilon$ in time $2^{(k/\epsilon)^{O(1)}}n^{O(1)}}$.
- The proposed algorithm is reliable and properly learns ReLU functions, improving upon prior improper learning results by Goel et al. [GKKT17].
- The key technical insight is that bias shifting preserves generalization while ensuring the output remains a valid ReLU network.
- Generalization bounds are established using Lipschitz and bounded loss functions, enabling the derivation of reliable error guarantees from empirical error minimization.
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.