arXiv:2611.06597cs.LGNov 2026

Manuscript Offprint

arXiv:2611.06597

A trust layer for fast pedestal-stability surrogates: calibrated error bars, out-of-distribution alarms and few-shot recalibration

Amin Vakhshouri

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Amin Vakhshouri a)^{a)}

dataquanta LLC, Delaware, USA

(Dated: 5 November 2026)

Machine-learning surrogates of linear peeling-ballooning stability now run in milliseconds, but they are mostly deployed as point estimators: they do not say how wrong they may be, or when a query lies outside what they were trained on. For a fusion company designing a new device, every equilibrium of interest is outside the training data of existing surrogates, so this is the case that matters. We describe a model-agnostic trust layer for stability surrogates, made of conformal error bars, out-of-distribution alarms that route doubtful cases to the physics code, and recalibration from a few simulations of a new design, and we test it with pre-registered hypotheses. On a large public dataset of JET-like equilibria with ideal-MHD growth rates, the error bars hold their nominal coverage in distribution and fall short under a shift in plasma shape; a few dozen simulations of the new shape, or routing the cases the alarms flag, restore it. On resistive BOUT++ surrogates, the bars stay calibrated on held-out runs, the alarm flags tokamaks absent from training, and a scenario scan is screened in seconds instead of hours. Across equilibria from the SPARC library and the DIII-D coil set, a surrogate trained on our own graded BOUT++ labels beats the baseline on unseen equilibria, while a surrogate trained elsewhere ranks the same cases backwards and its alarm declines them. Building our own neural-operator surrogate, the harness exposed two input defects whose fix closed its gap to a simple network. For every surrogate tested, the trust layer keeps coverage near target, with a bar width set by that surrogate's own error. Not every pre-registered hypothesis held, and we report those results and the limits of all of them.

I. INTRODUCTION

Linear stability of the edge pedestal to peeling-ballooning modes sets the pedestal height in predictive models such as EPED 1^{1} and constrains the operating space of present and planned tokamaks. Codes that compute it (ELITE, MISHKA, BOUT++, PB3D) need minutes to hours per equilibrium 2,3^{2,3}, so scenario scans and between-shot analysis are rationed by compute. Machine-learning surrogates remove that bottleneck: EPED1-NN 4^{4}, EuroPED-NN 5^{5}, MISHKA-NN 6^{6}, KARHU 7^{7} and, most recently, ELMO 8^{8} predict pedestal or stability quantities in milliseconds.

Speed alone does not make a surrogate usable for decisions. A physicist or an engineer will act on a growth rate only if it comes with an error bar that means what it says, and with a warning when the input is unlike the training data. Existing pedestal surrogates either return point estimates (KARHU, MISHKA-NN, EPED1-NN) or Bayesian uncertainties whose calibration is not guaranteed: ELMO's authors report that their Gaussian-process intervals cover 62% of test cases at a nominal 68% and 86% at a nominal 95% 8^{8}. The problem is sharpest for fusion companies designing new devices, whose equilibria are by construction outside the training distribution of every existing surrogate.

This paper treats the missing piece, a trust layer, as the object of study. The layer wraps any surrogate and supplies (i) distribution-free conformal intervals with a finite-sample coverage guarantee under exchangeability 9,10^{9,10}, (ii) out-of-distribution (OOD) alarms that route unfamiliar cases to the physics code, and (iii) cheap recalibration on a handful of labelled cases from a new device. Conformal prediction has been applied to fusion field surrogates by Gopakumar et al. 11,12^{11,12}; to our knowledge this is its first systematic test on a stability surrogate, together with shift, alarms and recalibration.

Contributions:

  1. A pre-registered evaluation of the trust layer on the public KARHU dataset (38,879 equilibria) 13^{13}, under a controlled plasma-shape shift, with all outcomes reported.

  2. Two practical onboarding paths for a new device: recalibration on ∼\sim30 labelled cases, or zero-label routing of flagged cases to the physics code.

  3. A resistive BOUT++ case study with real-machine equilibria: calibrated intervals, an ensemble alarm that separates seen from unseen tokamaks, and a decision-level scenario scan.

  4. The same harness applied to our own architecture, which exposed two input defects (a radial grid too coarse at the pedestal and unscaled profiles) and confirmed their fix on a pre-registered shifted test.

  5. A pre-registered onboarding test (how many simulations of a new design, chosen how) and a path from a G-EQDSK file to a calibrated answer or a reasoned refusal.

  6. An account of what went wrong along the way (Sec. VI), including a reported number we could not reproduce.

a) Electronic mail: amin@dataquanta.io