NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Reinforcement Learning Driven Heuristic Optimization

Qingpeng Cai, Will Hang, Azalia Mirhoseini, George Tucker, Jingtao Wang, Wei WeiarXiv 2019

Abstract: Heuristic algorithms such as simulated annealing, Concorde, and METIS are effective and widely used approaches to find solutions to combinatorial optimization problems. However, they are limited by the high sample complexity required to reach a reasonable solution from a cold-start. In this paper, we introduce a novel framework to generate better initial solutions for heuristic algorithms using reinforcement learning (RL), named RLHO. We augment the ability of heuristic algorithms to greedily improve upon an existing initial solution generated by RL, and demonstrate novel results where RL is able to leverage the performance of heuristics as a learning signal to generate better initialization. We apply this framework to Proximal Policy Optimization (PPO) and Simulated Annealing (SA). We conduct a series of experiments on the well-known NP-complete bin packing problem, and show that the RLHO method outperforms our baselines. We show that on the bin packing problem, RL can learn to help heuristics perform even better, allowing us to combine the best parts of both approaches.

Introduction

Combinatorial optimization—the process of finding the optimal solution from a finite set of possibilities—is a fundamental challenge in logistics, networking, and scheduling. Many of these problems, such as the bin packing problem, are NP-complete, meaning that finding an exact solution is computationally infeasible for large-scale instances.

Traditionally, researchers have relied on two distinct paradigms. The first involves heuristic algorithms like Simulated Annealing (SA), which are reliable and offer theoretical guarantees but often suffer from a "cold-start" problem. Starting from a random state, these algorithms require significant time and many iterations to converge. The second paradigm is Reinforcement Learning (RL), which can generate solutions rapidly once trained. However, RL often lacks the robustness of traditional heuristics and is prone to "policy collapse," where the agent becomes trapped in sub-optimal patterns. This paper proposes the RLHO framework to bridge these approaches, using RL to provide a high-quality "warm-start" for heuristic refinement.

The RLHO Framework

The Reinforcement Learning Driven Heuristic Optimization (RLHO) framework is a two-stage hybrid system designed to maximize the strengths of both RL and traditional heuristics.

The RLHO framework: RL generates an initial solution for heuristic optimization, which then provides a reward signal back to the RL agent.

In the first stage, a Proximal Policy Optimization (PPO) agent acts as a "scout." It performs a fixed number of steps to perturb a random initial state into a promising "warm" starting solution. In the second stage, a heuristic algorithm, such as Simulated Annealing, takes this warm start and performs local search refinement for a set number of iterations to reach a local optimum.

The core innovation of RLHO lies in its training signal. Rather than training the RL agent solely to minimize the objective function, it is trained to produce solutions that the heuristic is specifically well-equipped to improve. By treating the heuristic's optimization path as a tractable value function, the framework provides the RL agent with a clearer signal of which states lead to the best final outcomes after refinement.

Experimental Methodology

We evaluated the RLHO framework using the Bin Packing Problem, where the objective is to pack items of varying sizes into the minimum number of bins. Our experiments scaled from small instances (50 items) to large-scale challenges (1000 items).

We compared RLHO against two primary baselines:

  1. Pure RL: A PPO agent operating in isolation.
  2. Random + Heuristic: Simulated Annealing starting from a random initial assignment (the standard "cold-start" approach).

Results and Analysis

Our results demonstrate that RLHO consistently outperforms both pure RL and cold-started heuristics across all problem scales. A key finding is the synergy between the two components: while pure RL is initially more sample-efficient and learns quickly, it eventually plateaus. In contrast, RLHO continues to improve because the heuristic component provides an outlet for exploration that pure RL lacks.

Performance comparison on 500-bin packing: While RL-only converges faster initially, RLHO achieves a significantly lower final cost (fewer bins) over time.

Quantitatively, for a 1000-item bin packing problem, RLHO achieved a best solution of 572 bins, significantly outperforming the 613 bins required by pure RL. Furthermore, RLHO proved superior to the standard practice of starting heuristics from random states. For 1000 items, RLHO combined with SA (50k steps) found solutions with an average of 711 bins, compared to 731 bins for the Random + SA baseline.

An interesting observation regarding generalization emerged: an RL agent trained with a heuristic running for only 5,000 steps still provided excellent initializations for heuristics running for millions of steps. This suggests that the RL agent successfully learns fundamental structural properties of high-quality starting points rather than just memorizing specific paths.

Conclusion

The RLHO framework demonstrates that Reinforcement Learning and heuristic optimization are not competing methods but complementary ones. By using RL to navigate the global state space and heuristics to perform local refinement, we can achieve results that surpass the capabilities of either method alone. While this study focused on bin packing, the framework is architecturally general. Future research will explore its application to other NP-complete problems, such as the Traveling Salesman Problem, and investigate the use of different heuristic pairings like METIS or Concorde.

Summary updated

BibTeX
@misc{cai2019reinforcement,
  author = {Qingpeng Cai and Will Hang and Azalia Mirhoseini and George Tucker and Jingtao Wang and Wei Wei},
  title = {{Reinforcement Learning Driven Heuristic Optimization}},
  year = {2019},
  eprint = {1906.06639},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.06639},
}
Figure