Neural Algorithmic Reasoning for Approximate k-Coloring with Recursive Warm Starts

Knut Vanderbush, Melanie Weber
1/8/2026
math.COcs.LG

No official code found. Best implementation: Weber-GeoML/ColoringGNNs (1 star, last commit 2026-01-10).

Abstract

Node coloring is the task of assigning colors to the nodes of a graph such that no two adjacent nodes have the same color, while using as few colors as possible. It is the most widely studied instance of graph coloring and of central importance in graph theory; major results include the Four Color Theorem and work on the Hadwiger-Nelson Problem. As an abstraction of classical combinatorial optimization tasks, such as scheduling and resource allocation, it is also rich in practical applications. Here, we focus on a relaxed version, approximate $k$-coloring, which is the task of assigning at most $k$ colors to the nodes of a graph such that the number of edges whose vertices have the same color is approximately minimized. While classical approaches leverage mathematical programming or SAT solvers, recent studies have explored the use of machine learning. We follow this route and explore the use of graph neural networks (GNNs) for node coloring. We first present an optimized differentiable algorithm that improves a prior approach by Schuetz et al. with orthogonal node feature initialization and a loss function that penalizes conflicting edges more heavily when their endpoints have higher degree; the latter inspired by the classical result that a graph is $k$-colorable if and only if its $k$-core is $k$-colorable. Next, we introduce a lightweight greedy local search algorithm and show that it may be improved by recursively computing a $(k-1)$-coloring to use as a warm start. We then show that applying such recursive warm starts to the GNN approach leads to further improvements. Numerical experiments on a range of different graph structures show that while the local search algorithms perform best on small inputs, the GNN exhibits superior performance at scale. The recursive warm start may be of independent interest beyond graph coloring for local search methods for combinatorial optimization.

View on arXivView PDF

Code Implementations(1)

This repository contains implementations of the algorithms Mod-GCN, Full-GCN, Discrete-Color, Full-Color, and Triple-Color, as well as the unmodified predecessor to Mod-GCN, described in the paper “Neural Algorithmic Reasoning for Approximate k-Coloring with Recursive Warm Starts.”

11PythonDec 30, 20259 months ago

Similar Papers

Cite this paper

@article{vanderbush2026neural,
  title  = {Neural Algorithmic Reasoning for Approximate k-Coloring with Recursive Warm Starts},
  author = {Knut Vanderbush and Melanie Weber},
  year   = {2026},
  eprint = {2601.05137},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.05137v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.05137.svg)](https://codeofpaper.com/paper/2601.05137)

Discussion