NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Feature Augmentation of GNNs for ILPs: Local Uniqueness Suffices

Qingyu Han, Qian Li, Linxin Yang, Qian Chen, Qingjiang Shi, Ruoyu Sun · Submission to ICLR 2026 · Rejected

TL;DR

Standard Graph Neural Networks (GNNs) lack the expressive power to distinguish symmetric variables when solving Integer Linear Programs (ILPs), but adding global unique identifiers (UIDs) leads to severe overfitting. This paper demonstrates that local uniqueness suffices: by assigning distinct colors only within each node's $d$-hop neighborhood, GNNs match the expressive power of global UIDs while achieving substantially better generalization across ILP and LP benchmarks.

What Problem Does This Paper Address?

In the Learning to Optimize (L2O) paradigm, ILPs are commonly represented as bipartite graphs of variables and constraints. However, standard anonymous message-passing GNNs cannot distinguish structurally identical or symmetric variables, severely limiting their performance.

To overcome this expressiveness bottleneck, common approaches inject globally unique node identifiers (such as random noise or unique positional embeddings). While this endows GNNs with maximal symmetry-breaking power, it introduces irrelevant extrinsic signals: the networks learn spurious correlations between specific node IDs and target solutions. As a result, models overfit, generalize poorly to unseen distributions, and struggle to scale. The core challenge is: How can we retain the expressiveness granted by UIDs without paying the generalization penalty?

Methods

The authors build on two simple observations: empirical GNNs for combinatorial optimization are shallow (rarely exceeding 2–4 layers), and a $d$-layer GNN only has a receptive field of $d$ hops.

  1. $d$-Hop Unique Coloring (Local-UIDs): Rather than giving every node in the graph a distinct identifier, vertices are colored such that no two nodes in any given node's $d$-hop neighborhood share the same color. The authors prove that this is equivalent to a proper vertex coloring of the power graph $G^{2d}$ (a $(2d)$-hop coloring) and construct it using a fast greedy algorithm with at most $\Delta_{2d} + 1$ colors.
  2. ColorGNN & ColorUID Architectures:
  3. ColorGNN: Integrates coloring directly into the architecture by learning color-conditioned embedding projections ($\text{emb}_{C(v)}(L_v)$), keeping the message-aggregation step strictly permutation-invariant.
  4. ColorUID: A lightweight, memory-efficient variant where the color index is appended directly as an input feature ($\text{emb}(L_v, C(v))$), preventing parameter blowup when the number of colors $|C|$ is large.

Datasets

The authors evaluate their approach across several standard combinatorial and graph learning benchmarks (no new datasets were introduced):

  • ILP Benchmarks: Bin Packing Problem (BPP, 500 instances), Balanced Item Placement (BIP, 300 instances), and Steel Mill Slab Design Problem (SMSP, 380 instances, up to ~24,000 variables and 10,000 constraints).
  • LP Benchmarks (In-Distribution & Out-of-Distribution): PageRank (10k variables in-distribution; tested OOD on 30k variables) and Workload Appropriation (WA, 5.2k variables in-distribution; tested OOD on 7.4k variables).
  • General Graph Benchmark: ZINC molecular graph regression (predicting constrained logP).

Key Insights and Ideas

  • Local Equivalence to Global UIDs: By modeling message passing via distributed local algorithms, the authors formally prove that a $d$-round algorithm with $d$-hop unique colors can simulate any $d$-round algorithm equipped with global UIDs. Because a node never observes information beyond $d$ hops, global distinctness provides zero additional expressive utility over local distinctness.
  • Parsimony Improves Generalization: Using statistical learning theory for finite-precision networks, the authors derive that the generalization gap scales with $\mathcal{O}(\sqrt{|C|})$ and sample complexity scales with $\mathcal{O}(|C|)$. Reducing the pool of distinct identifiers directly curbs model capacity and hypothesis class size, providing a formal guarantee against overfitting.
  • Massive Reduction in Feature Space: On SMSP, global UIDs require over 23,000 identifiers; Local-UIDs compress this down to an average of just 171 colors while retaining full local expressivity.

Key Results

  • ILP Accuracy: On BIP, ColorUID achieves a Top-100% error of 98.72 (vs. 104.13 for No-Aug and 100.76 for the symmetry-based Orbit+). On the large SMSP benchmark, ColorUID achieves a Top-70% error of 6.60 (vs. 13.06 for Orbit+ and 48.25 for Uniform UIDs) and Top-100% error of 115.57 (vs. 139.45 for Orbit+).
  • Extreme OOD Robustness on LPs: When trained on small graphs and evaluated on large-scale out-of-distribution instances, global random UIDs degrade severely (WA MSE of $7.07 \times 10^{2}$). ColorUID maintains strong generalization, yielding an MSE of $1.32 \times 10^{-1}$ on WA and $6.53 \times 10^{-6}$ on PageRank.
  • General Graph Tasks: On the ZINC molecular benchmark, substituting random positional encodings in the state-of-the-art PEARL architecture with ColorUID reduces test MAE from $0.0696$ to $0.0679$.

Limitations and Future Work

  • Coloring Scalability on Dense Graphs: Finding a proper coloring of $G^{2d}$ scales with the degree of the power graph $\Delta_{2d}$. On dense graphs or for larger values of $d$, the preprocessing overhead increases, and the number of colors can approach $|V|$. In practice, the authors restricted experiments to greedy 1-hop uniqueness.
  • Instance-Level Symmetries: On lower-percentile metrics (e.g., Top-30% on SMSP), specialized symmetry-orbit methods like Orbit/Orbit+ still hold a slight edge because they compute exact problem-specific solution symmetries rather than relying purely on graph topology. Combining Local-UIDs with explicit group-theoretic orbit preprocessing remains an open area for further optimization.

Summary updated

BibTeX
@misc{han2025feature,
  author = {Qingyu Han and Qian Li and Linxin Yang and Qian Chen and Qingjiang Shi and Ruoyu Sun},
  title = {{Feature Augmentation of GNNs for ILPs: Local Uniqueness Suffices}},
  year = {2025},
  eprint = {2509.21000},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.21000},
}
Figure