Platonic Reasoning: physics simulations

Ask a language model questions about a physics simulation, using 100 labelled simulations and no model trained on simulation-text pairs. A frozen physics foundation model reads the simulation, a ridge map fitted on the 100 pairs carries its features into the space of a text encoder trained on physics text alone, and the nearest descriptions of an unpaired corpus become the hypotheses from which a generalist language model answers. This is the physics reasoner of Platonic Reasoning: Open-World Multimodal Reasoning Without Training on Paired Data (Balestriero and LeCun, 2026).

Code Β· Demo Β· All models Β· Paper (arXiv:2611.41696)

How it works

  1. Anchor. Walrus (frozen, 1.3B parameters, trained to forecast 19 physical systems and never on text) reads a window of 4 consecutive snapshots of a 2D simulation: 1,408 features. It is downloaded from its own repository at a pinned revision and is not redistributed here.
  2. Map. A ridge regression fitted on 100 (window, description) pairs carries those features into the space of the physics Platonic JEPA, a 33M-parameter text encoder (BERT-S) trained on physics descriptions alone (jepa/).
  3. Hypotheses. The 5 nearest of 1,266 unpaired descriptions (corpus/) are the window's hypotheses.
  4. Reasoner. A generalist language model (gpt-oss-120b in the paper) answers any question from these hypotheses, through any OpenAI-compatible endpoint.

The JEPA was trained from scratch with LeJEPA on template descriptions generated from the stored parameters of half of The Well's training trajectories, each with four rewrites by Qwen2.5-7B-Instruct, the view family chosen by Platonic View Search. The map is fitted on the first 100 windows of the other half after a seed-0 shuffle, each with one description; no test window is used. Steps 2-3 run on a CPU in milliseconds; Walrus needs a GPU.

Usage

# pip install "platonic-reasoning @ git+https://github.com/galilai-group/platonic-reasoning"   ([physics] for Walrus)
from platonic_reasoning import PlatonicReasoner

r = PlatonicReasoner.from_pretrained("galilai-group/platonic-reasoner-physics")
a = r.embed(["window.npy"])[0]          # Walrus features [1408]; window.json beside it (see Inputs). GPU recommended
h = r.hypotheses(a)                     # [(description, cosine)] x 5 through the 100-pair map
print(r.prompt("Which physical system is this, and what governs it?", h))   # what the reasoner reads
print(r.ask("Which physical system is this, and what governs it?", hypotheses=h))

ask sends the paper's chat (system message "Reasoning: low", greedy, up to 2,048 tokens) to $OPENAI_BASE_URL (default: the Hugging Face router) with the key $OPENAI_API_KEY or $HF_TOKEN and the model $PLATONIC_REASONER_MODEL (default openai/gpt-oss-120b); it also accepts an openai.OpenAI client or any function messages -> str. To add your own descriptions to the corpus, load with PlatonicReasoner.from_pretrained(..., jepa=True), which also downloads jepa/, then call r.add_texts([...]).

The hypotheses need only numpy, safetensors and pyarrow. Embedding raw simulations needs torch, hydra-core, omegaconf and the code of walrus (github.com/PolymathicAI/walrus @ 73f2cf6) and the_well (@ aac88c0). Without the package, the repository's own platonic_reasoning.py works alone: sys.path.insert(0, folder), then from platonic_reasoning import PlatonicReasoner; PlatonicReasoner(folder).

Inputs. A window is 4 consecutive stored snapshots of one trajectory of a 2D simulation in The Well's layout: a float32 array [4, H, W, C] of raw values (scalar fields, then each vector field's x, y, then each tensor field's xx, xy, yx, yy) and a sidecar {"fields": [[scalars], [vectors], [tensors]], "bcs": [[lo, hi], [lo, hi]]} (boundary codes 0 wall, 1 open, 2 periodic). Field names must be Walrus's (e.g. density, velocity, buoyancy, A, B). Walrus's own preprocessing is applied, and the features are its last processor block at the last time step, averaged over space.

Evaluation

Blind open questions about 595 test windows of The Well (7 systems, 2,975 questions written by gpt-oss-120b from each window's ground-truth description, asked as by someone who has not seen the simulation). Each answer is graded 0-10 by two judges (gpt-oss-120b, Qwen3.8-27B) against a reference answer; scores are the mean of the two judges times 10, with a 95% bootstrap interval over windows.

reader pairs test
this reasoner (gpt-oss-120b + 5 hypotheses), the shipped map 100 78.5 [77.4, 79.7]
same, mean of three draws of the 100 pairs 100 78.8 [77.9, 79.7]
Gemma-4-31B, fine-tuned (LoRA) on images of the same 100 windows, mean of three draws 100 70.0 [69.0, 71.0]
Qwen3.8-27B, fine-tuned (LoRA) on images of the same 100 windows, mean of three draws 100 69.0 [68.1, 69.9]
Qwen3.8-27B / Gemma-4-31B, zero-shot on the images 0 35.8 / 36.6
gpt-oss-120b with no input (the question alone) 0 37.1

Files

path content
config.json anchor and its revision, text encoder, map, corpus, prompt template, recommended reasoner and its settings, measured scores
maps/ridge-k100.safetensors the ridge map fitted on 100 pairs (float64, 1.46 MB)
corpus/ the 1,266 distinct descriptions (texts.parquet) and their unit directions about the corpus mean (directions.safetensors, float64, 3.9 MB)
jepa/ the physics Platonic JEPA as a transformers BertModel ([CLS], 64 tokens) and its uncased BERT tokenizer, 133 MB
platonic_reasoning.py the standalone loader: PlatonicReasoner, OpenAIChat
LICENSE MIT

Limitations

  • The hypotheses can only be descriptions of the corpus: the 7 systems of The Well used here and their parameter sweeps. A simulation of another system gets the nearest of these descriptions, and the reasoner may then answer confidently and wrongly; it is told the hypotheses are uncertain, but it can still hallucinate.
  • The map is more often right about the system than about its parameters: the scores above are far from perfect.
  • Walrus was pretrained on the training splits of these datasets; the test windows come from The Well's test splits.
  • The grading is done by language models. Not for decisions about real physical systems.

Licences

component licence how it is used
The Well (Ohana et al., NeurIPS 2024 Datasets and Benchmarks) CC BY 4.0 the descriptions are generated from its stored parameters; the map is fitted on Walrus features of its windows; attribution required
Walrus (McCabe et al., 2025), polymathic-ai/walrus @ f8fd578e MIT anchor, downloaded at run time, not redistributed
walrus and the_well code MIT and BSD-3-Clause imported to embed raw simulations
uncased BERT tokenizer (jepa/) Apache-2.0 tokenizer files
Qwen2.5-7B-Instruct Apache-2.0 wrote the rewrites the JEPA was trained on (not shipped)
gpt-oss-120b Apache-2.0 with its usage policy recommended reasoner, called through an endpoint you choose; wrote the evaluation questions
this repository (JEPA, map, corpus, code) MIT (LICENSE) the corpus descriptions derive from The Well: attribute it (CC BY 4.0)

No restricted or credentialed data.

Citation

@article{balestriero2026platonicreasoning,
  title  = {Platonic Reasoning: Open-World Multimodal Reasoning Without Training on Paired Data},
  author = {Balestriero, Randall and LeCun, Yann},
  year   = {2026},
  note   = {arXiv:2611.41696},
  url    = {https://arxiv.org/abs/2611.41696}
}

Please also cite The Well (Ohana et al., NeurIPS 2024 Datasets and Benchmarks) and Walrus (McCabe et al., 2025, arXiv:2511.15684).

Downloads last month
29
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Datasets used to train galilai-group/platonic-reasoner-physics

Space using galilai-group/platonic-reasoner-physics 1

Collection including galilai-group/platonic-reasoner-physics

Papers for galilai-group/platonic-reasoner-physics