NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Record acceleration of the two-dimensional Ising model using a high-performance wafer-scale engine

Dirk Van Essendelft, Hayl Almolyki, Wei Shi, Terry Jordan, Mei-Yu Wang, Wissam A. SaidiComput. Phys. Commun 2025

Abstract

The simulation of the two-dimensional Ising model is a fundamental task in statistical mechanics, yet traditional hardware architectures often struggle with the "memory wall" and communication latencies. This paper details a record-breaking implementation on the Cerebras Wafer-Scale Engine (WSE), achieving an aggregate throughput of 61.8 trillion spin-flip attempts per second. By utilizing hardware-aware optimizations such as domain folding and compressed bit representation, this approach outperforms state-of-the-art GPU implementations by up to 148x, demonstrating the potential of wafer-scale computing for massive parallel simulations.

Introduction

The Ising model serves as a cornerstone for understanding phase transitions and magnetic phenomena in physics. Due to its simple local update rules and high degree of parallelism, it has also become a standard benchmark for evaluating high-performance computing (HPC) hardware. However, as lattice sizes grow and the need for statistical ensemble averaging increases, traditional architectures like CPUs and GPUs encounter significant bottlenecks.

The primary challenge is the "memory wall"—the growing disparity between processor speed and memory access latency. In standard systems, moving data between the processing units and main memory (HBM or DDR) is significantly slower than the computation itself. Furthermore, scaling these simulations across multiple chips introduces network latency that can cripple performance. This study explores the use of the Cerebras Wafer-Scale Engine (WSE) to bypass these limitations.

The Wafer-Scale Advantage

The Cerebras WSE is the world’s largest computer chip, featuring nearly a million cores on a single silicon wafer. Unlike traditional GPUs that rely on High Bandwidth Memory (HBM), the WSE utilizes all-SRAM memory integrated directly into the processing elements (PEs). This architecture provides memory access at L1 cache speeds across the entire device, effectively eliminating the memory wall for grid-based simulations.

Methodology and Optimizations

To maximize the WSE's throughput, the researchers implemented the checkerboard algorithm. This method divides the lattice into two sub-lattices (red and black), allowing all spins of one color to be updated simultaneously without violating the model's dependencies. Several novel optimizations were introduced to tailor the algorithm to the WSE:

Compressed Bit Representation

To optimize memory traffic and computational efficiency, 16 spins were packed into a single 16-bit integer (int16). This allowed for bitwise operations to process multiple spin updates in a single clock cycle, significantly increasing the effective flip rate.

Domain Folding

A significant challenge in Ising simulations is the implementation of periodic boundary conditions. Standard implementations often require global communication to connect the "top" and "bottom" or "left" and "right" edges of a grid. The researchers employed "domain folding," a technique that halves and reverses the spin arrays. This transformation ensures that all necessary communications occur only between immediate neighboring PEs, converting a global communication problem into a local one. This resulted in "perfect weak scaling," where performance scales linearly with the number of cores.

Massive Parallelism via WFA

The simulations were developed using the Wafer-Field-equation Application-programming-interface (WFA). The WSE was configured to run up to 754 independent simulations concurrently. By assigning each simulation to a specific column of PEs, researchers could explore a wide range of temperatures or parameters in a single execution pass.

Results and Performance

The implementation achieved a peak aggregate throughput of 61.8 trillion spin-flip attempts per second.

Comparative Benchmarks

When compared to highly optimized GPU implementations, the WSE demonstrated substantial leads:

  • 148x speedup over the NVIDIA V100.
  • 88x higher productivity compared to the NVIDIA H100 for parallel simulation tasks.

Physical Accuracy

The fidelity of the simulation was verified against Onsager’s analytical solution. The WSE correctly predicted the critical temperature ($T_c/J \approx 2.269$) and matched the expected magnetization curves. This also served as a validation of the WSE’s high-quality pseudo-random number generation, which is critical for Monte Carlo methods.

Discussion: Productivity vs. Capacity

A common critique of SRAM-based architectures is their limited memory capacity compared to GPUs equipped with 80GB of HBM. While a GPU can store a larger single lattice, the authors argue that this is often a "vanity metric." For extremely large lattices (e.g., 168 billion spins), the time required to reach equilibrium on a GPU would exceed a thousand years.

In contrast, the WSE focuses on "productivity"—the ability to run hundreds of scientifically relevant, smaller-scale simulations simultaneously. This allows researchers to gather statistical data across various parameters in hours rather than decades, making it a more practical tool for actual scientific discovery.

Conclusion

The record-breaking performance on the Cerebras WSE highlights a shift in how we approach large-scale physics simulations. By moving away from traditional memory hierarchies and embracing hardware-aware algorithmic design, researchers can overcome the bottlenecks of the "memory wall." Future work will look toward extending these techniques to 3D Ising models and more complex Hamiltonians, further expanding the horizons of computational statistical mechanics.

Summary updated

BibTeX
@article{essendelft2025record,
  author = {Dirk Van Essendelft and Hayl Almolyki and Wei Shi and Terry Jordan and Mei-Yu Wang and Wissam A. Saidi},
  title = {{Record acceleration of the two-dimensional Ising model using a high-performance wafer-scale engine}},
  journal = {Comput. Phys. Commun.},
  year = {2025},
  doi = {10.1016/j.cpc.2025.109734},
}
Figure