Equivariant Transformer raises SLMC acceptance and reproduces observables on a 2D spin-fermion lattice

October 20, 20236 min

Overview

Production Readiness

0.3

Novelty Score

0.6

Cost Impact Score

0.4

Citation Count

0

Authors

Akio Tomiya, Yuki Nagai

Links

Abstract / PDF

Why It Matters For Business

If you run Monte Carlo samplers or physics-informed simulators, embedding symmetry-aware attention improves proposal acceptance and preserves observables, which can cut compute per independent sample and reduce simulation cost.

Summary TLDR

This paper builds an "equivariant Transformer"—an attention-based neural net that respects O(3) spin symmetry—and uses it as the effective model inside Self-Learning Monte Carlo (SLMC). On a 6×6 double-exchange spin-fermion lattice, the equivariant Transformer matches exact diagonalization for magnetization, improves Metropolis acceptance compared to a linear effective model (linear baseline: 21% acceptance), and shows a power-law scaling of loss versus model size. Results are proof-of-principle on a small lattice and the origin of the scaling law is left open.

Problem Statement

Linear effective models in SLMC miss long-range, symmetry-preserving correlations generated by integrating out fermions, which lowers proposal acceptance and sampling efficiency. The work aims to add global attention while enforcing physical O(3) symmetry so SLMC proposals both respect symmetry and capture nonlocal correlations.

Main Contribution

Design of an equivariant self-attention block that preserves O(3) spin-rotation equivariance for lattice spin inputs.

Integration of Transformer-derived effective spins into the SLMC effective Hamiltonian and training with AdamW to raise acceptance.

Proof-of-principle experiments on a 2D double-exchange spin-fermion model showing better acceptance, correct magnetization, and a power-law loss vs parameters.

Key Findings

Attention layers raise SLMC acceptance compared to a linear effective model.

NumbersLinear model acceptance = 21% on 6×6 lattice at T=0.05 t; acceptance increases with number of attention layers (Fig.4, L

Equivariant Transformer reproduces key physical observables.

NumbersMagnetization and staggered magnetization from SLMC with attention match exact diagonalization on 6×6 (Fig.3); samples:

Loss (MSE) scales with model size following a power-law for attention models (excluding linear and L=1).

NumbersMSE vs trainable parameters shows power-law fit for L≥2 (Fig.4 right)

Results

Acceptance ratio (SLMC proposals)

ValueLinear baseline 21% on 6×6 at T=0.05 t; acceptance rises with attention layers L=1..6 (Fig.4 left)

BaselineLinear effective model (21%)

Reproduction of observables

ValueMagnetization and staggered magnetization from attention-based SLMC match exact diagonalization on 6×6 (Fig.3)

BaselineExact diagonalization

Loss scaling (MSE vs parameters)

ValuePower-law decrease of MSE with trainable parameters for attention models L≥2; linear and L=1 excluded from fit (Fig.4, r

BaselineLinear model excluded

Who Should Care

What To Try In 7 Days

Implement an equivariant attention block that preserves O(3) rotation on your spin inputs

Replace a linear effective model in SLMC with the equivariant Transformer on a small lattice (6×6)

Train with AdamW and track acceptance ratio and magnetization against exact diagonalization or high‑quality baseline samples

Optimization Features

Model Optimization

  • Embed O(3) equivariance via attention-based weight sharing

Training Optimization

  • Train effective model parameters with AdamW

Reproducibility

Open Source Status

  • unknown

Risks & Boundaries

Limitations

  • Experiments limited to a small 6×6 lattice; generalization to larger systems untested
  • Proof-of-principle only; no public code released in paper
  • No theoretical explanation for observed scaling law; origin left for future work

When Not To Use

  • If you must run exact analytic methods or ED for larger lattices where Transformer cost is prohibitive
  • If your problem lacks the same O(3) symmetry or you cannot enforce equivariance

Failure Modes

  • If attention weights collapse to zero the block becomes identity and yields no improvement
  • Overfitting to training SLMC samples could reduce outer-chain acceptance
  • Scaling law may not hold outside the tested model size or data regime

Core Entities

Models

  • Equivariant Transformer (proposed)
  • Linear effective model (baseline)
  • Transformer attention block

Metrics

  • Acceptance ratio (Metropolis)
  • Mean squared error (MSE) / loss estimated from acceptance
  • Magnetization
  • Staggered magnetization

Datasets

  • Double-exchange spin-fermion model, 2D lattice (6×6)
  • Synthetic SLMC samples and exact diagonalization (ED) samples