Optimization by Mean Field Annealing

Griff L. Bilbro, Reinhold Mann, Thomas K. Miller Iii, Wesley E. Snyder, David E. van den Bout, Mark W. WhiteNeurIPS 1988

Introduction

Combinatorial optimization—finding the best arrangement of items from a massive set of possibilities—is a cornerstone of computer science, appearing in everything from circuit design to image processing. Traditionally, researchers have relied on Stochastic Simulated Annealing (SSA) to solve these complex problems. SSA mimics the way metals cool: it makes random changes to a system, occasionally accepting "bad" moves to escape local minima, and slowly lowers a "temperature" parameter to settle into a global optimum.

While robust, SSA is notoriously slow because it relies on a random walk (Markov process) to reach equilibrium at every temperature step. To address this efficiency gap, researchers introduced Mean Field Annealing (MFA), a method that combines the global optimization power of simulated annealing with the speed of deterministic neural networks. By replacing discrete random variables with their continuous average values, MFA finds near-optimal solutions 10 to 50 times faster than traditional stochastic methods.

The Mean Field Annealing Approach

The core innovation of MFA is a shift from probability to expectation. In a standard Ising model used to represent optimization problems, variables are discrete "spins" (typically 0 or 1). MFA replaces these discrete states with their continuous average values, denoted as $\langle s_i \rangle$.

Instead of calculating the complex, stochastic interactions between every single discrete spin, the Mean Field Approximation calculates an "effective field" for each spin based on the average values of its neighbors. The algorithm proceeds as follows:

  1. Initialize spin averages to roughly 0.5 with a small amount of noise.
  2. At a fixed temperature $T$, iteratively update each spin average using a sigmoidal function of its mean field until the system reaches a deterministic "fixed point" (equilibrium).
  3. Decrease $T$ and repeat until the averages "freeze" into definitive 0 or 1 states.

Mathematically, the relaxation step in MFA is equivalent to the equations of motion for a Hopfield neural network. This provides a powerful theoretical bridge between physics-based optimization and neural computing.

Phase Transitions and Critical Temperature

A key insight of MFA is that it does not waste time wandering randomly; it moves deterministically toward the average equilibrium of the system.

During the annealing process, the system undergoes a phase transition at a specific Critical Temperature ($T_c$). At high temperatures, the system is highly disordered, and all averages hover around 0.5. As the temperature drops past $T_c$, the system suddenly begins to make decisions, and the continuous averages rapidly drift toward 0 or 1.

Bifurcation of spin averages as temperature decreases, highlighting the critical temperature $T_c$.

The authors derived an analytic formula for this critical temperature: $T_c = V\xi/2$, where $V$ is the average edge weight and $\xi$ is the average connectivity. Knowing $T_c$ allows researchers to start the annealing process exactly where the "action" happens, bypassing unnecessary high-temperature iterations and saving significant computational time.

Experimental Results: Graph Bipartitioning

The paper evaluates MFA using the Graph Bipartitioning Problem—the task of dividing a network of nodes into two equal groups while minimizing the number of edges between them. They tested specific graph configurations, including an 83-node/115-edge graph and 100-node graphs with varying edge densities.

Performance comparison of MFA versus SSA on graph bipartitioning tasks.

The results demonstrate a massive leap in efficiency. MFA required as little as 2% of the relaxation iterations needed by SSA to reach a similar quality of solution (a roughly 50x speedup, as seen in the 100/400 graph where $I_{MFA}/I_{SSA} = 0.019$). Furthermore, the "Solution Value" (the cost of the final partition) found by MFA was nearly equivalent to SSA. In some cases, such as the 83-node graph, MFA actually found a better solution ($H_{MFA}/H_{SSA} = 0.762$).

Because the mean field updates are local and deterministic, the algorithm is also highly parallelizable. Implementations on early parallel architectures showed near-linear speedups, proving the algorithm scales exceptionally well with additional processors.

Limitations and Future Directions

While MFA represents a significant leap forward, it has limitations. The analytical derivation of the critical temperature ($T_c$) relies on an idealized model where edge weights and node connectivity are uniform. Real-world graphs with high variance might not follow this prediction perfectly. Additionally, while MFA is superior to simple gradient descent, it can still get trapped in local minima if the initial temperature is set too low, causing "abrupt freezing" before the system can explore optimal configurations.

Looking forward, the authors suggest that the mathematical relationship between MFA and Hopfield networks could be used to better tune the "gains" in neural networks, which are often set heuristically. This remains a promising direction for improving neural-based optimization systems.

Summary updated

BibTeX
@inproceedings{bilbro1988optimization,
  author = {Griff L. Bilbro and Reinhold Mann and Thomas K. Miller III and Wesley E. Snyder and David E. van den Bout and Mark W. White},
  title = {{Optimization by Mean Field Annealing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1988},
}
Figure