Abstract
While deep learning is increasingly applied to learn optimal heuristics for search algorithms like A*, this research identifies a fundamental scaling limitation. For NP-hard problems, the number of neural network parameters required to maintain high precision grows exponentially with problem size. Through theoretical analysis and empirical testing on the Traveling Salesperson Problem (TSP), Pancake Sorting, and Blocks World, the authors demonstrate that increasing model capacity is not a sustainable solution for complex combinatorial optimization.
Introduction
In heuristic search, a "completely informed" heuristic ($h^*$) provides the exact cost to reach a goal from any given state. With such a heuristic, algorithms like A* can solve even NP-hard problems in polynomial time. Recent research has pivoted toward using neural networks as universal function approximators to learn these $h^*$ functions. However, this paper investigates a critical question: can a reasonably sized neural network learn a precise enough approximation of $h^*$ to maintain search efficiency as problem instances scale?
Methods
The authors approach the problem from two perspectives:
- Theoretical Analysis: Utilizing complexity theory, they argue that if $P \neq NP$, calculating a high-precision approximation of $h^*$ in polynomial time is impossible. Since a neural network's forward pass is a polynomial-time operation, a network with a polynomial number of parameters cannot accurately represent $h^*$ for large NP-hard instances.
- Empirical Stress-Testing: The researchers trained fixed-depth and fixed-width architectures to approximate $h^*$ for three classic problems: Pancake Sorting, TSP, and Blocks World. They employed a binary search approach to determine the minimum number of parameters required to achieve specific error thresholds for varying problem sizes.
The Exponential Scaling Wall
The study reveals a striking log-linear trend in model complexity. When plotting the required number of parameters (on a log scale) against the problem size (on a linear scale), the result is a straight line, providing empirical evidence of exponential growth in model requirements.
This trend, referred to as "Phase 1," demonstrates that the precision required for efficient search necessitates an unsustainable increase in model size. Furthermore, this exponential scaling remained consistent regardless of whether the network's width or depth was increased, or which loss function was utilized.
Generalization and the "Drop in the Ocean"
As problem sizes increase, the state space expands so rapidly that even a training set of one million states becomes negligible—a "drop in the ocean." The authors observed a "Phase 2" where networks could meet training error thresholds through memorization but failed to generalize to unseen test instances. This generalization failure indicates that "learning" $h^*$ for large NP-hard problems eventually devolves into a massive memorization task.
Conclusion
The findings suggest that the research community should reconsider the use of neural networks as "black-box" replacements for $h^*$ in NP-hard domains. The exponential parameter requirement poses a significant barrier to scalability. Instead, the authors advocate for more nuanced integrations of machine learning with search, such as learning search policies, pruning rules, or identifying problem-specific symmetries to navigate complex state spaces more effectively.
Summary updated