English

A differentiable programming framework for spin models

Statistical Mechanics 2024-05-28 v2 Machine Learning

Abstract

We introduce a novel framework for simulating spin models using differentiable programming, an approach that leverages the advancements in machine learning and computational efficiency. We focus on three distinct spin systems: the Ising model, the Potts model, and the Cellular Potts model, demonstrating the practicality and scalability of our framework in modeling these complex systems. Additionally, this framework allows for the optimization of spin models, which can adjust the parameters of a system by a defined objective function. In order to simulate these models, we adapt the Metropolis-Hastings algorithm to a differentiable programming paradigm, employing batched tensors for simulating spin lattices. This adaptation not only facilitates the integration with existing deep learning tools but also significantly enhances computational speed through parallel processing capabilities, as it can be implemented on different hardware architectures, including GPUs and TPUs.

Keywords

Cite

@article{arxiv.2304.01772,
  title  = {A differentiable programming framework for spin models},
  author = {Tiago de Souza Farias and Vitor Vaz Schultz and José Carlos Merino Mombach and Jonas Maziero},
  journal= {arXiv preprint arXiv:2304.01772},
  year   = {2024}
}

Comments

18 pages, 9 figures

R2 v1 2026-06-28T09:48:58.692Z