Reinforcement Learning for Branch-and-Bound Optimisation Using Retrospective Trajectories

Christopher W. F. Parsonson, Alexandre Laterre, Thomas D. Barrett

Training Reinforcement Learning (RL) agents to solve complex combinatorial optimization problems has long been hindered by "long-horizon" episodes and partial observability. This paper introduces retro branching, a method that retrospectively deconstructs a solved search tree into shorter, more predictable trajectories. This allows RL agents to learn high-quality branching heuristics from scratch—without expert labels—outperforming previous RL methods by 3–5× and rivaling state-of-the-art imitation learning.

The Challenge of Learning to Branch

Many real-world problems, from logistics to protein folding, are modeled as Mixed Integer Linear Programs (MILPs). The standard way to solve these is the Branch-and-Bound (B&B) algorithm, which builds a search tree by repeatedly splitting the problem into smaller sub-problems ("branching").

The efficiency of B&B depends heavily on the branching heuristic—the rule that decides which variable to split next. While hand-crafted heuristics exist, researchers want to use Machine Learning to "learn" better ones. Currently, Imitation Learning (IL) is the gold standard, but it requires expensive "expert" data. Reinforcement Learning (RL) is the ideal alternative because it learns by trial and error, but it typically fails due to long episodes, sparse rewards, and the partial observability caused by the solver jumping between different branches.

Retro Branching: Learning from the Past

The authors propose retro branching to fix the RL training pipeline. Instead of training the agent "live" as it explores a tree, they follow a three-step process:

  1. Solve First: Solve the MILP instance completely using the current agent and a standard B&B solver.
  2. Retrospective Deconstruction: Take the resulting search tree and break it down into multiple "retrospective trajectories." Each trajectory is a single path from a node down to a "fathomed" leaf (a part of the tree that is fully explored).
  3. Train on Paths: The agent learns from these shorter, localized paths.
Deconstruction of a solved search tree into retrospective trajectories.

By focusing on paths within a single sub-tree, the environment becomes much more "observable"—the consequences of a branching decision are visible in the immediate next states of that sub-path. The agent uses a Graph Convolutional Network (GCN) to represent the MILP state and trains it using n-step DQN with a simple reward of -1 for every step taken, incentivizing the agent to find the solution as quickly as possible.

Experimental Setup

The approach was evaluated on four classic NP-hard combinatorial optimization benchmarks: Set Covering, Combinatorial Auction, Capacitated Facility Location, and Maximum Independent Set. The authors tested on both small instances and large-scale problems (up to 500 constraints and 1,000 variables).

Key Results and Insights

Retro branching achieved a 3–5× reduction in the number of nodes required to solve problems compared to FMSTS (the previous state-of-the-art RL branching method). On large set-covering problems, the RL agent came within 20% of the performance of the best IL methods without ever seeing an "expert" move. On smaller instances, the RL agent actually outperformed the IL agent by ~20%, discovering policies superior to the experts it's usually asked to imitate.

Performance comparison showing node reduction over training epochs and solution probability.

The core "aha" moment is sub-tree stability: while the global B&B tree is chaotic, the behavior within a sub-tree is highly predictable. By forcing the agent to learn from sub-tree paths, the "noise" caused by the solver jumping to unrelated parts of the tree is eliminated. This also improves credit assignment, as shorter trajectories make it easier for the RL algorithm to identify which branching decisions led to a smaller tree. Finally, retro branching works regardless of the "node selection" strategy (like DFS or BFS), making it flexible for real-world solvers like SCIP.

Limitations and Future Work

While retro branching is a major advancement, IL still holds a lead on the very largest MILP instances, likely due to exploration issues. Future work could involve more sophisticated rewards (perhaps using "retrospective backpropagation") or learning a joint policy that controls both branching and node selection.

Summary updated

BibTeX
@inproceedings{parsonson2023reinforcement,
  author = {Christopher W. F. Parsonson and Alexandre Laterre and Thomas D. Barrett},
  title = {{Reinforcement Learning for Branch-and-Bound Optimisation Using Retrospective Trajectories}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i4.25521},
}
Figure