Research
Learning Branching Policies for MILPs with Proximal Policy Optimization
Learning Branching Policies for MILPs with Proximal Policy Optimization Overview Research area: Machine learning for combinatorial optimization, specifically reinforcement learning (RL) applied to bra
- arXiv
- 2511.12986
- Published
- 2025-11-17
- Authors
- Abdelouahed Ben Mhamed, Assia Kamal-Idrissi, Amal El Fallah Seghrouchni
AI summary
Learning Branching Policies for MILPs with Proximal Policy OptimizationOverview
Research area: Machine learning for combinatorial optimization, specifically reinforcement learning (RL) applied to branching decisions inside the Branch-and-Bound (B&B) algorithm for Mixed Integer Linear Programs (MILPs).
Technical level: Advanced. The paper assumes familiarity with MILP solvers, Proximal Policy Optimization, actor-critic architectures, and Transformer encoders, and it presents policy heads, gating mechanisms, and reward formulations in mathematical notation.
Scope: The paper introduces TGPPO, an on-policy RL framework that trains a branching-variable-selection policy directly from interactions with the SCIP solver, and evaluates it against imitation-learning and classical branching rules on a curated MIPLIB/CORAL benchmark.
What This Paper Is About
B&B is the dominant exact method for MILPs, but its exponential time complexity makes large instances expensive to solve, and the choice of which variable to branch on strongly affects how large the search tree becomes. Most recent learning-based branching policies are trained by imitation learning on expert heuristics, which tends to overfit the expert's short-horizon preferences and generalize poorly to structurally different or unseen instances. This paper instead formulates branching as a sequential decision-making problem and trains a policy with PPO, aiming for a branching rule that generalizes across heterogeneous MILP instances.
Key Contributions
-
A fully on-policy branching architecture (TGPPO) built on PPO's clipped-surrogate objective, which the authors argue mitigates off-policy estimation bias and allows stable training directly on solver-generated trajectories without imprinting from hand-crafted expert traces.
-
A permutation-equivariant Tree-Gate Transformer that conditions attention and the final reduction via multiplicative gates driven by local tree statistics, designed to handle the variable-sized candidate sets that arise at each B&B node.
-
A throughput-oriented design using a lightweight encoder and a batched rollout engine, intended to keep wall-clock times competitive without resorting to heavy Monte Carlo Tree Search or Graph Neural Network modules.
-
An evaluation protocol using nested cross-validation with a dual criterion — explored nodes for runs completed within a 1-hour budget, and the Primal-Dual Integral (PDI) otherwise — capturing both rapid completion and anytime progress.
Main Findings
-
Dominance over the prior state-of-the-art learner: TGPPO improves over T-BranT on 78.8% of test instances by number of explored nodes (Nnodes) and on 90.62% by PDI. The paper's own summary of findings states that TGPPO surpasses prior learning-based branchers on 72% of test instances in fewer nodes.
-
Dominance over other learning branchers: TGPPO dominates Brant, LtBrant, and Tree on roughly 73% of instances by Nnodes and approximately 69–72% by PDI.
-
Comparison to classical rules: PSCost is the most competitive hand-crafted rule (TGPPO wins 66.7% by Nnodes and 78.12% by PDI). Relpscost is harder to beat on nodes (18.2% win rate) but is still outperformed on PDI nearly half the time (46.87%). Against random branching, TGPPO wins 90.9% (Nnodes) and 93.75% (PDI).
-
Statistical testing on the easy subset (Nnodes): The Friedman omnibus test across the five learning policies is significant (χ² = 22.215, df = 4, p = 0.0001816). Nemenyi post-hoc p-values: Brant 0.0064, LtBrant 0.0027, Tree 0.0011 — all significant; T-BranT 0.5000, i.e. a statistical tie.
-
Statistical testing on the hard subset (PDI): The Friedman test is significant (χ² = 18.05, df = 4, p = 0.001207). Nemenyi post-hoc p-values: Brant 0.0026, LtBrant 0.0105, T-BranT 0.0046 (all significant); Tree 0.0557 (marginal).
-
Paired Wilcoxon directionality: On easy instances TGPPO wins on 24–26 of 33 instances with median node reductions of 80–142 and Holm-adjusted p ∈ [0.09, 0.11]. On hard instances it wins on 22–29 of 33 with median PDI reductions of 82–111 and adjusted p ≤ 0.0314.
-
Best reward signal found by search: Of the three candidate reward formulations (H1, H2, H3), the difficulty-adaptive H3 was selected as optimal by the hyper-parameter search.
-
Gap still remains: The authors state that a clear, quantified gap to expert-designed heuristics such as relpscost in SCIP still remains.
Methodology in Plain English
The researchers treat the solver's branching decisions as a game the agent plays repeatedly. At each node of the B&B tree, SCIP exposes three blocks of information: a table of features for each candidate variable (25 features per candidate), a vector of 8 current-node features, and a vector of 53 tree-level MIP features. These are projected into a shared hidden space by linear embeddings plus layer normalization.
Each candidate is concatenated with the tree context, then passed through an N-layer Transformer encoder that respects padding masks, so the model is permutation-equivariant over candidates — reordering the candidate list does not change the underlying decision. Following Lin et al. (2022), a bi-directional matching module then fuses tree information into the candidate representations via soft mutual attention and a gating combination.
The actor head reduces each refined candidate representation to a scalar logit using a hierarchical multi-layer perceptron whose hidden activations are multiplicatively gated by the tree vector; a softmax over those logits gives the branching policy. The critic head averages the masked candidate features, concatenates the tree vector, and passes the result through a two-layer MLP and the same tree-gated reduction to produce a scalar state value.
Training uses PPO with an actor-critic setup, Generalized Advantage Estimation, a clipped surrogate objective, a critic loss weighted by λ₁, and an entropy bonus weighted by λ₂ to encourage exploration. Rewards are instance-normalized using statistics obtained from SCIP's default relpscost rule so that easy and hard instances produce comparable credit signals.
Hyper-parameters were selected in Phase 1 using Optuna's TPE sampler under nested cross-validation with 5 outer and 2 inner folds, minimizing a composite score of 0.6 × SGM(Nnodes) + 0.4 × SGM(PDI), where SGM is a shifted geometric mean with a +100 shift. A median pruner stopped unpromising trials early. The selected configuration used actor learning rate 2.4 × 10⁻⁴, critic learning rate 1.2 × 10⁻⁴, hidden size 256, 5 Transformer layers, 8 attention heads, dropout 0.05, PPO clip coefficient 0.16, entropy bonus 3.0 × 10⁻³, γ = 0.97, λ_GAE = 0.92, mini-batch size 256, three optimization epochs per update, and reward H3.
In Phase 2 the policy was retrained for 500 complete episodes on the full set of 25 × 5 = 125 augmented problems, where the five independent SCIP seeds (0–4) act as solver-level data augmentation. Each episode is a full B&B run up to optimality or a 3600-second cutoff. Both networks use AdamW with β₁ = 0.9 and β₂ = 0.999, implemented in PyTorch and run on 40-core CPU nodes.
To isolate branching-variable selection, the experiments disable primal heuristics and provide the known optimal solution value as an initial cutoff, following standard BVS benchmarking practice.
Why This Matters
Impact on research: The paper tests whether fully on-policy RL — rather than imitation of strong branching — can produce branching policies that generalize better to out-of-distribution MILP instances. If the result holds up, it shifts the learning-to-branch literature away from expert distillation and toward direct interaction with the solver, and it provides a concrete architecture (tree-gated, permutation-equivariant) and evaluation protocol (dual node/PDI criterion with nested cross-validation) that other groups can adopt.
Real-world applications:
- Logistics and routing optimization, which the paper cites as a core MILP application domain.
- Energy systems planning, also cited as a foundational MILP use case.
- Set covering, facility location, combinatorial auctions, and scheduling models, which the paper names as the model families covered by its benchmark.
- Anytime decision support, where the PDI gains matter most: on hard instances that do not reach optimality within the one-hour budget, the policy makes more progress toward closing the gap.
Industry relevance: Commercial and open-source MILP solvers (Gurobi, SCIP) are used across operations research, supply chain, and finance. A learned branching rule that reduces nodes on easy instances and improves anytime progress on hard ones has direct value for solver vendors, but the authors are explicit that their protocol is a proof-of-concept: primal heuristics are disabled, optimal values are supplied as cutoffs, and full system-level wall-clock and memory benchmarking has not yet been done.
Future Directions
-
End-to-end solver integration. Re-enable primal heuristics, cuts, and default parameterizations to measure the net effect on wall-clock time, optimality gaps, and anytime behavior, and formulate training as a multi-objective problem balancing nodes, PDI, and time.
-
Richer representations. Add bipartite variable–constraint message passing or lightweight decision-diagram features, and add memory over partial subtrees to capture long-range dependencies without introducing heavy graph network stacks.
-
Data and compute efficiency. Explore offline pretraining on solver logs followed by on-policy fine-tuning (behavior cloning → PPO), and investigate advantage normalization, return decomposition, or truncated credit assignment for deep search trees.
-
Reward design and risk sensitivity. Systematically study difficulty-adaptive rewards and risk-sensitive objectives such as CVaR or quantile variants, to trade off mean performance against tail robustness on hard instances.
The authors also flag open threats to validity: the training set is small at the instance level and curated for comparability with prior work, reward shaping remains a sensitive design choice, and full deployment benchmarking on diverse hardware is still required.
Target Audience
This paper is most useful to researchers and practitioners in machine learning for combinatorial optimization, reinforcement learning, and operations research who are working on solver acceleration, learning-to-branch, or neural policies for structured decision problems. It will also interest engineers developing or tuning MILP solvers who want to know how a learned branching rule compares against classical heuristics like relpscost and pscost. Readers without a background in RL or MILP will find the methodology sections difficult, since the policy architecture, PPO objective, and reward formulations are presented in mathematical notation with details of the reward variants deferred to an appendix.
Authors’ abstract
Branch-and-Bound (B\&B) is the dominant exact solution method for Mixed Integer Linear Programs (MILP), yet its exponential time complexity poses significant challenges for large-scale instances. The growing capabilities of machine learning have spurred efforts to improve B\&B by learning data-driven branching policies. However, most existing approaches rely on Imitation Learning (IL), which tends to overfit to expert demonstrations and struggles to generalize to structurally diverse or unseen instances. In this work, we propose Tree-Gate Proximal Policy Optimization (TGPPO), a novel framework that employs Proximal Policy Optimization (PPO), a Reinforcement Learning (RL) algorithm, to train a branching policy aimed at improving generalization across heterogeneous MILP instances. Our approach builds on a parameterized state space representation that dynamically captures the evolving context of the search tree. Empirical evaluations show that TGPPO often outperforms existing learning-based policies in terms of reducing the number of nodes explored and improving p-Primal-Dual Integrals (PDI), particularly in out-of-distribution instances. These results highlight the potential of RL to develop robust and adaptable branching strategies for MILP solvers.