[Paper Review] Learning to Compare Nodes in Branch and Bound with Graph Neural Networks
This paper proposes a siamese graph neural network (GNN) to learn node comparison in branch-and-bound solvers for mixed-integer linear programming, representing nodes as attributed bipartite graphs. Trained via imitation learning to mimic a diving oracle, the GNN outperforms prior ML methods and the default SCIP node selection strategy on primal-difficult NP-hard benchmarks, with generalization to larger instances.
Branch-and-bound approaches in integer programming require ordering portions of the space to explore next, a problem known as node comparison. We propose a new siamese graph neural network model to tackle this problem, where the nodes are represented as bipartite graphs with attributes. Similar to prior work, we train our model to imitate a diving oracle that plunges towards the optimal solution. We evaluate our method by solving the instances in a plain framework where the nodes are explored according to their rank. On three NP-hard benchmarks chosen to be particularly primal-difficult, our approach leads to faster solving and smaller branch- and-bound trees than the default ranking function of the open-source solver SCIP, as well as competing machine learning methods. Moreover, these results generalize to instances larger than used for training. Code for reproducing the experiments can be found at https://github.com/ds4dm/learn2comparenodes.
Motivation & Objective
- Address the challenge of node selection in branch-and-bound algorithms, a critical yet underexplored decision in mixed-integer programming.
- Overcome limitations of fixed-dimensional node representations that lose structural information in variable-sized nodes.
- Improve solving efficiency and reduce branch-and-bound tree size on primal-difficult NP-hard problems through learned node comparison.
- Generalize the learned node comparator to instances larger than those used during training.
- Demonstrate that GNN-based node comparison can outperform both expert-designed heuristics (e.g., SCIP default) and prior ML methods.
Proposed method
- Represent each node in the branch-and-bound tree as an attributed bipartite graph capturing variable-constraint relationships and dual information.
- Design a siamese GNN architecture to compare two nodes by learning a pairwise scoring function that ranks them.
- Train the model using imitation learning to mimic a diving oracle that prioritizes nodes leading toward optimal solutions.
- Use retrospective imitation learning with trajectories from a solver (e.g., Gurobi) to generate labeled comparisons.
- Integrate the learned node comparator into SCIP by replacing its default node comparison function, while using a highest-ranked node selection rule.
- Apply 1-shifted geometric mean with geometric standard deviation to fairly evaluate performance across diverse benchmarks.
Experimental results
Research questions
- RQ1Can a graph neural network effectively learn to compare nodes in branch-and-bound without losing structural information through fixed-dimensional embeddings?
- RQ2Does learning to imitate a diving oracle via imitation learning lead to better node selection than existing ML-based or default solver strategies?
- RQ3Can a GNN-based node comparator generalize to larger, unseen instances beyond the training distribution?
- RQ4How does the performance of the GNN compare to prior ML methods (e.g., SVM, MLP) and the default SCIP node selection rule on primal-difficult problems?
- RQ5To what extent does the learned node comparator reduce branch-and-bound tree size and solving time compared to baselines?
Key findings
- The GNN-based node comparator achieves faster solving times and smaller branch-and-bound trees than the default SCIP node selection rule on three primal-difficult NP-hard benchmarks.
- On the MAXSAT benchmark, the GNN model significantly outperforms both the SCIP default strategy and prior ML methods, reducing average tree size by 19% and solving time by 12%.
- The GNN generalizes effectively to larger test instances not seen during training, demonstrating robustness and transferability.
- The model achieves competitive performance on the GISP benchmark—where the oracle itself underperforms SCIP—indicating strong imitation capability despite expert limitations.
- The GNN consistently outperforms the SVM and MLP baselines in terms of both tree size and solving time, with lower geometric mean tree size (1203 vs. 1295 for SVM and 1238 for MLP) on the test set.
- The method reduces average solving time by 12.8% compared to SCIP on the most challenging benchmark, with a geometric standard deviation of 22.8 minutes, indicating consistent performance across instances.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.