FLARE: Flow Matching with Local Axis-Angle Representations for Stochastic Micromagnetic Evolution
Organizations: State Key Laboratory of Quantum Functional Materials, Department of Physics, and Guangdong Basic Research Center of Excellence for Quantum Science, Southern University of Science and Technology, Shenzhen 518055, China
Abstract
Long-horizon micromagnetic simulation remains expensive because conventional and learned solvers typically propagate Landau--Lifshitz--Gilbert (LLG) dynamics step by step. Existing learned approaches generally retain stepwise integration or model deterministic evolution, leaving full-field, direct-horizon stochastic prediction largely unexplored. We propose FLARE, a flow-matching framework that recasts stochastic finite-time magnetization prediction as conditional transport over anchor-relative local axis-angle rotations. This rotation-space formulation respects the intrinsic geometry of magnetization dynamics and preserves pointwise unit norm by construction. By explicitly conditioning on the physical prediction horizon, FLARE directly generates full-field stochastic endpoints across multiple target times without stepwise integration. Against the strongest single-checkpoint external baseline on each metric, FLARE achieves 29.9% lower angular energy distance (), and a 37.3% lower fair energy score (0.393). On a representative composed 5-ns two-segment protocol, FLARE achieves a best-batch speedup over the widely used GPU micromagnetic solver MuMax on a single GPU.
Figures & tables
| Method | latency (ms) | Distribution Score | Paired angle ( ∘ ) | Angular energy dist. ( ∘ ) | Fair energy score | speedup | Best-batch speedup |
| Reference | |||||||
| MuMax 3 5 vs 5 | – | 0.862 [0.801, 0.915] | 30.25 [23.89, 36.66] | 12.20 [9.62, 14.86] | – | – | – |
| FLARE ODE-10 | 995.2 | 0.762 [0.660, 0.844] | 36.72 [31.93, 41.38] | 15.30 [13.32, 17.26] | 0.393 [0.356, 0.430] | ||
| Poseidon-T | 61.91 | 0.341 [0.077, 0.749] | 35.60 [30.60, 41.11] | 25.05 [17.86, 34.56] | 0.751 [0.672, 0.830] | ||
| CNO-FM | 72.89 | 0.695 [0.577, 0.787] | 34.43 [30.41, 38.33] | 21.82 [17.94, 26.23] | 0.745 [0.682, 0.807] | ||
| DPOT-Ti | 91.13 | 0.707 [0.599, 0.803] | 39.81 [34.46, 45.59] | 27.02 [19.98, 36.58] | 0.814 [0.735, 0.893] | ||
| Variant | Distribution Score | Angular energy dist. ( ∘ ) | Paired angle ( ∘ ) | Fair energy score |
|---|---|---|---|---|
| (a) Representation and objective controls: three training seeds | ||||
| FLARE | ||||
| FLARE(Fixed 2D tangent) | ||||
| Cartesian CFM | ||||
| Riemannian FM | ||||
| Direct U-Net | ||||
Appendix figures & tables41 assets
Supplementary material from the paper’s appendix.
Appendix
| Item | Value | Item | Value |
| Grid | Trainable parameters | 65,260,803 | |
| Image channels | 19 | Base width / multipliers | 64 / |
| Residual blocks | 2 per level | Bottleneck attention | 8 heads |
| Global condition width | 512 | Group normalization | 8 groups |
| Stage–1 updates | 50,000 | Global batch | 128 |
| Optimizer | AdamW | Learning rate |
| Quantity | Value or realized support |
|---|---|
| Film and discretization | cells of nm 3 ; nm square film; open boundaries; edge smoothing 8 |
| Material constants | A m -1 , J m -1 , J m -3 , and in every base |
| DMI content | Interfacial Dzyaloshinskii–Moriya interaction in every base, J m -2 ; no zero-DMI or bulk-DMI cases |
| Temperature | K (334), K (333), or K (333), with an independent MuMax 3 thermal seed for each repeat |
| Applied field | Uniform mT (200/200/200/201/199) |
| SOT current | Slonczewski SOT on a static spatial mask; signed nonzero drive amplitude to A m -2 , with A m -2 ; after the pulse |
| Collection | Items | Base clusters | Draws per item | Segment role | Use |
|---|---|---|---|---|---|
| Training / validation / test trajectories | 6,227 / 786 / 757 | split by base | – | both | Optimization and held-out evaluation |
| Single segment | 1,493 cases | 100 | 4 | within segment | Single-segment evaluation |
| Complete-path prediction distribution | 33 conditions | 33 | 5 | drive predicted handoff relax | Distribution Score and angular energy distance |
| MuMax 3 repeat reference | 34 conditions | 17 | 30 | 17 drive + 17 relax | Two-repeat angle, five-versus-five distances, and driven exact-anchor score |
| Exact-anchor complete paths (Table 1 ) | 165 anchors | 33 | 5 stochastic / 1 deterministic | drive predicted handoff relax | Fair energy score |
| Multi-stage rollouts | 736 rollouts | 97 | fixed | two or more | Teacher-forced and autoregressive evaluation |
| Setting | FLARE | Best comparator | FLARE/comparator [95% CI] |
|---|---|---|---|
| Bandwidth | 0.3274 | PDEArena 0.2330 | 1.405 [1.256, 1.590] |
| Bandwidth | 0.8050 | PDEArena 0.7362 | 1.094 [1.059, 1.132] |
| Bandwidth | 0.9543 | PDEArena 0.9287 | 1.028 [1.016, 1.040] |
| No translation | 0.8318 | PDEArena 0.7769 | 1.071 [1.039, 1.107] |
| Metric | Combined [95% CI] | Driven [95% CI] | Post-relaxation [95% CI] | MuMax 3 repeat protocol |
|---|---|---|---|---|
| Distribution Score | 0.901 [0.866, 0.930] | 0.941 [0.927, 0.953] | 0.862 [0.801, 0.915] | Disjoint five versus five |
| Two-repeat angle ( ∘ ) | 28.86 [22.84, 34.82] | 27.47 [21.51, 33.37] | 30.25 [23.89, 36.66] | All distinct trajectory pairs |
| Angular energy distance ( ∘ ) | 11.60 [9.17, 14.07] | 10.99 [8.62, 13.35] | 12.20 [9.62, 14.86] | Disjoint five versus five |
| Fair energy score | – | 0.283 [0.230, 0.335] | – | Same exact anchor; disjoint forecasts/targets |
| Source comparison | Budget | Distribution Score | Angular energy dist. ( ∘ ) | Fair energy score |
|---|---|---|---|---|
| FLARE–MuMax 3 | vs. | 0.620 [0.474, 0.781] | 36.03 [29.85, 41.91] | – |
| FLARE–MuMax 3 | vs. | 0.658 [0.516, 0.816] | 22.06 [18.37, 25.74] | 0.3105 [0.2592, 0.3594] |
| FLARE–MuMax 3 | vs. | 0.691 [0.553, 0.836] | 13.53 [11.42, 15.60] | 0.3095 [0.2615, 0.3565] |
| FLARE–MuMax 3 | vs. | 0.694 [0.556, 0.841] | 10.70 [9.08, 12.37] | 0.3094 [0.2631, 0.3577] |
| FLARE–MuMax 3 | vs. | 0.694 [0.553, 0.845] | 9.31 [7.87, 10.75] | 0.3092 [0.2620, 0.3562] |
| MuMax 3 –MuMax 3 | vs. | 0.908 [0.886, 0.930] | 11.53 [9.15, 13.95] | 0.2831 [0.2306, 0.3357] |
| Perturbation | Pixel angle | Pixel MSE | |||||
|---|---|---|---|---|---|---|---|
| Skyrmion displacement | 0.02485 | 0.000 | 0.03727 | 0.00395 | 0.00000 | 0.00000 | |
| Topology disappearance | 0.04043 | 0.983 | 0.06064 | 0.04790 | 0.03712 | 0.03032 | |
| Domain-wall shift | 0.06456 | 0.000 | 0.09683 | 0.02517 | 0.00000 | 0.00000 |
| (a) Physical-observable distribution error | |||
|---|---|---|---|
| Method | |||
| FLARE ODE-10 | 0.48 | 0.0283 | 0.00352 |
| Poseidon-T | 1.88 | 0.0458 | 0.03598 |
| CNO-FM | 1.64 | 0.0470 | 0.03703 |
| DPOT-Ti | 0.77 | 0.0796 | 0.03831 |
| MPP-AViT-Ti | 0.83 | 0.0827 | 0.03743 |
| Method / batch | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 512 | 1024 | 2048 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| FLARE ODE-10 | 995.2 | 554.6 | 353.2 | 245.8 | 191.6 | 163.9 | 150.3 | 145.7 | – | – | – | – |
| Poseidon-T | 61.91 | 32.61 | 16.90 | 8.451 | 4.140 | 2.223 | 1.268 | 0.8515 | 0.7038 | 0.6689 | 0.6499 | 0.7609 |
| CNO-FM | 72.89 | 42.73 | 21.44 | 10.76 | 5.415 | 3.824 | 3.569 | 3.429 | 3.377 | 3.354 | 3.382 | 3.406 |
| DPOT-Ti | 91.13 | 49.80 | 28.55 | 17.65 | 12.32 | 9.906 | 9.231 | 9.591 | 9.448 | – | – | – |
| MPP-AViT-Ti | 613.4 | 332.4 | 194.2 | 147.1 | 135.0 | 123.7 | 121.4 | 119.6 | – | – | – | – |
| PDEArena U-Net | 40.17 | 20.53 | 14.15 | 11.58 | 10.58 | 10.12 | 9.871 | 9.758 | 9.892 | 10.61 | 10.94 | – |
| Method | Work in one fixed 2+3-ns timed output | Train H200-h | Train peak (GiB) | peak (GiB) | Fastest / peak (GiB) |
|---|---|---|---|---|---|
| FLARE ODE-10 | 20 Heun steps; 40 velocity evaluations | 15.20 | 0.539 | 128 / 18.54 | |
| Poseidon-T | Two lead-time-conditioned endpoint calls | 3.71 | 1.15 | 0.182 | 1024 / 65.62 |
| CNO-FM | Two lead-time-conditioned endpoint calls | 6.83 | 4.61 | 0.493 | 512 / 27.44 |
| DPOT-Ti | 20 recurrent 0.25-ns calls | 6.91 | 2.38 | 0.350 | 64 / 18.61 |
| MPP-AViT-Ti | 20 recurrent 0.25-ns calls | 6.77 | 12.29 | 0.887 | 128 / 105.97 |
| PDEArena U-Net | 20 recurrent 0.25-ns calls | 0.953 | 1.58 | 0.270 | 128 / 12.55 |
| Horizon (ns) | Support | Distribution Score | Paired angle ( ∘ ) | Angular energy dist. ( ∘ ) | Fair energy score | |
|---|---|---|---|---|---|---|
| 1.0 | seen | 33 | 0.823 [0.783, 0.857] | 29.17 [25.28, 33.09] | 11.83 [10.27, 13.48] | 0.3189 [0.2820, 0.3559] |
| 1.5 | interpolation | 33 | 0.793 [0.727, 0.848] | 30.86 [26.65, 34.85] | 12.48 [10.76, 14.15] | 0.3397 [0.3008, 0.3780] |
| 2.0 | seen | 33 | 0.777 [0.706, 0.839] | 31.38 [27.13, 35.44] | 12.74 [11.05, 14.47] | 0.3446 [0.3058, 0.3822] |
| 2.5 | interpolation | 33 | 0.776 [0.708, 0.838] | 32.39 [28.15, 36.84] | 13.18 [11.47, 14.95] | 0.3594 [0.3207, 0.3986] |
| 3.0 | seen | 33 | 0.780 [0.713, 0.843] | 32.87 [28.27, 37.21] | 13.54 [11.68, 15.46] | 0.3622 [0.3225, 0.4020] |
| 3.5 | no exact saved target | 0 | – | – | – | – |
| Horizon (ns) | Model spread ( ∘ ) | MuMax 3 spread ( ∘ ) | Spread ratio [95% CI] | |||
|---|---|---|---|---|---|---|
| 1.0 | 0.24 [0.20, 0.29] | 0.0215 [0.0171, 0.0261] | 0.00294 [0.00261, 0.00329] | 49.28 | 49.64 | 0.993 [0.982, 1.002] |
| 1.5 | 0.32 [0.25, 0.40] | 0.0266 [0.0205, 0.0335] | 0.00356 [0.00315, 0.00402] | 48.85 | 49.28 | 0.991 [0.979, 1.003] |
| 2.0 | 0.32 [0.27, 0.38] | 0.0261 [0.0204, 0.0331] | 0.00386 [0.00336, 0.00444] | 48.46 | 48.90 | 0.991 [0.978, 1.003] |
| 2.5 | 0.37 [0.29, 0.44] | 0.0312 [0.0238, 0.0406] | 0.00424 [0.00374, 0.00480] | 48.05 | 48.30 | 0.995 [0.980, 1.008] |
| 3.0 | 0.43 [0.31, 0.55] | 0.0316 [0.0234, 0.0428] | 0.00439 [0.00391, 0.00494] | 47.51 | 47.58 | 0.999 [0.984, 1.012] |
| Variant | Distribution Score | Angular energy dist. ( ∘ ) | Paired angle ( ∘ ) | Fair energy score |
|---|---|---|---|---|
| FLARE (one checkpoint) | 0.762 [0.660, 0.844] | 15.30 [13.32, 17.26] | 36.72 [31.93, 41.38] | 0.393 [0.356, 0.430] |
| Direct U-Net | 0.472 [0.188, 0.778] | 20.91 [17.89, 24.24] | 38.88 [34.61, 43.04] | 0.541 [0.499, 0.580] |
| CNO-FM | 0.717 [0.619, 0.799] | 20.52 [17.23, 24.15] | 35.14 [31.28, 38.94] | 0.535 [0.488, 0.582] |
| DPOT-Ti | 0.744 [0.660, 0.818] | 25.86 [20.06, 32.43] | 40.76 [35.23, 46.34] | 0.569 [0.510, 0.628] |
| Poseidon-T | 0.703 [0.610, 0.780] | 18.93 [16.06, 22.04] | 33.31 [29.12, 37.41] | 0.503 [0.456, 0.548] |
| PDEArena U-Net | 0.515 [0.264, 0.760] | 24.86 [19.55, 30.91] | 38.96 [33.38, 44.56] | 0.558 [0.493, 0.623] |
| Jitter ( ∘ ) | Direct U-Net | CNO-FM | DPOT-Ti | Poseidon-T | PDEArena U-Net |
|---|---|---|---|---|---|
| 0 | 0.8077 | 0.7451 | 0.8140 | 0.7515 | 0.7743 |
| 0.25 | 0.7914 | 0.7437 | 0.8123 | 0.7481 | 0.7721 |
| 0.5 | 0.7819 | 0.7425 | 0.8109 | 0.7453 | 0.7710 |
| 1 | 0.7633 | 0.7401 | 0.8083 | 0.7402 | 0.7675 |
| 2 | 0.7338 | 0.7355 | 0.8035 | 0.7312 | 0.7638 |
| 5 | 0.6778 | 0.7233 | 0.7873 | 0.7062 | 0.7502 |
| Method | Ground-truth-boundary angle ( ∘ ) | Rollout angle ( ∘ ) | Rollout degradation ( ∘ ) |
|---|---|---|---|
| FLARE-S1 | 32.82 [30.27, 35.38] | 37.74 [34.95, 40.44] | 4.92 [4.12, 5.79] |
| FLARE-S2-GT | 31.82 [29.30, 34.33] | 36.52 [33.80, 39.22] | 4.70 [3.86, 5.62] |
| FLARE-S2-mixed | 32.27 [29.73, 34.81] | 36.80 [34.05, 39.55] | 4.53 [3.70, 5.42] |
| Evaluation | ID angle ( ∘ ) | Ring-OOD angle ( ∘ ) | ( ∘ ) | (%) |
|---|---|---|---|---|
| Single segment | 29.05 [26.42, 31.73] | 29.96 [28.36, 31.59] | +0.91 | +3.12 |
| Autoregressive handoff | 31.40 [28.64, 34.15] | 32.35 [30.64, 34.05] | +0.95 | +3.04 |
| Evaluation | Non-ring ID [95% CI] | Held-out ring [95% CI] |
|---|---|---|
| Single-segment angle ( ∘ ) | 29.05 [26.42, 31.73] | 29.96 [28.36, 31.59] |
| Single-segment MSE | 0.42 [0.37, 0.48] | 0.44 [0.41, 0.47] |
| Single-segment | 0.54 [0.477, 0.60] | 0.56 [0.52, 0.60] |
| Teacher-forced rollout angle ( ∘ ) | 28.85 [26.14, 31.60] | 29.92 [28.26, 31.59] |
| Autoregressive rollout angle ( ∘ ) | 31.40 [28.64, 34.15] | 32.35 [30.64, 34.05] |
| Final-step angle ( ∘ ) | 35.42 [32.28, 38.60] | 36.21 [34.28, 38.13] |
| Metric | ID interpolation reference | Unseen temperature | Absolute degradation [95% CI] | Relative degradation [95% CI] | |
|---|---|---|---|---|---|
| 90 K | Single-segment angle ( ∘ ) | 23.815 | 24.118 | [ , ] | [ , ] |
| 90 K | Autoregressive handoff angle ( ∘ ) | 31.213 | 29.917 | [ , ] | [ , ] |
| 90 K | Distribution Score | 0.6687 | 0.7380 | [ , ] | [ , ] |
| 90 K | Angular energy distance ( ∘ ) | 12.749 | 12.385 | [ , ] | [ , ] |
| 225 K | Single-segment angle ( ∘ ) | 37.291 | 37.903 | [ , ] | [ , ] |
| 225 K | Autoregressive handoff angle ( ∘ ) | 44.320 | 45.372 | [ , ] | [ , ] |
| Method class | Full state | Direct | Stoch. | Magn. | Status |
|---|---|---|---|---|---|
| Classical solvers | reference | ||||
| Hybrid learned solvers | compared | ||||
| Reduced-order dynamics | partial | not compared | |||
| Observable-level neural ODE | n/a | ||||
| Static-field / energy minimization | – | – | n/a | ||
| Texture recognition / inversion | – | – | – | n/a |