RIDGECUT: Learning Graph Partitioning with Rings and Wedges

Qize Jiang, Linsey Pang, Alice Gatti, Mahima Aggarwal, Giovanna Vantini, Xiaosong Ma, Weiwei Sun, Sourav Medya, Sanjay Chawla · DOI

Abstract

Reinforcement Learning (RL) has proven to be a powerful tool for combinatorial optimization (CO) problems due to its ability to learn heuristics that can generalize across problem instances. However, integrating knowledge that will steer the RL framework for CO solutions towards domain appropriate outcomes remains a challenging task. In this paper, we propose RIDGECUT, the first RL framework that constrains the action space to enforce structure-aware partitioning in the Normalized Cut problem. Using transportation networks as a motivating example, we introduce a novel concept that leverages domain knowledge about urban road topology -- where natural partitions often take the form of concentric rings and radial wedges. Our method reshapes the graph into a linear or circular structure to simplify the partitioning task so that we can apply sequential transformers and enables efficient learning via Proximal Policy Optimization. The resulting partitions are not only aligned with expected spatial layouts but also achieve lower normalized cuts compared to existing methods. While we focus on traffic data, our approach is broadly applicable and offers a mechanism for embedding structural priors into RL for graph partitioning.

Introduction

Graph partitioning—the division of a graph into disjoint sets of nodes while minimizing the weight of edges between them—is a cornerstone of combinatorial optimization. Its applications range from distributed computing to urban traffic simulation. While traditional heuristics like METIS are efficient, they often fail to capture specific structural priors inherent in real-world data. Recent advances in Reinforcement Learning (RL) have attempted to learn these heuristics, but unconstrained node-level action spaces often lead to fragmented, uninterpretable solutions that ignore domain-specific geometry.

In urban environments, road networks typically exhibit a "ring and wedge" topology, where major arteries form concentric circles around a city center or radiate outwards like wedges. This paper introduces RIDGECUT (RIng and WeDGE Informed CUT), an RL framework designed to embed these structural priors directly into the optimization process for the Normalized Cut problem.

Methodology

The core innovation of RIDGECUT lies in shifting the RL paradigm from selecting individual nodes to selecting geometric boundaries.

Graph Transformation and Constrained Action Space

Instead of processing a complex 2D graph directly, RIDGECUT projects nodes into 1D sequences based on their spatial relationship to a central point. For ring partitions, nodes are ordered by their radial distance. For wedge partitions, they are ordered by their angular position on a unit circle.

By transforming the problem into 1D, the RL agent's action space is drastically reduced. Rather than making $N$ node-level decisions, the agent selects a small number of radii or angles to define the partitions. This constraint acts as a powerful guide, steering the model toward domain-appropriate local optima.

Overview of the RIDGECUT framework transforming the action space.

Architecture and Training

RIDGECUT utilizes a standard Transformer architecture, made possible by the 1D sequence transformation. To maintain partition integrity, the authors introduce Partition-Aware Multi-Head Attention (PAMHA), a masking mechanism that prevents nodes in already-separated partitions from attending to one another.

Training is conducted via Proximal Policy Optimization (PPO) using a two-stage approach. The wedge-partitioning policy is stabilized first using random ring cuts. Once converged, it is frozen, and the ring-partitioning policy is trained. This staging is critical because the two policies are highly interdependent; simultaneous end-to-end training often fails to converge due to the "moving target" problem.

Experimental Evaluation

The framework was evaluated on three distinct datasets: predefined-weight synthetic graphs, random-weight synthetic graphs, and real city traffic graphs where edge weights represent actual traffic volume.

Results

RIDGECUT demonstrates significant improvements over both traditional solvers and modern neural baselines.

Quantitative Performance

On 100-node City Traffic graphs, RIDGECUT achieved a Normalized Cut of 0.060, outperforming METIS (0.162) and the neural baseline NeuroCUT (0.078). Furthermore, the model showed strong zero-shot generalization, outperforming non-learning baselines on graphs of 50 and 200 nodes without additional training.

Interpretability and Structural Adherence

To measure how well the model adheres to the desired geometry, the authors introduced "Ringness" and "Wedgeness" metrics. RIDGECUT achieved scores of 0.929 and 0.876, respectively, indicating near-perfect alignment with the intended spatial layout. In contrast, traditional methods like Spectral Clustering produced fragmented boundaries with significantly lower structural scores.

Qualitative and quantitative comparison of RIDGECUT against baselines.

Discussion and Future Work

While RIDGECUT offers a powerful way to integrate domain knowledge, it has limitations. The method is sensitive to the choice of the graph's center point; a 5% offset can degrade performance. Future work will explore learned center-selection strategies. Additionally, while faster than some neural baselines, RIDGECUT remains slower than highly optimized heuristics like METIS. Scaling to very large graphs (500+ nodes) currently requires node-pruning, which introduces a small performance penalty.

Despite these challenges, RIDGECUT proves that structural constraints are not just a way to simplify the problem, but a vital feature for achieving interpretable and high-quality solutions in domain-specific graph partitioning.

Summary updated

BibTeX
@misc{jiang2025ridgecut,
  author = {Qize Jiang and Linsey Pang and Alice Gatti and Mahima Aggarwal and Giovanna Vantini and Xiaosong Ma and Weiwei Sun and Sourav Medya and Sanjay Chawla},
  title = {{RIDGECUT: Learning Graph Partitioning with Rings and Wedges}},
  year = {2025},
  eprint = {2505.13986},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.13986},
}
Figure