Lookback for Learning to Branch

Prateek Gupta, Elias Boutros Khalil, Didier Chételat, Maxime Gasse, Andrea Lodi, Yoshua Bengio, M. Pawan Kumar

Abstract

The expressive and computationally inexpensive bipartite Graph Neural Networks (GNN) have been shown to be an important component of deep learning based Mixed-Integer Linear Program (MILP) solvers. Recent works have demonstrated the effectiveness of such GNNs in replacing the branching (variable selection) heuristic in branch-and-bound (B&B) solvers. These GNNs are trained to imitate a very good but computationally expensive branching heuristic, strong branching. Given that B&B results in a tree of sub-MILPs, we ask (a) whether there are strong dependencies exhibited by the target heuristic among the neighboring nodes of the B&B tree, and (b) if so, whether we can incorporate them in our training procedure. Specifically, we find that with the strong branching heuristic, a child node's best choice was often the parent's second-best choice. We call this the "lookback" phenomenon. To imitate the target behavior more closely, we propose two methods: target smoothing and adding a Parent-as-Target (PAT) Lookback regularizer. Finally, we propose a model selection framework to incorporate harder-to-formulate objectives such as solving time. Our proposal results in up to 22% decrease in the size of the B&B tree and up to 15% improvement in solving times.

Introduction

Mixed-Integer Linear Programming (MILP) is a cornerstone of operations research, used to solve NP-hard optimization problems in logistics, energy, and scheduling. The standard approach to solving MILPs is the Branch-and-Bound (B&B) algorithm, which recursively partitions the search space into a tree of sub-problems. A critical decision in this process is variable selection (branching): choosing which variable to split on at each node to prune the search tree most effectively.

While Strong Branching (SB) is the most effective heuristic for minimizing tree size, its high computational cost makes it impractical for real-time use. Recent advances have leveraged Graph Neural Networks (GNNs) to imitate SB, providing high-quality branching decisions at a fraction of the cost. However, existing GNN approaches typically treat each node in the B&B tree as an independent data point, ignoring the rich structural dependencies inherent in the tree.

The Lookback Phenomenon

This research identifies a structural dependency called the "lookback" phenomenon. Empirical analysis of the SB heuristic reveals that the variable ranked as the second-best choice at a parent node is frequently the optimal choice for its children.

Lookback frequency distributed by tree depth deciles.

As shown in Figure 2, this property is not limited to the root of the tree but persists across various depths. Standard GNNs often fail to capture this simple relationship, leading to suboptimal branching decisions that could have been predicted by simply "looking back" at the parent's state.

Proposed Methods: PAT and Target Smoothing

To incorporate the lookback phenomenon into GNN training, the authors propose two primary techniques:

  1. Parent-As-Target (PAT) Regularizer: This method introduces a loss term that encourages the GNN's predictions at a child node to align with the scores assigned to those same variables by the parent node. This acts as a form of structural distillation, forcing the model to recognize the genealogical link between nodes.
  2. Target Smoothing: Instead of using a hard one-hot target for the best variable, this approach distributes probability mass to the second-best variables during training. This softens the learning signal and acknowledges that the "runner-up" variables at one level are highly likely to be the "winners" at the next.

Additionally, the paper introduces a Time-Aware Model Selection framework. Traditional validation accuracy is often a poor proxy for solver performance; a single mistake early in the search tree can lead to exponential growth in solving time. By selecting models based on actual solving times and node counts on medium-sized instances, the researchers ensure that the chosen models translate directly to solver efficiency.

Experimental Results

The proposed GNN-PAT method was evaluated across four benchmark problem families: Combinatorial Auctions, Set Cover, Capacitated Facility Location, and Maximum Independent Set. Models were trained on small instances and evaluated on significantly larger ones to test generalization.

Performance metrics and lookback frequency across problem domains.

As illustrated in Figure 1, the lookback condition is prevalent across all domains, most notably in Maximum Independent Set (indset). The GNN-PAT model consistently outperformed vanilla GNNs, achieving:

  • Up to a 22% reduction in the number of nodes in the B&B tree.
  • Up to a 15% improvement in total solving times.
  • Higher success rates in solving instances to optimality within fixed time limits compared to standard GNNs and tuned industry baselines.

Conclusion

By identifying and exploiting the lookback phenomenon, this work bridges the gap between static imitation learning and the dynamic nature of branch-and-bound search. The combination of the PAT regularizer and time-aware model selection provides a robust framework for developing faster, more efficient MILP solvers. Future work may extend these concepts to "sibling" dependencies or multi-generational lookbacks to further refine the search process.

Summary updated

BibTeX
@article{gupta2022lookback,
  author = {Prateek Gupta and Elias Boutros Khalil and Didier Chételat and Maxime Gasse and Andrea Lodi and Yoshua Bengio and M. Pawan Kumar},
  title = {{Lookback for Learning to Branch}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=EQpGkw5rvL},
}
Figure