Exact solvers for mixed-integer linear programs (MILPs, optimization problems with linear constraints in which some variables must take integer values) work by branch-and-bound. They repeatedly split the problem on one fractional variable and solve the two smaller pieces. Which variable they split on largely determines how big the search tree grows. Learned branching policies, usually graph neural networks (GNNs) that pass messages between variable nodes and constraint nodes, can shrink the tree. They are caught between two walls. Ordinary message-passing GNNs provably cannot tell apart certain structurally symmetric variables that the expensive "strong branching" rule treats very differently. The higher-order GNNs that fix this cost time quadratic in problem size. Meanwhile, even ordinary GNNs are often too slow to pay off inside a CPU solver.
We propose to pay the quadratic cost exactly once per instance. A higher-order teacher runs a single pass on the static constraint structure at the root, and the pairwise information it extracts is distilled into a fixed per-variable embedding. A linear-time student then makes every branching decision deeper in the tree from that frozen embedding plus cheap per-node features. The bet is specific and testable. What first-order models miss is mostly a property of the unchanging constraint matrix. What changes as the tree is explored, such as variable bounds and the current linear-relaxation solution, can be read cheaply from per-variable features, and these features themselves break symmetry as branching proceeds.
Core Claim
Rethinking the Capacity of Graph Neural Networks for Branching Strategy proves two things. First, message-passing GNNs are bounded by the 1-Weisfeiler-Lehman test, a classic colour-refinement procedure that cannot separate some non-identical nodes. As a result they assign identical scores to variables whose strong-branching labels differ on "non-MP-tractable" MILPs. Second, a second-order folklore GNN (2-FGNN), which passes messages over pairs of nodes, approximates strong branching universally. It reaches $10^{-12}$ error on counter-examples where message passing stays flat. That paper supplies the teacher and the theoretical motivation. It leaves the cost unresolved: pairwise message passing is $O(N^2)$ per call. Distributional MIPLIB already shows that a cheaper first-order graph network can lose to plain SCIP on wall-clock quality. On Optimal Transmission Switching Easy, the learned model's primal-dual integral was 27.9 against SCIP's 20.0, because inference overhead outweighed the nodes it saved.
Our claim is that the expressiveness gap is concentrated near the root of the tree. There, the linear-relaxation solution is often itself symmetric and bound changes have not yet broken ties. If so, a one-shot 2-FGNN embedding combined with a linear-time student recovers most of the 2-FGNN's decision quality at roughly first-order per-node cost. This differs from the symbolic route of Symb4CO and GS4CO. Those methods discard neural teachers and search for formulas over hand-crafted scalar features plus neighbourhood aggregations, so they inherit the first-order expressiveness ceiling by construction. It also differs from edge-free distillation such as PGKD, which compresses a GNN into a multi-layer perceptron (MLP) for standard node classification. PGKD moves information from a first-order teacher into a weaker student. We move information from a strictly more expressive teacher, and we exploit the time structure of branch-and-bound to decide where that information must be refreshed.
Research Program
The first step is diagnostic, and the project's direction depends on it. Across the classic families from Exact Combinatorial Optimization with Graph Convolutional Neural Networks and the Distributional MIPLIB distributions, we will collect strong-branching labels at every node of sampled trees. At each node we run colour refinement on the node's bipartite graph, with current bounds and the relaxation solution as features. We then count "conflicts": pairs of candidate variables that share a colour but whose strong-branching scores differ beyond a tolerance. We report conflict rate as a function of depth and of hardness level. This measures directly, rather than through training loss, how often first-order models are doomed to be wrong in realistic instances. The original capacity paper reported near-zero loss on its MP-tractable datasets, so this measurement is a genuine risk for the project.
The second step builds the system. The teacher is a 2-FGNN trained offline on strong-branching scores at sampled nodes. Training cost is acceptable here because it is never paid at solve time. At the root of a new instance, the teacher runs once and pools its pair representations into a per-variable vector $z_j$. The student $s_\theta$ scores variable $j$ at node $t$ from $z_j$ and the per-node features $x_{j,t}$ (bounds, relaxation value, reduced cost, pseudocosts). It is either a small MLP or a single cheap message-passing layer, so it is linear in problem size. It is trained with
$$ \mathcal{L}(\theta) = \mathrm{KL}\big(\mathrm{softmax}(f_T(t)/\tau)\,\|\,\mathrm{softmax}(s_\theta(z, x_t)/\tau)\big) + \lambda\, \mathrm{CE}\big(y^{SB}_t, s_\theta(z, x_t)\big), $$
where $f_T(t)$ are the teacher's full scores at node $t$, $\tau$ is a softening temperature, $y^{SB}_t$ is the strong-branching choice, and $\lambda$ balances the two terms. The soft term transfers the teacher's ranking among runner-up variables. Lookback for Learning to Branch found such runner-up information valuable: a child's best variable is often the parent's second-best, and exploiting this cut tree size by up to 22%.
The third step adds an optional refresh rule. Within a time budget, the teacher is re-run at a node whenever the student's top scores among same-coloured candidates are near-tied. This tests whether a small number of targeted refreshes buys back the remaining gap. The whole student and embedding table is exported to C++ inside SCIP, so per-node inference runs on CPU.
Baselines
The naive reference is SCIP's default reliability pseudocost branching, run single-threaded with identical time limits and settings. On hard Set Covering, Gasse et al. report about 5,511 nodes for this default against about 5,169 for their bipartite GCNN. On OTS Easy, Distributional MIPLIB reports a primal-dual integral of 20.0 for default SCIP. Any learned method that cannot beat 20.0 there in wall-clock terms has not solved the inference problem.
The strongest neural competitor is the first-order bipartite GCNN of Gasse et al. We will also run its Lookback-regularized variant, for which the paper reports up to 22% fewer nodes and up to 15% faster solves. All neural models get the same training instances, the same strong-branching label budget, and the same hyperparameter search budget. They are timed on the same CPU-only machine, with an additional GPU run reported separately.
The strongest cheap competitor is Symb4CO. It reports per-decision latency under 0.1 ms on one CPU core, against 1.7 to 3.2 ms for GNNs, and it trains from about 10 instances. GS4CO reports policies 500 times smaller and 20 times faster on CPU than GNNs. We will use their released formulas or retrain them on our families. We also include the full 2-FGNN run at every node as an accuracy ceiling. We know of no reported result on Lacuna for 2-FGNN branching inside a full solver, so we will measure it.
The key ablation replaces the 2-FGNN root embedding with a root embedding from a first-order GNN of matched parameter count. This isolates whether gains come from higher-order information or merely from having a root embedding. Beating the baselines means two things. First, strictly better primal-dual integral or solve time than both the GCNN and Symb4CO on families where the diagnostic finds non-trivial conflict rates. Second, no worse than the GCNN on families where it finds none.
Why not just…?
Why not just add random node features to a first-order GNN to break symmetry? Random identifiers make variables distinguishable, but they say nothing about which variable strong branching prefers. The model must memorize mappings that do not transfer across instances. This is a plausible threat, and we have no cited evidence settling it. We therefore include a random-feature GCNN, trained under the same budget, as a baseline on both the counter-example set and the real families. If it matches our student, the higher-order teacher is unnecessary and we will say so.
Why not just use a first-order GNN, since real instances may be mostly MP-tractable? This is the most serious objection. Chen et al. themselves report near-zero training loss on MP-tractable data and $1.94\times10^{-4}$ on 1,000-variable set cover. The depth-resolved conflict diagnostic exists to answer this before any system is built. If conflicts are negligible everywhere, the proposal narrows to a latency study. In that case the higher-order teacher is dropped, and the contribution becomes the conflict measurement itself, which is still a useful negative result.
Why not just discover a symbolic formula with Symb4CO or GS4CO? Their speed is excellent, and they will win wherever expressiveness does not matter. But their feature sets of 19 variable and 5 constraint features, and their mean, min, max and sum neighbourhood operators, are all invariant under colour refinement. They therefore cannot separate same-coloured variables that strong branching splits. The comparison on conflict-rich families will show whether this ceiling bites in practice.
Why not just run the 2-FGNN at the root and use pseudocost branching below? This is a fair hybrid, and we include it as a baseline. Our prediction is that it captures root decisions but forgoes the teacher's runner-up ranking deeper in the tree. If it matches the distilled student, the distillation step adds nothing beyond root branching.
Proposed Experiments
The decisive checks come in order. On the counter-example pairs from Chen et al., the student with a 2-FGNN embedding should approach 2-FGNN imitation accuracy, while the first-order-embedding ablation should stay at the first-order error level. If both fail, root-only embeddings cannot carry pairwise structure, and the idea is wrong.
On Set Covering, Combinatorial Auctions, Capacitated Facility Location, Maximum Independent Set, and the Distributional MIPLIB distributions including OTS, we report three groups of measurements:
- imitation accuracy against strong branching, split by depth;
- tree size, solve time and primal-dual integral against the baselines above;
- per-node CPU latency, plus the one-off root cost as a fraction of total solve time.
The depth-resolved conflict rate from the diagnostic should predict, family by family, where the student beats the GCNN. If gains appear on families with no conflicts, they come from something other than expressiveness, and the ablation will reveal it. Finally, we test generalization to the larger hardness levels, where Gasse et al. observed first-order policies degrading. There we check whether the quadratic root pass remains affordable, using a sparsified variant restricted to variable pairs that share a constraint if needed.
References
- Rethinking the Capacity of Graph Neural Networks for Branching Strategy
- Distributional MIPLIB: a Multi-Domain Library for Advancing ML-Guided MILP Methods
- Rethinking Branching on Exact Combinatorial Optimization Solver: The First Deep Symbolic Discovery Framework
- Towards General Algorithm Discovery for Combinatorial Optimization: Learning Symbolic Branching Policy from Bipartite Graph
- Edge-free but Structure-aware: Prototype-Guided Knowledge Distillation from GNNs to MLPs
- Exact Combinatorial Optimization with Graph Convolutional Neural Networks
- Lookback for Learning to Branch