Contrastive Neural Algorithmic Reasoning for Graph Coloring

📅 2026-06-02
📈 Citations: 0
Influential: 0
📄 PDF

career value

146K/year
🤖 AI Summary
This work addresses the graph coloring problem under a constraint of using at most $k$ colors, aiming to minimize the number of monochromatic edges (conflicts) while achieving generalization across graphs of varying sizes and distributions. To this end, the authors propose a contrastive learning–based graph neural network framework that learns transferable coloring embeddings with a geometric structure wherein embeddings of same-colored nodes collapse onto one-dimensional subspaces, and subspaces corresponding to adjacent nodes are mutually orthogonal. Theoretical analysis establishes a connection between this “line prototype” geometry and the optimization dynamics, and the method is optimized via projected subgradient descent combined with gradient descent on unnormalized embeddings. Experiments demonstrate that the approach consistently produces low-conflict colorings on both synthetic and real-world graphs, exhibiting generalization performance comparable to or better than classical greedy algorithms.
📝 Abstract
Graph coloring seeks to assigns colors to a graph's nodes so that adjacent nodes receive different colors, using as few colors as possible. Here, we study approximate $k$-coloring, where the goal is to use at most $k$ colors while minimizing the number of monochromatic edges. This problem is central to graph theory and has applications in areas such as scheduling and resource allocation. Recent unsupervised GNN approaches optimize each instance directly, precluding generalization across graph sizes and distributions. We instead propose a contrastive learning framework that learns transferable coloring geometry where the embeddings of same-color nodes align, while adjacent nodes' representations are pushed toward distinct directions. We analyze the resulting population objective over bounded-size graphs. For unit-norm embeddings, we show that its optima have a line-prototype structure: Representations of nodes of the same color collapse to a shared one-dimensional subspace, and edges connect orthogonal subspaces. This geometry yields stationarity conditions in the supervised setting and is preserved by projected subgradient dynamics under a balanced-coloring assumption. In an unnormalized variant, gradient descent has a max-margin bias governed by a quotient-graph hard-margin problem. Experiments on synthetic and real-world graphs show that contrastive GNN encoders generalize effectively and produce low-conflict colorings, matching and sometimes improving on greedy approaches.
Problem

Research questions and friction points this paper is trying to address.

graph coloring
approximate k-coloring
monochromatic edges
generalization
unsupervised GNN
Innovation

Methods, ideas, or system contributions that make the work stand out.

contrastive learning
graph coloring
geometric representation
line-prototype structure
generalization
🔎 Similar Papers
No similar papers found.