Abstract
This paper addresses the fundamental trade-off in applying Graph Neural Networks (GNNs) to combinatorial optimization: balancing model expressivity with generalization. We prove that for GNNs solving Integer Linear Programs (ILPs), node identifiers only need to be unique within a local $d$-hop neighborhood to match the expressive power of globally unique IDs. This "Local-UID" approach prevents models from overfitting to specific node identities, leading to state-of-the-art performance and significantly better generalization on unseen, larger-scale problems.
Introduction
Integer Linear Programming (ILP) is essential for modern logistics, scheduling, and engineering. Given that ILPs are NP-hard, "Learning to Optimize" (L2O) frameworks use GNNs to learn heuristics that accelerate traditional solvers. However, standard GNNs are "anonymous," treating nodes with identical local structures the same way. This limits their ability to distinguish variables, a necessity for finding optimal solutions. While assigning Global Unique Identifiers (UIDs) solves this, it often leads to "memorization," where models associate specific IDs with answers rather than learning the underlying mathematical structure. Consequently, models trained on small problems frequently fail on larger, unseen instances.
Proposed Methods: Local-UIDs
The authors propose Local-UIDs, a parsimonious augmentation scheme designed to maintain expressivity without sacrificing generalization.
- d-hop Unique Coloring: Instead of global uniqueness, a greedy algorithm colors the graph such that no two nodes within a $d$-hop distance share the same color. For a $d$-layer GNN, local uniqueness is functionally equivalent to global uniqueness.
- ColorGNN: A novel architecture where initial node embeddings are conditioned on their color, making the model "value-invariant."
- ColorUID: A lightweight version for massive graphs where colors are concatenated to node features, avoiding parameter blow-up.
Key Results
The researchers evaluated these methods across ILP benchmarks (Bin Packing, Balanced Item Placement, Steel Mill Slab Design), Linear Programming (PageRank, Workload Appropriation), and general graph tasks (ZINC).
Superior Accuracy in ILP
On the Bin Packing (BPP) dataset, ColorGNN achieved near-zero error across various thresholds, significantly outperforming standard Global-UID methods like "Position" or "Uniform" noise.
In the BIP and SMSP benchmarks, ColorUID consistently outperformed all baselines. For example, on BIP, it achieved a Top-100% error of 98.72, compared to 104.13 for the non-augmented baseline.
Out-of-Distribution (OOD) Performance
The method's primary strength lies in its ability to generalize to instances much larger than those seen during training. On the PageRank LP task, ColorUID maintained an error of 6.53e-06, while the "Uniform" ID baseline exploded to 1.11e-03.
Theoretical Insights
The core contribution is the proof that for a $d$-layer GNN, local uniqueness provides the exact same representational capacity as global uniqueness. By using the minimum number of identifiers necessary (the chromatic number of the $d$-hop neighborhood), the model avoids using IDs as "shortcut cues" for memorization. This symmetry-breaking tool allows GNNs to distinguish variables while preserving the structural patterns necessary for cross-graph generalization.
Conclusion and Future Work
Local-UIDs demonstrate that local uniqueness is sufficient for high-performance GNNs in optimization. While the greedy coloring algorithm adds a preprocessing step, the benefits in generalization are substantial. Future work may explore how this scheme interacts with deeper architectures, where the $d$-hop neighborhood eventually encompasses the entire graph, and its application to even more complex graph symmetries.
Summary updated