Towards General Algorithm Discovery for Combinatorial Optimization: Learning Symbolic Branching Policy from Bipartite Graph

Yufei Kuang, Jie Wang, Yuyan Zhou, Xijun Li, Fangzhou Zhu, Jianye Hao, Feng Wu

Combinatorial Optimization (CO) is at the heart of critical real-world applications, from logistics and routing to chip design. Most exact solvers rely on a Branch-and-Bound (B&B) framework, where the most critical decision is "branching"—choosing which variable to split on next to efficiently explore the solution space.

While Graph Neural Networks (GNNs) have recently been used to learn powerful branching policies from the bipartite graph representation of these problems, they face three major hurdles:

  1. Interpretability: GNNs are "black boxes." Researchers cannot easily decipher why a model chose a specific variable, making it hard to trust or refine the underlying logic.
  2. Deployment: Most CO solvers run on CPUs, but GNNs are computationally heavy and usually require GPUs to be efficient.
  3. Generalization: Previous attempts to "distill" GNNs into simple mathematical formulas (symbolic regression) often failed because errors compounded as they tried to mimic the GNN layer-by-layer.

To bridge the gap between high-performance machine learning and interpretable algorithm design, researchers introduced GS4CO (Graph Symbolic Discovery for Combinatorial Optimization). GS4CO is the first framework to discover interpretable, graph-based symbolic branching policies for CO solvers, replacing black-box neural networks with lightweight symbolic trees.

The GS4CO Framework

GS4CO learns symbolic policies directly from the general bipartite graph representation of CO problems. It achieves this through a novel combination of symbolic representation and Transformer-based generation.

The GS4CO architecture, illustrating the library of operators, the Transformer with tree-structural encodings, and the deployment of the symbolic function.

1. Unified Symbolic Representation

Standard symbolic regression uses basic math operators ($+, -, \times, \div$). GS4CO extends this by adding neighborhood aggregation operators (min, max, mean, sum). This allows a symbolic formula to "look" at the features of neighboring nodes in the bipartite graph, effectively performing a human-readable version of a GNN's message-passing.

2. End-to-End Generation via Transformer

Instead of distilling a pre-trained GNN—which often leads to a "distillation trap" of compounding errors—GS4CO uses a Transformer-based sequential model to generate symbolic trees from scratch. To help the Transformer understand the hierarchical nature of these mathematical formulas, the authors implemented four specific "tree-structural encodings":

  • Positional & Layer Encodings: To track where a node is in the formula.
  • Active Parent & Sibling Encodings: To provide context about the local mathematical operation.
  • Spatial Encodings: To capture the distance between different parts of the symbolic tree.

3. Reinforcement Learning

The model is trained using Proximal Policy Optimization (PPO) with a "risk-seeking" objective. It aims to maximize imitation accuracy—how often the discovered formula picks the same variable as "Full Strong Branching" (the gold-standard, but computationally expensive, expert policy).

Key Insights and Results

The framework was evaluated on four standard CO benchmarks: Setcover, Cauctions, Facilities, and Indset. The models were trained on small-scale "Easy" instances and tested on "Medium" and "Hard" instances to evaluate generalization.

An example of a learned symbolic policy on the Setcover benchmark, demonstrating the human-readable logic extracted by GS4CO.
  • Human-Readable Logic: The discovered formulas revealed intuitive rules. For example, in the Setcover benchmark, the policy learned that a constraint is "important" if it is currently "tight" (active) and relates to variables with large objective coefficients.
  • Superior Performance: On CPU machines, GS4CO outperformed all baselines, including human-designed heuristics (like Reliability Pseudocost Branching) and black-box GNNs.
  • Extreme Efficiency: The discovered symbolic policies are roughly 500 times smaller than GNN models (0.49 KB vs. 266 KB) and 20 times faster at inference time on a CPU.
  • Generalization: Policies discovered on small instances maintained their edge even when moved to harder instances, proving that the symbolic rules captured fundamental truths about the problem structures rather than just memorizing training data.

Limitations and Future Work

While GS4CO represents a significant step forward, it still relies on a set of 19 pre-defined variable features and 5 constraint features. Furthermore, this research focuses specifically on the branching component of solvers. Applying GS4CO to other solver components, like cut selection or primal heuristics, is a promising next step. Finally, future work might explore more complex "program-like" expressions that include conditional logic (if-then-else) to capture even more sophisticated solving strategies.

Summary updated

BibTeX
@inproceedings{kuang2024towards,
  author = {Yufei Kuang and Jie Wang and Yuyan Zhou and Xijun Li and Fangzhou Zhu and Jianye HAO and Feng Wu},
  title = {{Towards General Algorithm Discovery for Combinatorial Optimization: Learning Symbolic Branching Policy from Bipartite Graph}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=ULleq1Dtaw},
}
Figure