Finding Probably Approximate Optimal Solutions by Training to Estimate the Optimal Values of Subproblems

Nimrod Megiddo, Segev Wasserkrug, Orit Davidovich, Shimrit ShternarXiv 2025 · DOI

Introduction

Combinatorial optimization—the task of finding the best solution from a finite but exponentially large set of possibilities—underpins critical challenges in logistics, scheduling, and network design. While traditional solvers like Gurobi are effective, they often struggle with the computational scale of NP-hard problems. Recent machine learning (ML) approaches have attempted to bridge this gap, but they typically rely on two resource-intensive paradigms: supervised learning, which requires massive datasets of pre-solved optimal solutions, or reinforcement learning, which necessitates complex policy iterations.

This paper proposes a third way: training neural networks to understand the "value" of sub-states by enforcing self-consistency with the mathematical laws of optimality. By minimizing a "discrepancy loss" rather than a distance to ground-truth labels, the authors provide a framework for learning the landscape of optimization problems without ever seeing a solved instance.

Methodology: The Discrepancy-Based Framework

The core innovation of this research is the use of Optimality Conditions as a training signal. In many discrete optimization problems, the optimal value of a problem can be defined recursively through Dynamic Programming principles. For instance, in a Knapsack problem, the optimal value for a set of items is the maximum of the value obtained by either including or excluding the current item, given the remaining capacity.

The Discrepancy Function

The authors define a discrepancy function, $\delta$, which measures how much a neural network’s value estimate violates these recursive identities. If a model is perfectly accurate, the value of a parent state should exactly match the value derived from its optimal child states. Any deviation from this identity constitutes a "discrepancy."

Training via Smooth Approximations

To train the model using Stochastic Gradient Descent (SGD), the authors define a global loss function, $\Psi$, which is the expected total deviation across various subproblems. However, standard optimality conditions often involve non-differentiable functions like max or absolute values. To enable backpropagation, the paper suggests using smooth approximations, such as:

  • LogSumExp to approximate the max function.
  • $\sqrt{x^2 + \alpha^2}$ to approximate absolute values.

Inference and Decision Making

Once the model is trained to estimate the optimal values of subproblems, it can be used as a heuristic for solving new instances. During inference, the model generates a solution by sequentially fixing variables (e.g., deciding whether to include an item in a set). At each step, it evaluates the potential branches and chooses the path that the model estimates will yield the highest total value.

Theoretical Foundations

Unlike many heuristic ML methods, this approach is grounded in rigorous mathematical proofs. The paper establishes that minimizing the self-consistency error directly correlates with minimizing the error relative to the true optimal solution.

  • Error Bounding (Theorem 10): The authors prove that the expected error of the value function is bounded by the training loss ($\Psi$). This provides a theoretical guarantee that a model with low discrepancy is, by definition, a good estimator of the true optimal value.
  • Local to Global Consistency (Propositions 4 & 9): These results establish that the total error in estimating a problem's optimal value is less than or equal to the sum of the local discrepancies of its constituent subproblems.

Problem Reformulations

The paper demonstrates the versatility of this framework by reformulating several classic NP-hard problems into the discrepancy-based training regime:

  1. Knapsack Problem: Balancing weight and value.
  2. Max-Weighted Satisfiability (Max-SAT): Finding assignments that satisfy the maximum weight of clauses.
  3. Max-Cut: Partitioning graph vertices to maximize the weight of edges between sets.
  4. Max-Weighted Independent Set: Finding the heaviest set of non-adjacent vertices.

Discussion and Limitations

While the theoretical framework is robust, the paper remains primarily methodological. There are several areas where further empirical research is required:

  • Lack of Empirical Benchmarks: The paper does not provide performance metrics against state-of-the-art solvers or existing reinforcement learning agents. The convergence speed and scalability in high-dimensional spaces remain to be tested.
  • Distribution Dependency: The method's effectiveness depends on the probability distribution of problem instances used during training. If the real-world problems encountered during inference differ significantly from the training distribution, the "Probably Approximate" guarantees may weaken.
  • Approximation Error: The use of smooth approximations (like LogSumExp) introduces a small, inherent bias into the training process. The impact of this bias on the final solution quality is not yet quantified.

Conclusion

This research introduces a promising paradigm for combinatorial optimization: learning through self-consistency. By shifting the focus from "learning to solve" to "learning the value of subproblems," the authors provide a path toward solvers that require no ground-truth data and offer theoretical bounds on their own performance. Future work will likely focus on the practical implementation of these neural estimators in large-scale, real-world optimization pipelines.

Summary updated

BibTeX
@misc{megiddo2025finding,
  author = {Nimrod Megiddo and Segev Wasserkrug and Orit Davidovich and Shimrit Shtern},
  title = {{Finding Probably Approximate Optimal Solutions by Training to Estimate the Optimal Values of Subproblems}},
  year = {2025},
  eprint = {2511.02048},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.02048},
}
Figure