Deep Reinforcement Learning for Exact Combinatorial Optimization: Learning to Branch

Tianyu Zhang, Amin Banitalebi-Dehkordi, Yong Zhang · DOI

Introduction

Combinatorial optimization (CO) is a fundamental pillar of modern logistics, scheduling, and resource allocation. To solve these NP-hard problems exactly, researchers typically rely on the Branch-and-Bound (B&B) algorithm. B&B works by recursively partitioning the solution space into smaller sub-problems (branching) and using mathematical bounds to prune sections of the search tree that cannot contain an optimal solution (bounding).

The primary bottleneck in B&B is the variable selection problem: deciding which variable to branch on at each node. While handcrafted heuristics like Full Strong Branching (FSB) are highly accurate, they are computationally expensive and significantly slow down the solver. Conversely, while Supervised Learning (SL) models can mimic these heuristics at a lower computational cost, they require massive amounts of "optimal" labeled data, which is often prohibitively expensive to generate. This paper introduces a hybrid reinforcement learning (RL) framework designed to master branching decisions without the need for exhaustive labeled datasets.

Methodology: The PPO-MCTS Framework

The authors propose a three-stage pipeline, PPO-MCTS, which combines imitation learning, Proximal Policy Optimization (PPO), and Monte Carlo Tree Search (MCTS) to optimize branching policies.

1. State Representation via Graph Convolutional Neural Networks

To handle optimization problems of varying sizes and structures, the framework represents the problem as a bipartite graph connecting variables to constraints. A Graph Convolutional Neural Network (GCNN) processes this graph, allowing the model to extract structural features and generalize across different problem instances.

2. Imitation Learning (Bootstrapping)

To overcome the "cold start" problem inherent in RL—where an agent initially explores randomly and inefficiently—the model is first trained using imitation learning. The agent learns to mimic the behavior of the Full Strong Branching (FSB) heuristic, providing a strong baseline policy before entering the RL phase.

3. RL Fine-tuning with PPO

Once bootstrapped, the agent is refined using Proximal Policy Optimization (PPO). Unlike supervised learning, which seeks to match a label, the RL agent learns from the consequences of its actions. The reward function is specifically engineered to favor branching decisions that improve the "dual bound" (the mathematical limit on the best possible solution) as quickly as possible, directly optimizing for search tree reduction.

4. Policy Enhancement with MCTS

The framework incorporates a look-ahead mechanism inspired by Monte Carlo Tree Search (MCTS). During training, this allows the agent to simulate several steps into the future to verify if a specific branching decision leads to a smaller search tree. This look-ahead acts as a "teacher," providing the RL agent with a deeper understanding of the long-term impacts of its decisions.

Experimental Evaluation

The framework was evaluated against four classic NP-hard problem categories using the SCIP solver backend and the ecole RL environment:

  • Set Covering
  • Combinatorial Auction
  • Capacitated Facility Location
  • Maximum Independent Set

Key Results and Insights

The PPO-MCTS approach demonstrated significant advantages over both traditional heuristics and standard supervised models:

  • Substantial Speedups: In the Set Covering task, the PPO-MCTS agent solved instances in an average of 3.13 seconds, compared to 95.8 seconds for the expert FSB heuristic. This represents a massive reduction in wall-clock time while maintaining exact optimality.
  • Node Efficiency: The agent consistently produced smaller search trees. In Capacitated Facility Location, the PPO-MCTS agent visited approximately 863 nodes, whereas a standard PPO agent without MCTS refinement required 2,202 nodes.
  • Generalization and Flexibility: By using RL instead of SL, the model is not tethered to pre-computed optimal labels. The bipartite GCNN architecture further ensures that the model remains robust across different problem sizes and types.

Limitations and Future Work

Despite its performance, the framework faces challenges regarding training complexity. The multi-stage pipeline (IL, PPO, and MCTS) is computationally intensive and requires significant time to converge. Additionally, in problems with extremely high branching factors (e.g., over 1,000 candidates), the agent may occasionally settle for local improvements rather than the global optimum.

Future research may expand this RL approach beyond variable selection to include node selection—deciding which part of the search tree to explore next—potentially leading to a fully learned, end-to-end Branch-and-Bound solver.

Summary updated

BibTeX
@inproceedings{zhang2022deep,
  author = {Tianyu Zhang and Amin Banitalebi-Dehkordi and Yong Zhang},
  title = {{Deep Reinforcement Learning for Exact Combinatorial Optimization: Learning to Branch}},
  booktitle = {ICPR},
  year = {2022},
  doi = {10.1109/icpr56361.2022.9956256},
}
Figure