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

A Markov Decision Process for Variable Selection in Branch & Bound

Paul Strang, Zacharie Ales, Côme Bissuel, Olivier Juan, Safia Kedad-Sidhoum, Emmanuel Rachelson

Abstract

Variable selection is a critical component of the Branch and Bound (B&B) algorithm used to solve Mixed-Integer Linear Programming (MILP) problems. While Reinforcement Learning (RL) offers a promising path toward learning optimal branching policies, previous formulations—specifically the "TreeMDP"—violate the Markov property, limiting the application of standard RL techniques. This paper introduces the Branch and Bound Markov Decision Process (BBMDP), a mathematically rigorous framework that treats the entire B&B tree as the state. By leveraging Depth-First Search (DFS) properties, BBMDP enables the use of advanced RL methods like multi-step temporal difference learning. Our resulting agent, DQN-BBMDP, achieves state-of-the-art performance, reducing solving time by 38% over previous RL methods and outperforming default solver heuristics on multiple benchmarks.

1. Introduction

Mixed-Integer Linear Programming (MILP) is essential for solving NP-hard combinatorial optimization problems in logistics, scheduling, and resource management. The standard approach, Branch and Bound (B&B), explores a search tree where the choice of which variable to branch on at each node significantly impacts the tree size and total solving time. Traditionally, these choices are made using human-engineered heuristics.

Recent research has pivoted toward using Reinforcement Learning (RL) to learn these heuristics from data. However, a fundamental theoretical hurdle has persisted: the "TreeMDP" formulation. In TreeMDP, a branching action at a single node results in two child nodes, creating a branching transition that breaks the standard sequential Markov property. This inconsistency prevents the seamless integration of powerful, off-the-shelf RL algorithms.

2. The BBMDP Framework

To resolve the theoretical flaws of TreeMDP, we propose the Branch and Bound Markov Decision Process (BBMDP). The core innovation lies in the definition of the state and the exploitation of search order.

2.1 State Representation

Unlike previous models that treat an individual node as the state, BBMDP defines the state as the entire B&B tree at any given time step. This shift ensures that transitions are sequential: an action (branching on a variable) transforms the current tree into a new tree.

2.2 The DFS Property

A key challenge in treating the tree as a state is the complexity of the transition dynamics. We demonstrate that if the solver employs a Depth-First Search (DFS) node selection policy, the size of any resulting subtree depends exclusively on the branching decisions made within that specific subtree. This isolation allows for the formulation of a standard Bellman optimality equation, providing a solid mathematical foundation for calculating multi-step returns and credit assignment.

3. Implementation: DQN-BBMDP and HL-Gauss Loss

With a rigorous MDP established, we implement DQN-BBMDP, a Deep Q-Network agent. The transition to a true MDP allows for the use of $k$-step temporal difference (TD) learning, which was previously mathematically inconsistent in the TreeMDP framework.

Furthermore, predicting the total number of nodes in a B&B tree is difficult due to high variance; tree sizes can span several orders of magnitude. To address this, we replace standard mean-squared error regression with Histogram Gaussian (HL-Gauss) loss. This approach treats value estimation as a classification task over logarithmic bins, representing a categorical distribution of potential tree sizes. This modification significantly stabilizes the training process and improves the accuracy of the value function.

4. Experimental Evaluation

We evaluated DQN-BBMDP using the SCIP solver and the Ecole library across four standard MILP benchmarks: Set Covering, Combinatorial Auctions, Maximum Independent Set, and Multiple Knapsack. The agent was trained on standard instances and tested on both same-sized instances and larger "transfer" instances to evaluate out-of-distribution generalization.

4.1 Results

DQN-BBMDP established a new state-of-the-art for RL-based branching:

  • Efficiency: Compared to the previous leading RL agent (DQN-Retro), our method achieved a 27% reduction in total B&B nodes and a 38% reduction in solving time.
  • Solver Comparison: DQN-BBMDP outperformed the highly optimized default SCIP branching heuristic on three out of four benchmarks.
  • Generalization: The agent demonstrated superior robustness when transferred to larger, more complex problem instances compared to prior RL baselines.

5. Discussion and Future Work

The BBMDP framework demonstrates that theoretical rigor in environment modeling leads to significant engineering gains. By fixing the underlying math, we unlocked the potential of standard RL techniques like $k$-step returns and distributional value estimation.

While DQN-BBMDP represents a major step forward, challenges remain. Specifically, Imitation Learning (IL) agents still show better generalization to massive instances because they mimic expert behavior rather than predicting absolute tree sizes. Future work will explore the integration of Monte Carlo Tree Search (MCTS) within the BBMDP framework and the application of this approach to other B&B decisions, such as cut selection and primal search.

Summary updated

BibTeX
@inproceedings{strang2025markov,
  author = {Paul STRANG and Zacharie ALES and Côme Bissuel and Olivier Juan and Safia Kedad-Sidhoum and Emmanuel Rachelson},
  title = {{A Markov Decision Process for Variable Selection in Branch \& Bound}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=05Svr0k5C9},
}
Figure