Designing Fast Absorbing Markov Chains

Stefano Ermon, Carla P. Gomes, Ashish Sabharwal, Bart Selman

Introduction

Markov Chains are a cornerstone of modern AI, powering everything from PageRank to complex sampling algorithms. Traditionally, research has focused on mixing time—the duration required for a chain to reach its steady-state distribution. However, many practical applications, such as local search for Boolean Satisfiability (SAT), are transient processes with a specific goal or "absorbing state." In these scenarios, the critical metric is absorption time: the number of steps taken to reach the destination. This paper introduces a principled framework for designing "Fast Absorbing Markov Chains" that minimize this time while adhering to problem-specific constraints.

The Optimization Framework

The authors formalize the Constrained Fastest Absorbing Markov Chain Problem by leveraging the fundamental matrix of Markov Chain theory.

  1. Closed-Form Objective and Gradient: The expected absorption time can be expressed as $f(P, \pi_0) = \mathbf{1}^T (I - Q)^{-1} \pi_0$, where $Q$ is the transition matrix for non-absorbing states and $\pi_0$ is the initial distribution. Because this expression is differentiable, the authors derive a closed-form gradient, enabling the use of efficient optimization algorithms like L-BFGS-B.
  2. Global Optimality: A key theoretical contribution is the proof that the optimization problem is convex when restricted to reversible Markov Chains. This ensures that the found solution is the global optimum within that class.
  3. Feature-Based Scaling: To overcome the exponential growth of state spaces, the framework uses a feature-based approach. Transitions are grouped by features—such as the change in the number of violated constraints (energy difference)—allowing the optimization of a small set of parameters that define the entire chain.

Experimental Results

Performance on Random SAT Instances

The methodology was first tested on standard random 3-SAT and 4-SAT benchmarks. The optimized chains consistently outperformed the best-tuned Simulated Annealing (SA) heuristics.

Optimized runtime vs. optimal Simulated Annealing runtime for 3-SAT and 4-SAT instances.

On individual 4-SAT instances, the optimized chains achieved runtime improvements ranging from 18% to 81%. While the optimized parameters for these "average" problems often resembled SA, the slight deviations provided a meaningful speedup.

Overcoming Hard Energy Landscapes

The true power of the framework is revealed in "hard" landscapes containing energy barriers and plateaus—structures that typically trap traditional local search algorithms.

Expected runtime as a function of plateau dimension.

In these experiments, as the plateau dimension increased, the runtime for the best-tuned SA exploded exponentially to over 100,000 steps. In contrast, the optimized algorithm maintained a nearly constant runtime of approximately 1,000 steps. The optimized chain learned to navigate these traps by taking "uphill" moves more aggressively than SA, effectively "tunneling" through barriers.

Generalization and Scalability

A significant finding is the ability of these optimized parameters to generalize. Parameters learned on small, tractable instances (e.g., 10 variables) were successfully applied to much larger instances (e.g., 45 variables) that were computationally inaccessible for direct optimization. This suggests that the structural insights gained from small-scale analysis are robust across problem sizes.

Conclusion

By shifting the focus from mixing time to absorption time, this work provides a powerful new tool for optimizing search and stochastic processes. The ability to outperform standard heuristics like Simulated Annealing—especially on structured, difficult landscapes—opens new avenues for solving complex combinatorial problems in AI and beyond.

Summary updated

BibTeX
@inproceedings{ermon2014designing,
  author = {Stefano Ermon and Carla P. Gomes and Ashish Sabharwal and Bart Selman},
  title = {{Designing Fast Absorbing Markov Chains}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2014},
  doi = {10.1609/aaai.v28i1.8843},
}
Figure