Axiomatic World Modeling for Physics Reasoning

Xinye Yang, Zhenyang Liu, Yuxuan Wang, Yuanyuan LeiNeurIPS 2026

TL;DR

When large language models fail at physics, it is rarely because they forgot the algebra; it is because they silently invent a convenient, imaginary universe to solve the problem in. This paper introduces RLAWM, a training framework that forces models to explicitly build a faithful physical setup before crunching numbers, then tests their derivations like executable code. Best of all, this training internalizes physical rigor directly into the model with zero extra cost at test time, boosting accuracy across both Olympiad physics and competition math.

What Problem Does This Paper Address?

Unlike pure math problems, where the rules and goals arrive neatly packaged, physics problems are messy. Before doing a single line of algebra, a physicist must build an Axiomatic World Model (AWM): deciding which physical laws apply, what geometry holds, and which assumptions are safe.

Current LLMs are notorious for modeling drift—a failure at the premise level. Instead of solving the problem given, a model might misread a horizontal track as vertical, do flawless math inside that broken reality, hit an impossible result (like a negative squared velocity, $v^2 < 0$), and then silently delete an electric field from the problem just to make the contradiction vanish!

An example of modeling drift vs. RLAWM: instead of silently rewriting the physics problem when a wrong premise creates a contradiction, RLAWM anchors the model to the true physical setup.

Standard reinforcement learning (RL) methods—like RL with Verifiable Rewards (RLVR), which only checks the final answer, or Process Reward Models (PRMs), which judge whether intermediate text sounds plausible—miss this completely. You can execute locally sound steps inside a completely hallucinated universe and still fool a text judge or stumble into a lucky final answer.

Methods

The authors leverage a classic asymmetry in physics: verifying a physical claim (e.g., checking conservation of energy or how velocity scales if you double the mass) is much easier than deriving it from scratch. To turn static LLM text into something verifiable, they propose Reinforcement Learning with Axiomatic World Modeling (RLAWM), built on top of standard Group Relative Policy Optimization (GRPO).

During training, the model must split its output into two blocks, separating what world it believes it is in from how it reasons inside that world:

  1. [modeling] Block & Modeling Reward ($R_M$): The model externalizes its physical setup across five structured fields (objects, constraints, representation, mapping, and plan). Instead of asking an LLM judge "is this good physics?", a frozen LLM extracts structured tuples (like quantity–law–context) from both the model's setup and the ground truth, and a deterministic rule computes an F1 score called Physics Modeling Fidelity (PMF).
  2. [solving] Block & Solving Reward ($R_S$): The model writes its derivation as structured pseudocode. A frozen coder model (Qwen2.5-Coder-1.5B) translates this into executable Python, where a programmatic checker runs unit tests drawn from 147 reusable physics-law templates. It probes invariants (do conservation laws hold?), trace consistency, and perturbations (if an input nudges up, does the output move in the physically expected direction?).
Figure 2: The RLAWM pipeline. RLAWM probes physical reasoning at two hierarchical levels, each carrying a grounded reward. Modeling (top) concerns how the policy builds its world. It externalizes the AWM as a five-field [modeling] block, which RM scores against the problem’s ground-truth AWM. Solving (bottom) concerns how the policy executes reasoning over that AWM: it writes its reasoning as pseudocode, where a frozen checker probes for physical invariants, trace consistency, and response under perturbations to yield RS.

These two signals combine with standard final-answer correctness ($R_A$) into a joint training objective. Crucially, all extractors, translators, and checkers exist only during training—at inference time, the model runs standalone with zero overhead.

Datasets

No new benchmarks are introduced; instead, the authors evaluate across five existing datasets to test both in-distribution fit and zero-shot generalization:

  • In-Distribution (9:1 train/test splits): PhysReason (1,200 problems, 81% multimodal with figures) and PHYSICS-text_only (996 university-to-graduate problems across six subdomains).
  • Out-of-Distribution (Zero-shot from PhysReason training): OlympiadBench-Phys (236 competition problems testing cross-difficulty shift), PHYBench (500 original, offline student-written symbolic problems testing cross-source shift), and AIME 2026 (competition math testing cross-domain shift).

Key Insights and Ideas

  • Escaping "Diversity Collapse": Standard RLVR and judge-based rewards often cause models to overfit to narrow reasoning templates—raising single-try accuracy (SubPass@1), but falling below the untrained base model when given 100 tries (SubPass@100). Because RLAWM enforces physical laws rather than prescribing a single text path, it lets the model freely explore valid coordinate frames and strategies, expanding its reasoning boundary monotonically. SubPass@k scaling on Qwen3-VL-8B: while standard RL methods collapse below the vanilla model at high sample counts, RLAWM continues to climb.

  • Waking Up Silent Gradients: In GRPO, if all 8 rollouts on a hard problem get the final answer wrong, the group has zero variance and yields zero learning signal (happening ~30% of the time under outcome-only RL). RLAWM's graded checker tests recover 69% of those dead groups, rewarding partial physical validity so hard problems stay in play.

  • LLMs Make Better Parsers Than Judges: When swapping the external $R_M$ scorer from gpt-4o-mini down to a smaller 4B model, holistic LLM-as-Judge performance drops roughly twice as hard as PMF. Restricting the LLM to schema-bounded text extraction keeps its reasoning flaws out of the reward loop.
SubPass@k scaling on Qwen3-VL-8B: while standard RL methods collapse below the vanilla model at high sample counts, RLAWM continues to climb.

Key Results

Tested across Qwen3-VL (4B, 8B) and Gemma-3-12B-IT, RLAWM outperforms Vanilla, RLVR, Likert-Judge, and Rubrics-as-Rewards baselines on every backbone:

  • In-Distribution: Gains up to +12.2 points on PhysReason (reaching 47.9% Overall on Qwen3-VL-8B vs. 37.1% for the best baseline) and +5.2 points on PHYSICS (29.0% vs. 23.8%).
  • Zero-Shot Generalization: On OlympiadBench-Phys (8B), RLAWM achieves 15.2%—a 2.45× jump over RLVR (6.2%). On PHYBench, it hits 10.5% (vs. 8.7% strongest baseline).
  • Cross-Domain Math: Trained only on physics (Zero-RL without SFT), RLAWM scores 56.7% on AIME 2026, beating RLVR by +10.0 points—proving that learning not to drift from premises transfers directly to mathematics.

Limitations and Future Work

  • Subdomain Variance: Gains are noticeably larger in Classical Mechanics, E&M, and Optics than in Quantum or Statistical Mechanics, where abstract operator algebra is harder to capture with explicit coordinate frames and programmatic checkers.
  • Checker Blind Spots: The solving checker has a 15.8% false-positive rate—mostly when physical laws hold throughout the trace, but the model botches the final algebraic simplification (which is why keeping a small weight on final-answer reward $R_A$ remains necessary).
  • Future Directions: The authors plan to replace static, pre-generated unit checkers with dynamic agentic probes, and develop self-contained modeling rewards that remove the reliance on external LLM extractors during training.

Summary updated

Abstract

Recent research-level physics-reasoning benchmarks for LLMs reveal a failure mode that lies not in knowledge or execution, but in modeling the world being reasoned about. Models often silently alter given quantities, fabricate laws, or inject unstated assumptions to force a problem into familiar patterns, and then reason inside this corrupted world. We define this premise-level divergence as **modeling drift**: the gap between a model's internal axiomatic world model (AWM) and the true physical world specified in the problem. Although RLVR and PRM have yielded substantial gains in mathematics and code, their reward shapes do not directly supervise world modeling in axiomatic domains such as physics. We propose ***Reinforcement Learning with Axiomatic World Modeling*** (RLAWM), which optimizes the policy by penalizing divergence between its inferred axiomatic world model and the true physics world. RLAWM probes physics reasoning at two hierarchical levels (modeling and solving), each scored by a physically grounded reward. The **modeling reward** targets abstract knowledge formulation, evaluating whether the model captures the true axiomatic world before attempting calculation. The **solving reward** targets instantiated knowledge reasoning, checking whether the model's concrete derivation remains consistent with the axiomatic world. This two-level structure separates *what world the model believes it is reasoning in* from *how it reasons within that world*. The framework operates exclusively during training, with no extra cost during inference. RLAWM improves performance by up to +12.2 points on PhysReason and +5.2 on PHYSICS over the baseline. It also generalizes zero-shot across difficulty, source, and domain, with a 2.45× gain and +10 points over the strongest baseline on olympiad-level physics and math.
BibTeX
@inproceedings{yang2026axiomatic,
  author = {Xinye Yang and Zhenyang Liu and Yuxuan Wang and Yuanyuan Lei},
  title = {{Axiomatic World Modeling for Physics Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=f21HhDeBNh},
}
Figure