Simulated annealing is a polynomial-time approximation scheme for the minimum spanning tree problem

Benjamin Doerr, Amirhossein Rajabi, Carsten Witt

TL;DR

This paper proves that Simulated Annealing (SA) can find near-optimal solutions to the Minimum Spanning Tree (MST) problem in polynomial time, achieving arbitrarily close approximations. This confirms a long-standing conjecture and offers a theoretical justification for SA's effectiveness on this classic optimization problem.

What Problem Does This Paper Address?

The Minimum Spanning Tree (MST) problem is a fundamental problem in graph theory: given a connected, undirected graph with weighted edges, find a subset of edges that connects all vertices together, without any cycles, and with the minimum possible total edge weight. While efficient algorithms like Kruskal's and Prim's exist for finding the exact MST, this paper focuses on the performance of Simulated Annealing (SA), a metaheuristic optimization algorithm, as an approximation scheme.

The challenge lies in theoretically understanding SA's performance on problems with many local optima, like MST. While SA is widely used in practice, rigorous theoretical guarantees for its approximation capabilities, especially for achieving arbitrarily good solutions (i.e., polynomial-time approximation schemes or PTAS), have been lacking for MST. A key question was whether SA, with a carefully chosen cooling schedule, could indeed provide such guarantees, as conjectured by Wegener in 2005.

Methods

The core of this work is a rigorous mathematical analysis of SA's runtime and approximation quality for the MST problem. The authors employ a multiplicative cooling schedule, where the temperature decreases by a factor $\beta = 1 - 1/l$ in each iteration. This is a standard approach for SA, but the analysis here is significantly more detailed and uses modern techniques.

Key methodological contributions include:

  • Multiplicative Drift Analysis: The authors leverage the Multiplicative Drift Theorem (Doerr, Johannsen, and Winzen, 2012; Doerr and Goldberg, 2013) to bound the time it takes for SA to reach a desired solution quality. This is a powerful tool for analyzing randomized algorithms.
  • Phased Analysis: The proof breaks down the optimization process into distinct "phases," each focusing on a range of edge weights. As the temperature decreases, SA effectively "solves" or stabilizes on edges within a certain weight range before moving to the next phase.
  • Edge Exchange Arguments and Graph Properties: The analysis relies on detailed arguments about how SA explores the solution space, particularly how it handles cycles and connected components. Lemmas are developed to bound the number of "essential" edges and the time required to make them so.
  • Parameter Optimization: The authors carefully choose parameters for the cooling schedule and other aspects of the algorithm to achieve the best possible approximation ratios and runtime bounds.

Datasets

Not discussed in the paper. The analysis is theoretical and applies to general MST instances defined by graph parameters (number of vertices $n$, number of edges $m$, minimum edge weight $w_{min}$, and maximum edge weight $w_{max}$).

Key Insights and Ideas

  • SA as a PTAS for MST: The most significant insight is the proof that SA, with an appropriate cooling schedule, is indeed a polynomial-time approximation scheme (PTAS) for the MST problem. This means it can achieve arbitrarily close approximations (e.g., $(1+\epsilon)$-approximation) in polynomial time.
  • Cooling Schedule is Crucial: The analysis highlights the critical role of the cooling schedule. A multiplicative schedule with a carefully chosen factor $l$ is essential for achieving the theoretical guarantees.
  • "Phased" Optimization: The idea that SA effectively tackles the problem in stages, focusing on different edge weight ranges as the temperature drops, provides a clear conceptual framework for understanding its behavior.
  • Beyond Constant Temperature: The paper reinforces that for problems like MST with many local optima, a constant temperature (Metropolis algorithm) is insufficient, and a dynamic cooling schedule is necessary for efficient optimization.
  • Improved Bounds for (1+$\epsilon$)-Separated Weights: The work also provides improved runtime bounds for the special case of $(1+\epsilon)$-separated edge weights, building on prior results by Wegener.

Key Results

  • Polynomial-Time Approximation Scheme: The paper proves that SA can compute a $(1+\kappa)$-approximation of the MST in polynomial time, where $\kappa$ can be made arbitrarily small by adjusting the cooling schedule parameter $l$. Specifically, for any $\epsilon > 0$, SA can find a $(1+\epsilon)$-approximation in time $O((mn \ln n)^{1+1/\epsilon+o(1)} (\ln \ln n + \ln(T_0/w_{min})))$ with high probability.
  • Confirmation of Wegener's Conjecture: This result directly confirms a conjecture by Ingo Wegener (2005).
  • Improved Bounds for (1+$\epsilon$)-Separated Weights: For instances where edge weights are $(1+\epsilon)$-separated, SA can find an optimal MST in time $O((mn \ln n)^{1+1/\epsilon+o(1)} (\ln \ln n + \ln(T_0/w_{min})))$, which is a significant speed-up over previous guarantees.

Limitations and Future Work

  • Initial Temperature: The analysis assumes an initial temperature $T_0$ that is at least the maximum edge weight ($T_0 \ge w_{max}$). The paper notes this is natural, as lower temperatures would prevent the algorithm from accepting heavier edges early on.
  • Sub-Constant $\epsilon$: The paper acknowledges that SA cannot compute $(1+\epsilon)$-approximations for sub-constant $\epsilon$ (i.e., $\epsilon$ that decreases with problem size), so the achieved approximation quality is as good as theoretically possible for a PTAS.
  • Landscape Characterization: The authors suggest that future research should focus on characterizing fitness landscapes where SA's non-elitism and cooling schedule provide an advantage over global search. They hypothesize that landscapes with many, but "easy to leave" local optima might be beneficial.
  • Practical Implications: While the theoretical results are strong, further research could explore the practical implications of these findings and how the derived parameters translate to real-world performance.

Summary updated

BibTeX
@inproceedings{doerr2022simulated,
  author = {Benjamin Doerr and Amirhossein Rajabi and Carsten Witt},
  title = {{Simulated annealing is a polynomial-time approximation scheme for the minimum spanning tree problem}},
  booktitle = {GECCO},
  year = {2022},
  url = {https://openreview.net/forum?id=RW1-Q1qzbYC},
}
Figure