Skip to content

About

Tokamak equilibrium reconstruction without magnetic measurements: the Anulum entry to the Fusion Equilibrium Challenge (NeurIPS 2026). Code, weights, study and the full experiment record.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

84 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Fusion Equilibrium Challenge: the Anulum entry

Reproduce Docs Weights License: AGPL-3.0-or-later Commercial licence DOI Software Heritage Sponsor Buy Me a Coffee

Tokamak equilibrium without magnetic probes: the Anulum entry to the Fusion Equilibrium Challenge, with predicted flux surfaces of one DIII-D frame

This repository is the reproduction package and the permanent record of one entry to the Fusion Equilibrium Challenge (NeurIPS 2026 competition, Codabench competition 17739), organised by Sophelio. The task: reconstruct the poloidal flux map of a tokamak plasma, and the two scalars q95 and βN, from coil currents, measured plasma current I_p and Thomson-scattering profiles, without magnetic probes or flux-loop measurements.

The entry is submitted by Anulum (Miroslav Šotek). It was developed with Arcane Sapience, the entrant's research system built on large language models; see How the work was done.

Audit your own maps

The map audit measures field, current and GS-form diagnostics without this entry's trained weights. Supply a single-map NPZ with explicitly declared coordinates, units and flux convention; the guide explains masks, optional references, support counts and input refusal codes. The audit does not compute the competition score or certify physical force balance.

Calibrated examples show how fitted GS residual and field error can differ. The Physics audit explains the measured results and public reproduction commands.

Result

Development phase, public test folds, submission 986068 (14 October 2026):

Quantity DIII-D (Challenge 1) MAST (Challenge 2, zero-shot)
Composite score S 0.996359 0.714450
Flux map R² 0.999883 0.979450
q95 and βN R² 0.998005 0.330685
Boundary distance D_LCFS 0.008180 0.191791
Consistency of derived scalars 0.987704 0.226646

On that day the entry stood tenth of 129 on DIII-D, and eleventh when the Development phase closed; the leading score was 0.9970.

Public DIII-D score step by step The Final phase is scored on blind folds; its result is added here when it is published.

Final submission 1003274 finished on 19 October 2026; its scores remain hidden until the Final closes. Its original source commit is 19d2d341…; tag final-submission-2026-10-19 retains the same inference source. The weights revision is 398d05cc…. The Development scores above are not Final results.

What the model is

  • DIII-D. 69 multilayer perceptrons answer the coordinates of the flux map in a principal-direction basis, together with auxiliary heads for the axis, shape, internal inductance, X-points and boundary. Four gradient-boosted tree heads, eight networks for q95 and βN, and eight networks for the X-point positions are blended in with fixed weights. A finishing step edits each map so that the scorer reads the predicted axis, boundary, shape and X-points.
  • MAST. No model is trained on MAST. Each frame is reconstructed from the vacuum flux of the coil set and a plasma current fitted to the measured plasma current and to equal flux where the Thomson profile reads equal electron temperature.

docs/METHODS_REPORT.md gives the method in two pages, including what was tried and did not help.

Reproduce the predictions

A first look in five minutes: notebooks/quickstart.ipynb runs the entry on one public DIII-D shot and draws the predicted flux surfaces (open in Colab).

CPython 3.12 on Linux x86-64; CPU only. Each requirements-*.txt is a complete lock: every package, transitive ones included, is pinned with its SHA-256 hashes. The commands use uv.

uv venv --python 3.12.3 .venv
uv pip sync --python .venv/bin/python --require-hashes requirements-inference-cpu.txt
.venv/bin/python fetch_weights.py                  # downloads models/ and verifies every file
export OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 JAX_PLATFORMS=cpu JAX_ENABLE_X64=1
.venv/bin/python -B infer.py --machine d3d  --data-root /path/to/data --split diii_d_public_test --workers 8 --out d3d.npz
.venv/bin/python -B infer.py --machine mast --data-root /path/to/data --split mast_public_test  --workers 8 --out mast.npz

--split is the name of any directory of shot files under --data-root; nothing is tied to the public folds. Each run writes the archive in the challenge format and a receipt with coverage, source and weight hashes, wall time and the archive's SHA-256.

Whole-fold and worker-count comparisons below used the two-Xeon build host. The separate hosted-CI row reports the cross-CPU check. What has been checked:

Check Outcome
Whole public DIII-D fold, 874 shots, 193 359 frames every map and scalar bit-identical to the submitted archive
Whole public MAST fold, 1 206 shots, 69 075 frames every map and scalar bit-identical to the submitted archive, run with an earlier version of the package (package_v2); the current package has not been run on the whole MAST fold again
Fresh environment from requirements-inference-cpu.txt, new directories bit-identical on the shots run
22 worker processes against one bit-identical
GitHub-hosted runner (another CPU), first public DIII-D shot observed q95 and βN bit-identical; maximum flux difference 7.5 × 10⁻⁹; CI checks numerical tolerances
Google Colab, the quickstart notebook, 19 October 2026 runs end to end

Measured on a host with two Intel Xeon E5-2640 (24 threads) and 8 workers: 6 h 14 min for the DIII-D fold and 1 h 52 min for the MAST fold (with package_v2). With 22 workers the DIII-D fold took 3 h 15 min, again bit-identical; 22 workers need about 42 GiB of memory.

For MAST, a shot in which no frame can be solved takes the mean current pattern of the solved frames of the supplied fold, and missing scalars take the fold's median. Both come from inputs only; the answer for such a shot therefore depends on the fold it is supplied with.

Rebuild the model from the released data

Training uses its own environment, separate from the inference one (same platform scope):

uv venv --python 3.12.3 .venv-train
uv pip sync --python .venv-train/bin/python --require-hashes requirements-training-cuda.txt   # or requirements-training-cpu.txt
.venv-train/bin/python train.py --raw-dir /path/to/data/diii_d_train --out /work/full --platform cuda
.venv-train/bin/python train.py --raw-dir /path/to/data/diii_d_train --out /work/smoke --limit 4     # whole chain in minutes

train.py goes from the raw shot files to a complete model directory with its own manifest and a runnable copy of infer.py. It fits DIII-D from scratch and retains the frozen MAST solver source. TRAINING.md describes the recipe and what the limited mode reduces; COMPUTE.md declares the compute. One network of each of the four families was fitted with the full recipe on a single NVIDIA GTX 1060 (6 GiB) in 4.7 to 5.4 minutes. The complete production retrain and the accuracy of its resulting ensemble have not been qualified; the completed checks cover the reduced integration chain and one full-recipe fit per family.

The challenge's own resources

Resource Link
Challenge site, rules and announcements fusion-equilibrium-challenge.sophelio.io
Organisers on GitHub github.com/Sophelio
Starter kit (data fixes, validator, local scorer) Sophelio/fusion-equilibrium-challenge-starter
Training and public-test data (v1.1.0) Sophelio/fusion-equilibrium-challenge
Final-phase test inputs ganatma/fusion-equilibrium-challenge-final
Platform and leaderboard Codabench 17739

Where things are

Path Content
infer.py, train.py, tree_replica.py entrypoints and the tree arithmetic they share
deployment.json, training_recipe.json the deployed model and the recipe that fits it, with SHA-256 of every source and weight file
source/, training_adapter/ model, feature and finishing code for both machines
models/ trained weights; fetched by fetch_weights.py, listed in WEIGHTS.sha256
requirements-*.txt complete hashed locks for CPython 3.12 on Linux x86-64
ARCHITECTURE.md the parts, their boundaries, what is trusted and what is kept frozen
VALIDATION.md what has been checked, on what, and what is not claimed
CHANGELOG.md what changed after the Final submission
DATA_PROVENANCE.md which data touched which part of the entry, per machine
docs/ methods report, study, experiment ledger, what did not work, cost of the entry
experiments/ frozen protocols, scripts and result files of the experiments

The weights are not in this Git repository. WEIGHTS.json names the public repository and pinned revision they are fetched from.

How the work was done

The entry was developed by Arcane Sapience: a control-bound system of agents built on large language models that write code, run experiments, analyse results and review each other's work under the entrant's governance. The entrant sets direction, decides, and takes responsibility for every submission.

Later candidate experiments use protocols with written decision rules frozen before fitting or scoring, and paired whole-shot comparisons. Early correction screens were found to be in-sample in the 28 September audit; they are historical diagnostics, not evidence of generalisation (Study §4.5). The later evaluation copies exclude their evaluation shots from fitting, but repeated use of those cohorts still adds selection uncertainty. A failed rule closes that fixed experiment; it does not establish that a wider method cannot work. Two DIII-D choices were made on the public score instead, and the study names both (§7): the shares of the scalar networks, which failed their rule and were put to the public test once under a rule written before the submission, and the 32-network set. The ledger in docs/ records the published experiments, including the many that failed.

Experiments under frozen rules

Licence and citation

Source code: AGPL-3.0-or-later (LICENSE); a commercial licence is available from the entrant. The copyright and licence of every file are given by its SPDX header or, for files without one, by REUSE.toml; the licence texts are in LICENSES/. Material of others keeps its own licence: the organisers' scoring functions, envelope masks and data-fix helper are MIT, the Code of Conduct is Contributor Covenant text under CC BY 4.0, and the four EFIT reference frames used by the reconstruction figure (and the figure's reference panels) are small CC BY 4.0 excerpts of the challenge dataset. The full challenge datasets are not included; a single-shot prediction is included as the CI reference. The weights are published on Hugging Face, where the model card declares the licence agpl-3.0. NOTICE.md lists each item with its origin and attribution; GOVERNANCE.md says who decides what.

To cite this entry, use the DOI 10.5281/zenodo.23480092 (all versions) or see CITATION.cff. The code is also archived by Software Heritage (first snapshot 19 October 2026: swh:1:snp:143cae236c490f64c48de43ca03761a9623e16d6). Contact: [email protected].

Questions about the method or the results: Discussions. A reproduction problem: open an issue. The documents are also readable as a site: anulum.github.io/fusion-equilibrium-challenge.

Text and data mining reservation

The rightsholder, Miroslav Šotek (ANULUM), expressly reserves the use of the works in this repository for text and data mining, including the collection of this content for, and its use in, training, fine-tuning or evaluating machine learning and artificial intelligence models, in accordance with Article 4(3) of Directive (EU) 2019/790 and the national provisions transposing it.

No permission for such use has been granted beyond what the licence in LICENSE grants. This reservation does not change that licence: uses the licence permits remain permitted on its terms, including its attribution and share-alike conditions.

Reservation made on 2026-10-19. Requests for permission: contact the rightsholder through the contact listed in this repository.

About

Tokamak equilibrium reconstruction without magnetic measurements: the Anulum entry to the Fusion Equilibrium Challenge (NeurIPS 2026). Code, weights, study and the full experiment record.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages