Learning to Select Nodes in Branch-and-Bound via Tree-Aware Contrastive Learning
Authors:
- Tengfei LiuTLTengfei Liu
- Jinrun LiuJLJinrun Liu
- Bai YanBYBai Yan
- Qi ZhaoQZQi Zhao
- Yuhui ShiYSYuhui Shi
Preprint
- 23 June 2026
- preprint
- Published by Elsevier in SSRN Electronic Journal
Abstract
Node selection critically affects the efficiency of branch-and-bound (BnB) for mixed-integer linear programming (MILP). Existing learning-based methods usually score active nodes independently, which ignores the hierarchical search structure and often leads to policies that rely on scale-dependent cues. We propose TreeCL, a tree-aware contrastive learning framework that reformulates node selection as learning structural relations between candidate nodes and their ancestral context. TreeCL is based on an intrinsic property of BnB, termed optimal-path consistency: if a globally optimal solution remains feasible at a descendant node, it must also remain feasible at all its ancestors. This property enables principled supervision from BnB trajectories by contrasting on-path and off-path nodes with respect to their lowest common ancestor. The resulting similarity function supports efficient node comparison and can be integrated into standard BnB execution. We further introduce a branching-sequence-based augmentation strategy to improve sample efficiency under limited expert supervision. Experiments on multiple MILP benchmarks show that TreeCL reduces explored nodes and improves solving time compared with heuristic and learning-based baselines. It also transfers more robustly to larger instances and improves solution quality on real-world datasets.Keywords
This publication has 18 references indexed in Scilit:
- Molecular contrastive learning of representations via graph neural networksNature Machine Intelligence, 2022
- Machine learning for combinatorial optimization: A methodological tour d’horizonEuropean Journal of Operational Research, 2021
- WPM3: An (in)complete algorithm for weighted partial MaxSATArtificial Intelligence, 2017
- The generalized independent set problem: Polyhedral analysis and solution approachesEuropean Journal of Operational Research, 2017
- Applications of Combinatorial Optimization2014
- A MILP model for integrated plan and evaluation of distributed energy systemsApplied Energy, 2010
- Mixed Integer Linear Programming in Process Scheduling: Modeling, Algorithms, and ApplicationsAnnals of Operations Research, 2005
- On the facets of the mixed?integer knapsack polyhedronMathematical Programming, 2003
- Experiments in mixed-integer linear programmingMathematical Programming, 1971
- A tree-search algorithm for mixed integer programming problemsThe Computer Journal, 1965