Learning to Branch in Combinatorial Optimization with Graph Pointer Networks

Rui Wang, Zhiming Zhou, Kaiwen Li, Tao Zhang, Ling Wang, Xin Xu, Xiangke LiaoIEEE CAA J. Autom. Sinica 2023

TL;DR

This paper introduces a Graph Pointer Network (GPN) to learn optimal branching strategies for Branch-and-Bound (B&B) algorithms in combinatorial optimization. By combining graph neural networks with a pointer mechanism and leveraging imitation learning on expert rules, their GPN significantly outperforms traditional and existing machine learning approaches in terms of solving speed and search tree size.

What Problem Does This Paper Address?

Combinatorial optimization problems, like those found in manufacturing and logistics, are notoriously difficult to solve optimally. The Branch-and-Bound (B&B) algorithm is a common exact method, but its efficiency heavily relies on making good decisions at each step, particularly which variable to "branch" on to split the problem space. Traditional B&B uses hand-crafted heuristics for branching, which are often problem-specific and require extensive expert knowledge. While machine learning has been applied to learn these heuristics, challenges remain in effectively representing the B&B solver's state and mapping it to optimal branching decisions. This paper aims to bridge this gap by developing a data-driven approach to learn these crucial branching strategies.

Methods

The core of this work is a novel Graph Pointer Network (GPN). The GPN models the B&B process as a Markov Decision Process. To represent the solver's state, the authors go beyond standard graph features by incorporating global features (e.g., optimality gap, search tree depth) and historical features (e.g., past branching decisions, variables whose values have changed).

The GPN architecture has two main components:

  1. Graph Neural Network (GNN): This part encodes the problem's bipartite graph structure (variables and constraints) and their relationships, producing rich feature representations for each variable.
  2. Pointer Mechanism: This component uses an attention mechanism. It takes the GNN's variable features as "keys" and a query derived from the global and historical features. This allows the model to "point" to the most promising variable for branching by outputting a probability distribution over candidate variables.

The model is trained using imitation learning, specifically by mimicking the "strong branching" (SB) heuristic, which is known for its effectiveness but computational expense. A novel top-k Kullback-Leibler (KL) divergence loss function is introduced. This loss encourages the model's predicted branching probabilities to match the SB score distribution, with a special emphasis on the top-k most likely branching variables to improve training efficiency and focus.

Datasets

The paper evaluates its approach on three benchmark combinatorial optimization problems:

  • Set Covering Problem: Trained on 500-row instances, evaluated on 500 and 1000-row instances.
  • Capacitated Facility Location Problem: Trained on instances with 100 customers, evaluated on 100 and 200 customers.
  • Maximum Independent Set Problem: Trained on instances with 500 nodes, evaluated on 500 and 1000 nodes.

The training data is generated by running the SCIP solver with a mix of reliability branching (95%) and strong branching (5%), collecting samples only from the SB decisions. This results in a large dataset of state-action pairs and SB scores.

Key Insights and Ideas

  • Beyond Graph Structure: Simply encoding the graph structure of a MILP is insufficient. Incorporating global and historical solver state information significantly enhances the model's ability to make informed branching decisions.
  • GNN + Pointer = Power: The combination of GNNs for feature extraction and a pointer mechanism for decision-making proves highly effective for learning complex branching policies.
  • Targeted Imitation Learning: The top-k KL divergence loss is a clever way to make imitation learning more efficient by focusing on the most relevant expert decisions, rather than trying to perfectly mimic every low-probability action.
  • Generalization is Key: The trained GPN model demonstrates strong generalization capabilities, performing well on unseen instances and even larger problem sizes than those used for training.

Key Results

The proposed GPN model consistently outperforms existing methods:

  • Accuracy: The GPN achieves the highest accuracy (acc@1, acc@5, acc@10) across all three test problems compared to traditional heuristics (PB, RB, SB) and other machine learning methods (TREES, SVMRANK, LMART, GNN). For instance, on the maximum independent set problem, GPN's acc@1 is 63.2%, significantly higher than GNN's 56.5%.
  • Solving Speed and Search Tree Size: The GPN-based B&B algorithm achieves substantial improvements in solving time and reduces the number of explored nodes. For set covering, it offers at least a 40% increase in solution speed. On maximum independent set, it nearly halves the solving time and reduces nodes by 20% compared to GNN.
  • Efficiency: While strong branching (SB) produces the smallest search trees, its high computational cost per decision makes its overall solving time inferior to the GPN, which balances decision quality with speed.

Limitations and Future Work

  • Imitation Learning Focus: The current work relies on imitation learning to mimic expert rules. The authors suggest exploring reinforcement learning to further improve the models and potentially discover novel branching strategies beyond expert heuristics.
  • Problem Scope: While tested on three benchmark problems, the authors propose investigating the GPN model on a wider range of combinatorial optimization problems in future work.
  • Computational Cost of SB: The paper acknowledges that while SB is effective, its computational cost is a bottleneck. The GPN aims to mitigate this by learning a faster approximation. However, the initial data generation still relies on SB.

Summary updated

BibTeX
@article{wang2023learning,
  author = {Rui Wang and Zhiming Zhou and Kaiwen Li and Tao Zhang and Ling Wang and Xin Xu and Xiangke Liao},
  title = {{Learning to Branch in Combinatorial Optimization with Graph Pointer Networks}},
  journal = {IEEE CAA J. Autom. Sinica},
  year = {2023},
}
Figure