Complexity and Geometry of Sampling Connected Graph Partitions

Lorenzo Najt, Daryl R. DeFord, Justin SolomonarXiv 2019

Introduction

Detecting gerrymandering often relies on "outlier analysis," where an enacted redistricting map is compared against an ensemble of thousands of randomly generated alternative plans. For this statistical comparison to be valid, the ensemble must be a representative sample of the space of all possible valid partitions—specifically those where each district is a connected subgraph. However, a significant gap exists between the heuristic algorithms used by practitioners and the theoretical guarantees of their performance. This paper investigates whether efficient sampling is even possible and analyzes the behavior of the standard "flip walk" Markov chain.

Discretization and Datasets

To analyze redistricting mathematically, geographic maps must be converted into discrete graphs. The authors utilize several datasets to test their theories:

  • Kansas State-Dual Graph: A representation where nodes correspond to counties and edges denote shared borders. This serves as a real-world test case for how discretization affects sampling.
  • Grid Graphs: $40 \times 40$ lattices are used to observe phase transitions and mixing slowdowns in a controlled environment.
  • The "Frankengraph": A hybrid lattice (triangular on top, square on bottom) designed to demonstrate how sensitive boundary behavior is to the underlying graph topology.
The discretization of the Kansas state map (a) into its corresponding dual graph (b), where nodes represent counties and edges represent adjacencies.

Methodology and Complexity Analysis

The researchers approach the problem through the lens of complexity theory and statistical physics. By employing "bond-cycle duality" for planar graphs, they demonstrate that finding a connected 2-partition is equivalent to finding a simple cycle in the dual graph.

To prove the hardness of the problem, the authors engineer specific "gadgets"—complex graph structures that simulate logical gates. Through these constructions, they prove that uniform sampling of balanced partitions (where districts have equal population) is NP-hard. This challenges the common assumption that adding constraints like population balance makes the search space easier to navigate; in fact, it often makes the sampling problem computationally intractable.

Transformations of graph edges into directed and undirected structures used to construct gadgets for complexity proofs and self-avoiding walk analogies.

The "Flip Walk" and Markov Chain Analysis

The standard tool for generating map ensembles is the flip walk, a Markov Chain Monte Carlo (MCMC) method that moves a single node between adjacent districts in each step. The authors provide a rigorous analysis of this chain's mixing time—the time it takes to reach a steady, representative state.

They prove that for certain families of planar graphs, the flip walk is "torpidly mixing," meaning the time required for a fair sample grows exponentially with the number of nodes. This occurs because the chain can become trapped in "metastable" regions of the state space, unable to cross the "narrow" bottlenecks required to reach other valid partitions. Empirical tests on $40 \times 40$ grids confirmed this, showing that even after millions of steps, the chain failed to lose the bias of its starting configuration.

Key Insights

  • Topological Sensitivity: The choice of discretization (e.g., square vs. triangular lattices) significantly alters the behavior of district boundaries. On the "Frankengraph," the same algorithm produced jagged, space-filling boundaries on one half and smoother lines on the other.
  • Phase Transitions: Drawing a parallel to self-avoiding walks (SAWs) in physics, the authors identify phase transitions in boundary geometry. Depending on the "fugacity" parameter (weighting boundary length), maps can abruptly shift from having straight, simple borders to highly complex, fractal-like edges.
  • Tractable Exceptions: While the general problem is hard, the authors identified that sampling remains efficient (polynomial time) for specific graph classes, such as series-parallel graphs and those with bounded treewidth, using dynamic programming.

Conclusion and Future Work

The study concludes that sampling connected partitions is fundamentally difficult, and the current reliance on the flip walk may produce biased ensembles that do not truly represent the space of all possible maps. While the "hard" graphs identified in this paper are engineered gadgets, they serve as a warning for redistricting experts. Future research is needed to determine if more advanced proposal moves, such as "recombination" (ReCom), can overcome the mixing bottlenecks identified here, and to what extent real-world state dual graphs naturally resist efficient sampling.

Summary updated

BibTeX
@misc{najt2019complexity,
  author = {Lorenzo Najt and Daryl R. DeFord and Justin Solomon},
  title = {{Complexity and Geometry of Sampling Connected Graph Partitions}},
  year = {2019},
  eprint = {1908.08881},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.08881},
}
Figure