DistrictNet: Decision-aware learning for geographical districting

Cheikh Ahmed, Alexandre Forel, Axel Parmentier, Thibaut Vidal · DOI

Abstract

Geographical districting is a fundamental challenge in logistics and urban planning, requiring the partitioning of a map into balanced, connected units to minimize operational costs. This paper introduces DistrictNet, a decision-aware learning framework that integrates a combinatorial optimization layer—specifically the Capacitated Minimum Spanning Tree (CMST)—directly into a Graph Neural Network (GNN). By using the CMST as a tractable surrogate for the NP-hard districting-and-routing problem, DistrictNet learns to produce edge weights that guide the optimization process. Our results demonstrate that DistrictNet achieves a ~10% cost reduction over traditional heuristics and generalizes from small synthetic training samples to massive real-world urban environments with up to 2,000 units.

1. Introduction

The problem of geographical districting involves partitioning a set of basic units (BUs) into contiguous districts. In the context of logistics, this is often coupled with routing, where the objective is to minimize the expected travel costs for vehicles servicing these districts. This "districting-and-routing" problem is characterized by two primary difficulties: a massive combinatorial search space (often exceeding $10^{29}$ possibilities for small cities) and the stochastic nature of evaluating district quality, which typically requires estimating Traveling Salesman Problem (TSP) costs over random delivery requests. Traditional methods often rely on simple geometric formulas that fail to capture the unique connectivity and shape of real-world urban environments.

2. Methodology

DistrictNet addresses these challenges by treating districting as a learning task with an embedded optimization solver.

2.1 Architecture and Surrogate Layer

The framework utilizes a GNN that operates on a geographical graph where nodes represent BUs and edges represent physical connectivity. The GNN predicts weights for these edges, which are then used as inputs for a Capacitated Minimum Spanning Tree (CMST) solver. The CMST serves as a tractable surrogate; the authors prove a surjection exists from the space of CMST solutions to valid districting solutions, ensuring that an optimal CMST configuration can represent an optimal districting plan.

2.2 Decision-Aware Learning

Unlike standard regression models that might attempt to predict TSP costs directly, DistrictNet employs decision-aware learning. It optimizes the GNN parameters to produce edge weights that result in the best possible districts when processed by the CMST solver. To handle the non-differentiable nature of the combinatorial solver, the framework utilizes a Fenchel-Young loss for gradient backpropagation.

2.3 Training via Imitation

To overcome the impossibility of finding optimal solutions for large-scale instances, the model is trained using imitation learning on small, synthetic cities (30 BUs). These small instances allow for the calculation of "true" optima via brute force, providing a high-quality signal for the GNN to learn the structural rules of efficient districting. This focus on edge features rather than node properties allows the model to capture the relationship between neighbors more effectively.

3. Experimental Evaluation

The model was evaluated on real-world datasets from seven major cities in the UK and France, including Bristol, Leeds, London, Manchester, Paris, Lyon, and Marseille.

3.1 Performance and Scalability

DistrictNet consistently outperformed traditional benchmarks, including linear regression models (such as Daganzo/Figliozzi) and unstructured GNNs, achieving an average 10% reduction in routing costs. Notably, the model demonstrated exceptional zero-shot generalization, scaling from 30-BU training instances to 2,000-BU test instances (e.g., the Île-de-France region). In the 2,000-BU test case, DistrictNet found the best solution within a 60-minute computation window, beating the next best benchmark by 2.6% in absolute cost.

3.2 Robustness and Compactness

The framework proved robust to changes in district size parameters ($t$), maintaining superiority even when the target size differed significantly from training conditions. Furthermore, the resulting districts were found to be more compact and homogeneous than those produced by other methods, as evidenced by higher Reock scores, a standard measure of circularity and compactness.

4. Discussion and Limitations

While DistrictNet represents a significant advancement, it faces certain limitations. The training phase is computationally intensive, requiring significant CPU resources (approximately 400 CPU-core days) to generate optimal targets for small instances. Additionally, while the surrogate approach is powerful, its application to other domains like political redistricting would require the development of new surrogate layers that incorporate specific constraints like fairness or partisan symmetry. Future improvements may also depend on the advancement of the underlying combinatorial solvers, such as Iterated Local Search (ILS), used during inference.

Summary updated

BibTeX
@inproceedings{ahmed2024districtnet,
  author = {Cheikh Ahmed and Alexandre Forel and Axel Parmentier and Thibaut Vidal},
  title = {{DistrictNet: Decision-aware learning for geographical districting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=njwYBFau8E},
}
Figure