[Paper Review] On the Fine-Grained Complexity of Empirical Risk Minimization: Kernel Methods and Neural Networks
This paper establishes conditional hardness results for empirical risk minimization (ERM) in kernel methods and neural networks using fine-grained complexity theory. Under the Strong Exponential Time Hypothesis (SETH), it proves that no algorithm can solve kernel SVMs, kernel ridge regression, or train the final layer of a neural network to high accuracy in sub-quadratic time, and that computing gradients in such models also cannot be significantly accelerated beyond O(n·m) time.
Empirical risk minimization (ERM) is ubiquitous in machine learning and underlies most supervised learning methods. While there has been a large body of work on algorithms for various ERM problems, the exact computational complexity of ERM is still not understood. We address this issue for multiple popular ERM problems including kernel SVMs, kernel ridge regression, and training the final layer of a neural network. In particular, we give conditional hardness results for these problems based on complexity-theoretic assumptions such as the Strong Exponential Time Hypothesis. Under these assumptions, we show that there are no algorithms that solve the aforementioned ERM problems to high accuracy in sub-quadratic time. We also give similar hardness results for computing the gradient of the empirical loss, which is the main computational burden in many non-convex learning tasks.
Motivation & Objective
- To understand the exact computational complexity of empirical risk minimization (ERM) in kernel methods and neural networks.
- To determine whether high-accuracy ERM solutions can be computed in sub-quadratic time for popular models like kernel SVMs and kernel ridge regression.
- To investigate the complexity of computing gradients in neural networks, particularly for the final layer, under fine-grained complexity assumptions.
- To provide conditional lower bounds based on the Strong Exponential Time Hypothesis (SETH), which is a standard assumption in fine-grained complexity.
- To close the gap between polynomial-time algorithms and the practical inefficiency of existing methods by proving that better-than-quadratic performance is unlikely unless widely believed complexity assumptions fail.
Proposed method
- Uses fine-grained complexity theory, particularly the Strong Exponential Time Hypothesis (SETH), to derive conditional lower bounds on ERM and gradient computation.
- Reduces the satisfiability problem (CNF-SAT) to ERM problems in kernel methods and neural networks via a carefully constructed embedding of binary vectors into the input space.
- Constructs a loss function with specific properties: convex, bounded, and with a unique minimum at zero, to preserve the structure of the underlying computational problem.
- Employs a matrix construction where orthogonal pairs of vectors in the input space correspond to large loss values, while non-orthogonal pairs yield small losses, enabling a reduction from CNF-SAT to ERM.
- Analyzes the behavior of the empirical risk under different assignments of the dual variable α, showing that the optimal solution corresponds to the existence of an orthogonal pair.
- Proves that any algorithm solving the ERM problem to high accuracy must essentially solve the underlying CNF-SAT instance, implying that sub-quadratic time algorithms would violate SETH.
Experimental results
Research questions
- RQ1Can kernel SVMs be solved to high accuracy in sub-quadratic time under standard complexity assumptions?
- RQ2Is there a faster-than-O(n·m) algorithm for computing the gradient of the empirical loss in a neural network’s final layer?
- RQ3Can kernel ridge regression be solved more efficiently than quadratic time, assuming SETH?
- RQ4Does the computational complexity of ERM in kernel methods and neural networks scale quadratically due to inherent hardness, or is this due to suboptimal algorithms?
- RQ5Are there fundamental limits to accelerating gradient computation in deep learning models beyond processing each example independently?
Key findings
- Under the Strong Exponential Time Hypothesis (SETH), there is no algorithm that solves kernel SVMs to high accuracy in sub-quadratic time.
- The same hardness result applies to kernel ridge regression and training the final layer of a neural network, indicating that these problems are inherently quadratic in the number of examples.
- Computing the gradient of the empirical loss in a neural network’s final layer cannot be done faster than O(n·m) time, where n is the number of units and m is the number of examples, unless SETH fails.
- The paper shows that no algorithm can compute batch gradients significantly faster than processing each example independently, under the same complexity assumption.
- The hardness results are conditional but based on widely accepted conjectures in fine-grained complexity, such as SETH, which have withstood decades of algorithmic research.
- The results imply that the computational cost of high-accuracy ERM and gradient computation in popular models is fundamentally limited by the structure of the underlying data and not by algorithmic inefficiency alone.
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.