On the Power of Neural Networks for Solving Hard Problems

Jehoshua Bruck, Joseph W. GoodmanNeurIPS 1987

Introduction

In the late 1980s, the "Hopfield model" of neural networks generated immense excitement within the computer science and engineering communities. Researchers observed that these networks naturally gravitate toward stable states that minimize (or maximize) an underlying energy function. Because many notoriously difficult combinatorial optimization tasks—such as the Traveling Salesman Problem (TSP)—can be mathematically framed as energy minimization problems, a tantalizing possibility emerged: could neural networks serve as a "magic bullet" for NP-hard problems? This prospect was especially appealing given the potential to implement these networks in ultra-fast optical hardware.

In this foundational theoretical paper, Bruck and Goodman provide a rigorous "reality check" on these aspirations. They tackle a fundamental question: Is it mathematically possible to design a reasonably sized (polynomial-sized) neural network that is guaranteed to find the exact solution, or even a reliable approximation, for NP-hard problems?

Theoretical Framework

To investigate this, the authors analyze a discrete-time neural network model characterized by the following properties:

  • Threshold Logic: Each neuron operates using a threshold logic function, outputting either 1 or -1.
  • Network Architecture: The network's behavior is governed by a symmetric weight matrix $W$ and a threshold vector $T$.
  • Serial Operation: The system updates in a serial mode, meaning only one neuron changes its state at a time. This constraint guarantees that the network will eventually converge to a stable state, which corresponds to a local maximum of the network's energy function.

Rather than relying on empirical benchmarks or datasets, Bruck and Goodman apply the rigorous tools of Computational Complexity Theory. They examine the relationship between the size of the network (defined by the number of bits required to represent $W$ and $T$) and the size of the problem instance. Specifically, they test whether a network can be constructed such that every local maximum of its energy function is also a global optimum for the problem at hand.

Complexity Barriers: The Reality Check

The authors reframe the neural network as essentially a hardware-implemented local search algorithm. The network transitions from state to state until it settles into a local maximum. From this perspective, they uncover significant theoretical barriers.

The "No" Instance Problem

The core of their first major finding (Proposition 1) hinges on the computational ease of verifying a local maximum. Checking whether a specific state is a local maximum takes only polynomial time. If a polynomial-sized network existed where only global optima were local maxima, we could use it to easily prove that a problem instance has no solution simply by checking a local maximum.

In complexity terms, this would place the complement of NP-complete problems into the NP complexity class. Therefore, the existence of such a network implies that $NP = co-NP$—a scenario that computer scientists widely believe to be impossible.

The Approximation Barrier

Could the network at least guarantee a "good enough" solution? The authors demonstrate that for problems like the Traveling Salesman Problem, finding an $\epsilon$-approximate solution (a solution guaranteed to be within a fixed percentage of the absolute best possible route) is just as computationally hard as finding the exact solution.

Their second major finding (Proposition 2) proves that if a polynomial-sized neural network could consistently guarantee an $\epsilon$-approximate solution for TSP, it would imply that $P = NP$.

Implications and Future Directions

Because $P \neq NP$ and $NP \neq co-NP$ are standard, deeply entrenched assumptions in computer science, Bruck and Goodman conclude that neural networks cannot magically bypass the worst-case complexity of NP-hard problems.

However, the authors are careful to emphasize that these findings do not render neural networks useless for optimization. Instead, they advocate for a more grounded perspective:

  • Average-Case Performance: The proofs rely on worst-case analysis. While a network might fail on the most pathologically difficult instances, it may still exhibit excellent performance on "average" or typical problem instances.
  • Algorithm Mapping: Rather than hoping a network will spontaneously discover a global optimum through energy minimization, researchers should focus on "programming" networks to execute specific, well-understood algorithms that come with guaranteed performance bounds.
  • Hardware Advantages: The original motivation for using neural networks—their potential for massive parallelism and high-speed optical implementation—remains highly valid. The key is to maintain realistic expectations about the theoretical complexity of the algorithms we ask this hardware to execute.

Summary updated

BibTeX
@inproceedings{bruck1987power,
  author = {Jehoshua Bruck and Joseph W. Goodman},
  title = {{On the Power of Neural Networks for Solving Hard Problems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1987},
}
Figure