About
**Overview:** Transformer architectures are now central to scientific and industrial machine-learning workflows. Through this lecture, a self-attention head will be recast as a finite-dimensional Ising-like spin system,where token embeddings correspond to vector spins and attention weights emerge from learned spin–spin couplings and external fields. Transformers will be explained using the statistical physics basis for the AI-machine learning system and then we will explore how such Ising‐based formulations behave when implemented as actual attention layers running on modern GPU hardware.
Starting from a theoretical framework, we interpret self-attention as a composition of Ising Hamiltonians and translate it into a concrete, differentiable attention module. This module can replace or augment standard dot-product attention in practice. We make no claims of immediate performance advantages over already established Transformer implementations.
The session shall describe how token embeddings, couplings, and external fields are represented in code. It will cover how the corresponding mean-field or iterative update equations are implemented and explain how these choices affect numerical stability, expressivity, and training dynamics. These are compared to canonical implementations. Finally, outline and demonstrate a prototype implementation. This treats Ising-inspired attention dynamics as a time-stepping scheme. The scheme used will be a HPC explicit method simulation solver that leverages GPU acceleration.
The goal is not to propose a production-ready alternative to current libraries. Instead, to show how existing HPC toolchains for stencil-based simulations can be reused. This lets us explore dynamics, scaling, and numerical behaviour of spin-based attention models while targeting non-trivial sequence lengths. Ising attention offers a physically-grounded alternative. It simplifies scaling and masking. I aim to show how it naturally maps to HPC patterns. The aim…
The talk
Credits and licence
- Institution
- CERN
- Speaker
- Lehar Laxmi Joshi
- Year
- 2026
- Language
- English
- Subjects
- Computer science
- Source
- CERN
- Licence
- CERN, as CERN states it. CERN's terms
- Attribution
- © CERN. CERN provides its audiovisual media free of charge for educational and informational use, credited to CERN; this lecture is shown in CERN's own player.
- Who can watch
- CERN gives no rating. Invisible Network shows it to Tweens profiles and older, judged from what the source says about it. How courses are placed