Analysis of Evolutionary Diversity Optimisation for the Maximum Matching Problem

Jonathan Gadea Harder, Aneta Neumann, Frank Neumann · DOI

Abstract

Evolutionary Diversity Optimization (EDO) aims to find a set of high-quality, structurally diverse solutions rather than a single optimum. This paper presents the first rigorous runtime analysis of EDO applied to the maximum matching problem. We compare a standard $(\mu + 1)$ Evolutionary Algorithm ($(\mu + 1)\text{-EA}_D$) with a specialized Two-Phase Matching EA ($2P\text{-EA}_D$). Using drift analysis, we prove that while both algorithms achieve maximal diversity in polynomial time, the $2P\text{-EA}_D$ significantly outperforms the standard approach by leveraging structural properties of matchings. Theoretical bounds are complemented by empirical simulations on bipartite and path graphs.

Introduction

In many real-world optimization scenarios, finding a single "best" solution is often insufficient. Decision-makers frequently require a set of high-quality solutions that are structurally distinct to account for unmodeled constraints, provide backup options, or explore different trade-offs. This requirement is the core motivation for Evolutionary Diversity Optimization (EDO): the process of maximizing the diversity of a population while ensuring every individual meets a minimum quality threshold.

This paper investigates EDO in the context of the Maximum Matching Problem, a fundamental graph theory problem where the goal is to find the largest set of edges that do not share any common vertices. While finding a single maximum matching is a well-understood polynomial-time problem, finding a maximally diverse set of such matchings presents a complex landscape for heuristic search. We specifically analyze the time required for evolutionary algorithms to converge to a state of maximal diversity, where the solutions in the population share as few edges as possible.

Methods and Algorithmic Framework

The researchers analyze two distinct evolutionary approaches to diversity optimization:

  1. $(\mu + 1)\text{-EA}_D$: This is a standard evolutionary algorithm maintaining a population of size $\mu$. In each iteration, it generates one offspring via bit-flip mutation. If the offspring is a maximum matching, it is added to the population, and the individual that contributes the least to the total population diversity (measured by the sum of Hamming distances) is discarded.
  2. $2P\text{-EA}_D$ (Two-Phase Matching EA): This specialized algorithm replaces random bit-flips with a two-step structural mutation designed to navigate the space of maximum matchings more effectively:
  3. Phase 1 (Unmatching): Randomly removes edges from the current matching.
  4. Phase 2 (Rematching): Attempts to add new edges to restore the matching to its maximum size.

To provide rigorous guarantees, the study employs Drift Analysis, a mathematical framework used to bound the expected runtime of stochastic processes. This allows the authors to determine the number of iterations required to reach peak diversity on specific graph topologies.

Experimental Setup and Datasets

As a theoretical study, the "datasets" consist of graph topologies chosen for their structural properties, which allow for clear mathematical characterization:

  • Complete Bipartite Graphs ($K_{n,m}$): Graphs where vertices are split into two sets, and every vertex in one set connects to every vertex in the other. This is a classic benchmark for matching problems.
  • Path Graphs: Simple linear chains of vertices, used to study diversity in highly constrained, sparse environments.

Key Insights

The Impact of Graph Structure

In bipartite graphs, the difficulty of achieving diversity is heavily influenced by the "gap" between the sizes of the two vertex partitions. If the population size $\mu$ is smaller than this gap, diversity is relatively easy to find because there are many "unused" vertices available to form alternative matchings.

Local Optima in Diversity Space

One of the paper's primary findings is that standard EAs often encounter "stalls" or local optima. In certain configurations, a standard 2-bit flip (swapping one edge for another) cannot improve population diversity, even if the population is not yet maximally diverse. Overcoming these states requires a more complex 4-bit flip, which significantly increases the expected runtime for the standard $(\mu + 1)\text{-EA}_D$.

The Advantage of Structural Awareness

The $2P\text{-EA}_D$ algorithm effectively bypasses these local optima. By intentionally "unmatching" and then "rematching," it explores the space of maximum matchings more fluidly than blind bit-flipping. This structural awareness allows it to achieve a much lower theoretical runtime bound.

Results and Performance Analysis

The paper establishes several rigorous expected runtime bounds (where $m$ is the number of edges and $\mu$ is the population size). The results demonstrate a clear hierarchy in performance:

Graph Type Algorithm Theoretical Upper Bound Empirical Observation
Bipartite (Small Gap) $(\mu + 1)\text{-EA}_D$ $O(\mu^2 m^4 \log m)$ $\sim \mu m^{2.5}$
Bipartite (Small Gap) $2P\text{-EA}_D$ $O(\mu^2 m^2 \log m)$ $\sim \mu m$
Paths $(\mu + 1)\text{-EA}_D$ $O(\mu^3 m^3)$ $\sim \mu m^3$
Paths $2P\text{-EA}_D$ $O(\mu^3 m^2)$ $\sim \mu m^2$

Crucially, empirical simulations suggest that the theoretical bounds are conservative. For example, the $2P\text{-EA}_D$ appears to scale linearly with the number of edges ($m$) in practice on bipartite graphs, even though the current proof only guarantees a quadratic ($m^2$) bound.

Conclusion and Future Work

This research provides a foundational theoretical understanding of EDO for matching problems. It highlights that while general-purpose evolutionary algorithms can find diverse sets of solutions, incorporating problem-specific structural knowledge—as seen in the $2P\text{-EA}_D$—leads to significantly faster convergence.

Future research directions include:

  • Expanding Topologies: Moving beyond bipartite and path graphs to analyze irregular or sparse-but-complex graphs.
  • Quality-Diversity (QD): Exploring scenarios where we allow slightly sub-optimal matchings in exchange for significantly higher diversity.
  • Tightening Bounds: Closing the gap between the proven $O(m^2)$ or $O(m^4)$ bounds and the more efficient linear/quadratic behavior observed in empirical tests.

Summary updated

BibTeX
@inproceedings{harder2024analysis,
  author = {Jonathan Gadea Harder and Aneta Neumann and Frank Neumann},
  title = {{Analysis of Evolutionary Diversity Optimisation for the Maximum Matching Problem}},
  booktitle = {PPSN},
  year = {2024},
  doi = {10.1007/978-3-031-70071-2\_10},
}
Figure