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.

This publication has 18 references indexed in Scilit: