Heuristics for Combinatorial Optimization via Value-based Reinforcement Learning: A Unified Framework and Analysis

Orit Davidovich, Shimrit Shtern, Segev Wasserkrug, Nimrod MegiddoarXiv 2025 · DOI

Abstract

This work establishes a theoretical foundation for applying value-based Reinforcement Learning (RL) to Combinatorial Optimization (CO). By mapping CO problems to a unified Markov Decision Process (MDP) framework, we demonstrate that algorithms such as Deep Q-Learning possess mathematically sound convergence properties and provable optimality bounds. We address the challenge of undiscounted rewards inherent in CO by utilizing weighted norms to prove Bellman contractions. Furthermore, we decouple the total error into approximation and estimation components, providing a sample complexity analysis that links learning quality to solution optimality. Empirical results on Knapsack and Traveling Salesman problems validate our theoretical findings.

Introduction

Combinatorial Optimization (CO) problems, such as the Traveling Salesman Problem (TSP) and the Knapsack Problem (KSP), are fundamental to logistics and resource allocation but are often NP-hard. While expert-designed heuristics have long been the standard, recent advances in Reinforcement Learning (RL) have enabled the automatic learning of heuristics using neural networks. Despite empirical success, a theoretical gap remains: most RL theory assumes discounted rewards, whereas CO problems are naturally undiscounted—the final outcome is as critical as the initial steps. This paper bridges that gap by providing a rigorous analysis of convergence and sample complexity for value-based RL in CO.

A Unified Framework for CO and MDP

The core contribution of this research is a unified framework that translates CO problems into equivalent undiscounted MDPs. This mapping allows for the application of RL algorithms like Fitted Value Iteration (FVI) and Deep Q-Learning (DQL) with theoretical guarantees.

Unified framework mapping Combinatorial Optimization to Reinforcement Learning through MDPs.

As illustrated in the framework above, the approach relies on several key pillars:

  1. Karp-Held Mapping: Adapting classic theory to view CO problems as sequences of decisions leading to a unique absorbing state.
  2. Fitted Value Iteration (FVI): Focusing on FVI as a deterministic counterpart to DQL. Given that CO transitions are deterministic, the authors utilize Value functions instead of Q-functions for improved memory efficiency.
  3. Weighted Norms: To ensure convergence without a discount factor, the authors employ a weighted $\ell_\infty$ norm. This mathematical construction ensures the Bellman operator remains a contraction, guaranteeing that the algorithm converges to a stable solution.

Theoretical Analysis and Error Decoupling

A major theoretical advancement presented is the decoupling of total error into two distinct components:

  • Approximation Error: The penalty incurred by using a function approximator (e.g., a neural network) instead of an exact look-up table.
  • Estimation Error: The noise introduced by training on a finite number of samples.

The paper proves an $\epsilon$-approximation guarantee: if an RL agent learns a value function within $\epsilon$ of the true value, the resulting solution is guaranteed to be $O(\epsilon)$-optimal. This directly links the quality of the learned heuristic to the optimality of the final CO solution. Furthermore, the analysis provides a "price tag" for accuracy, specifying how sample size ($n$) and gradient steps ($c$) must scale to reduce the optimality gap.

Empirical Validation

To verify the theoretical bounds, the authors conducted over 1.5 million simulations using Projected Value Iteration (PVI) on synthetic instances of the Knapsack Problem (KSP) and Traveling Salesman Problem (TSP).

Key results include:

  • 100% Convergence: In all scenarios for KSP and TSP, the algorithms converged exactly as predicted by the theory.
  • Tight Bounds: The empirical performance of the learned heuristics closely matched the calculated mathematical limits, confirming the tightness of the theoretical error bounds.
  • State Embedding Sensitivity: The results highlight that the choice of state representation (embedding) is a fundamental factor in the maximum achievable accuracy of the heuristic.

Conclusion and Future Work

This work provides the first comprehensive "instruction manual" for using value-based RL in combinatorial optimization with rigorous guarantees. While the current analysis focuses on fixed problem instances, it sets the stage for future research into generalization—how agents perform on unseen problem instances—and the use of exploration-exploitation strategies to manage the sample complexity required for high-precision solutions in larger-scale CO tasks.

Summary updated

BibTeX
@misc{davidovich2025heuristics,
  author = {Orit Davidovich and Shimrit Shtern and Segev Wasserkrug and Nimrod Megiddo},
  title = {{Heuristics for Combinatorial Optimization via Value-based Reinforcement Learning: A Unified Framework and Analysis}},
  year = {2025},
  eprint = {2512.08601},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.08601},
}
Figure