Controlled Online Optimization Learning (COOL): Finding the ground state of spin Hamiltonians with reinforcement learning

Kyle Mills, Pooya Ronagh, Isaac Tamblyn · DOI

Introduction

Finding the "ground state"—the configuration with the lowest possible energy—of a spin glass is a fundamental NP-hard optimization problem in physics and computer science. A common approach is Simulated Annealing (SA), where a system is "heated" to allow random spin flips and then gradually "cooled." If the cooling schedule is optimal, the system settles into its global minimum. However, designing these schedules is a "black art." Cooling too quickly leads to "quenching," where the system gets stuck in local minima, while cooling too slowly is computationally inefficient. Traditional methods rely on simple linear or geometric schedules that often fail to navigate complex energy landscapes effectively.

The COOL Framework

To address these challenges, researchers introduced Controlled Online Optimization Learning (COOL). This method redefines the temperature schedule design as a reinforcement learning (RL) task. Instead of a static, pre-defined curve, an RL agent dynamically adjusts the inverse temperature ($\beta = 1/T$) based on the real-time state of the system.

The COOL architecture utilizes convolutional layers to process spatial spin configurations and an LSTM module to capture temporal dependencies, outputting temperature adjustments ($\Delta\beta$).

The agent is trained using Proximal Policy Optimization (PPO). It processes the system's state through a neural network that includes convolutional layers for spatial feature extraction and a Long Short-Term Memory (LSTM) module to track temporal dynamics. The agent receives a sparse reward based on the lowest energy reached at the end of an episode, incentivizing it to find the true ground state.

Key Insights and Results

The COOL agent demonstrates several sophisticated behaviors that surpass traditional heuristics:

  • Reactive Temperature Control: Unlike static schedules, COOL is reactive. By monitoring variance across parallel simulations ("replicas"), the agent can detect when a system is trapped and adjust the temperature accordingly.
  • Learning to "Melt": In scenarios where the system starts in a deep local minimum (a "trap"), the agent learns to first increase the temperature to "melt" the current configuration before initiating a controlled cool-down.
  • Superior Scaling: The most significant result is the performance gain on complex spin glass systems. For $14 \times 14$ lattices, COOL achieved nearly a two-order-of-magnitude improvement in efficiency compared to classical SA.
Comparison of scaling performance ($n_{99}$) between classic SA and RL-based approaches on spin glass lattices. The RL method shows significantly better scaling as the problem size increases.

Generalization and Robustness

A critical strength of the COOL approach is its ability to generalize. An agent trained on small, random spin glass instances can successfully manage the annealing process for larger, previously unseen systems. This suggests that the agent learns fundamental strategies for the underlying physics rather than just memorizing specific problem instances. Furthermore, the inclusion of the LSTM module was found to be essential; without memory of past states, the agent's performance dropped significantly, highlighting the time-dependent nature of optimal annealing.

Conclusion and Future Work

COOL represents a significant step forward in using machine learning to solve hard physical optimization problems. While there is a computational overhead for neural network inference, the drastic reduction in the number of steps required to find ground states offers a net gain for large-scale problems. Future research will focus on scaling to even larger systems and developing "controlled observation" models where the agent also optimizes when to inspect the system to further reduce computational costs.

Summary updated

BibTeX
@article{mills2020controlled,
  author = {Kyle Mills and Pooya Ronagh and Isaac Tamblyn},
  title = {{Controlled Online Optimization Learning (COOL): Finding the ground state of spin Hamiltonians with reinforcement learning}},
  journal = {Nat. Mach. Intell.},
  year = {2020},
  doi = {10.1038/s42256-020-0226-x},
}
Figure