Adaptive simulated annealing: A near-optimal connection between sampling and counting

Daniel Stefankovic, Santosh S. Vempala, Eric Vigoda

TL;DR

This paper introduces a novel "adaptive cooling schedule" for approximating the partition function of discrete systems. This new approach significantly reduces the computational cost of counting problems, such as graph colorings or Ising models, by achieving near-optimal performance with a schedule length that scales with the square root of the logarithm of the system's size, a substantial improvement over previous methods.

What Problem Does This Paper Address?

Many important problems in computer science and statistical physics, such as estimating the number of graph colorings or the partition function of the Ising model, can be framed as counting problems. A common strategy to tackle these problems is to connect them to sampling problems. Specifically, one aims to estimate the partition function $Z(\beta)$ at a desired inverse temperature $\beta$ by expressing it as a telescoping product of ratios of partition functions at different temperatures: $Z(\beta) = Z(\beta_0) \frac{Z(\beta_1)}{Z(\beta_0)} \frac{Z(\beta_2)}{Z(\beta_1)} \cdots \frac{Z(\beta_l)}{Z(\beta_{l-1})}$. The ratios $\frac{Z(\beta_{i+1})}{Z(\beta_i)}$ can then be estimated using sampling techniques.

The efficiency of this approach hinges on the choice of the sequence of inverse temperatures, known as the "cooling schedule" ($\beta_0, \beta_1, \ldots, \beta_l$). Previous methods relied on "non-adaptive" schedules, where the sequence of temperatures is fixed beforehand and depends only on the system size and the initial value $A=Z(0)$. These schedules typically required a length of $O(\ln A)$, which can be prohibitively long for large systems. The challenge addressed in this paper is to find a more efficient cooling schedule that minimizes the number of samples needed for accurate estimation.

Methods

The core contribution of this paper is the development of an adaptive cooling schedule. Unlike non-adaptive schedules, an adaptive schedule's temperature sequence can depend on the properties of the partition function $Z$ itself, allowing for more informed choices.

The authors leverage the property that the logarithm of the partition function, $f(\beta) = \ln Z(\beta)$, is a convex function. They show that a convex function can be approximated by a piecewise linear function with a small number of pieces. This geometric insight forms the basis of their adaptive schedule.

The algorithm constructs the schedule greedily. It starts with $\beta_0 = 0$ and iteratively finds the next temperature $\beta_{i+1}$ such that the ratio of partition functions $\frac{Z(2\beta_{i+1} - \beta_i)}{Z(\beta_i)}$ and $\frac{Z(\beta_i)}{Z(\beta_{i+1})}$ are bounded by a constant (specifically, $e^2$). This is achieved by using a sampling oracle and a series of binary searches to find "optimal" steps. When an optimal step is not possible, "interval" or "long" moves are made, which still ensure progress towards the target temperature.

A key technical tool is the use of Chebyshev's inequality to bound the number of samples required for estimating the ratios, and the concept of an "h-heavy" interval for a given inverse temperature, which helps in efficiently finding suitable temperature steps.

Datasets

Not discussed in the paper. The paper focuses on theoretical algorithms and their properties for general partition functions, rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • Adaptive Schedules are Crucial: The paper demonstrates that for discrete partition functions, short non-adaptive cooling schedules are impossible in the worst case. Adaptive schedules are necessary to achieve significant improvements.
  • Geometric Approximation: The core idea of approximating the log-partition function (a convex function) with a piecewise linear function with few pieces is a powerful geometric insight that underpins the efficiency of the adaptive schedule.
  • Greedy Construction: The greedy approach to building the cooling schedule, by iteratively finding the "best" next temperature step, proves effective in minimizing the schedule's length.
  • Log-Concavity is Key: The convexity of $f(\beta) = \ln Z(\beta)$ (or log-concavity of $Z(\beta)$) is the fundamental property that enables the construction of these efficient adaptive schedules.

Key Results

  • Near-Optimal Adaptive Schedule: The paper proves the existence of an adaptive cooling schedule of length $O(\sqrt{\ln A} \ln n \ln \ln A)$, where $A = Z(0)$ is the initial partition function value and $n$ is the degree of the partition function. This is a significant improvement over previous non-adaptive schedules of length $O(\ln A)$.
  • Algorithmic Construction: An algorithm is presented that constructs such an adaptive schedule efficiently.
  • Applications: The results lead to improved running times for approximate counting problems, including:
  • Matchings: A factor of $O^*(n)$ speedup in approximating the number of matchings.
  • Ising Model: A factor of $O^*(n)$ speedup for the Ising model.
  • Graph Colorings: A factor of $O^*(n)$ speedup for graph colorings.
  • Independent Sets: A factor of $O^*(n)$ speedup for independent sets.

Limitations and Future Work

  • Assumptions on Sampler: The algorithms assume access to an "approximate" sampling oracle, meaning samples are drawn from a distribution close to the target one. The paper analyzes the impact of this approximation.
  • Polylogarithmic Factors: The authors note that they have not optimized all polylogarithmic factors in their bounds, suggesting room for further refinement.
  • Permanent of 0/1 Matrices: The paper discusses whether their results extend to estimating the permanent of a 0/1 matrix, suggesting that a schedule of length $\Omega(n)$ might be necessary for this problem, which is a limitation compared to their general results.
  • Warm Starts: The paper extends its findings to "warm start" scenarios, where previous sampling results can be reused to speed up subsequent computations. This is a promising direction for practical applications.

Summary updated

BibTeX
@inproceedings{stefankovic2007adaptive,
  author = {Daniel Stefankovic and Santosh S. Vempala and Eric Vigoda},
  title = {{Adaptive simulated annealing: A near-optimal connection between sampling and counting}},
  booktitle = {FOCS},
  year = {2007},
  doi = {10.1109/focs.2007.67},
}
Figure