arXiv:2601.05137math.COcs.LG2026-01

用图神经网络和递归预热法提升大规模图着色效率

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

  • 设计可微分算法,通过节点特征正交初始化和度惩罚损失优化
  • 递归计算k-1着色作预热,使局部搜索在大规模图上更优
  • 适合需要高效解决大规模组合优化问题的研究者

节点着色是为图中节点分配颜色,使相邻节点颜色不同且用色最少的任务,是图论中核心的组合优化问题。本文研究松弛版近似k-色问题,即最多使用k种颜色,最小化同色边数量。传统方法依赖数学规划或SAT求解器,近年转向机器学习。本文提出改进的可微分算法:采用正交节点特征初始化,并设计损失函数对高阶数端点的冲突边施加更大惩罚,基于‘图k-可着色当且仅当其k核可着色’的经典结论。进一步引入轻量级贪心局部搜索算法,并通过递归计算(k-1)-着色作为预热起点提升性能。实验表明,在小规模图上局部搜索表现最佳,但在大规模图上,结合递归预热的GNN方法显著优于其他方法。该递归预热策略对其他组合优化的局部搜索亦具参考价值。

原文摘要 · Abstract (English)

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.

图神经网络组合优化着色问题递归预热

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。