Physics Steering: Causal Control of Cross-Domain Concepts in a Physics Foundation Model

Rio Alexa Fear, Payel Mukhopadhyay, Michael McCabe, Alberto Bietti, Miles Cranmer

TL;DR

Researchers have demonstrated that physics foundation models, much like Large Language Models (LLMs), represent abstract concepts linearly within their activation spaces. By extracting "concept vectors"—calculated simply as the difference in mean activations between contrasting physical regimes—they achieved direct causal control over simulations, enabling them to induce or suppress features like vorticity and diffusion. Remarkably, these learned concepts are domain-general and can successfully steer entirely different physical systems, including transferring a "vortex" concept from fluid dynamics to a chemical reaction-diffusion model.

What Problem Does This Paper Address?

In the world of LLMs, mechanistic interpretability has revealed that models build internal, linear representations of human concepts (like "refusal" or specific nouns) that can be manipulated via activation steering. However, language data possesses an inherent syntactic and semantic structure created by humans.

Numerical physics data, governed by Partial Differential Equations (PDEs), lacks this explicit conceptual framework. A major open question in scientific machine learning has been whether physics foundation models actually learn generalized representations of underlying physical laws, or if they merely exploit superficial statistical correlations within their training data. This paper tackles this question by testing if the Linear Representation Hypothesis holds true for scientific foundation models.

Methods

The authors adapted activation steering techniques from LLM interpretability to Walrus, a state-of-the-art vision transformer-based physics foundation model. Their methodology follows four primary steps:

  1. Selection of Contrasting Regimes: They paired simulation trajectories representing distinct physical behaviors (e.g., laminar flow vs. vortex flow).
  2. Activation Extraction: Using PyTorch hooks, they captured internal activations from the final processor block before the decoder during the model's forward pass.
  3. Concept Vector Calculation: Activations were normalized, and a "delta tensor" ($\Delta_f$) was computed by subtracting the mean activations of the regime lacking the feature from the regime exhibiting it.
  4. Activation Steering (Injection): During inference, they injected this delta tensor back into the model's activations, scaled by a steering coefficient ($\alpha$), to causally manipulate the simulation output.
Figure 1: Schematic illustration of methodology. Activations are first extracted from the physics model during forward passes over input segments that exhibit physical feature f, yielding activations µf,i, and from segments lacking the feature, ¬f, yielding νf,i. The difference between these activations, ∆f, is then injected back into Walrus during inference to steer future results.

To transfer concepts between different physical systems with mismatched spatial grids, the authors introduced spatial averaging, collapsing the delta tensor into a channel-wise vector ($\overline{\Delta}_f$) that preserves purely abstract, non-spatial concept information.

Datasets

The model was evaluated using The Well, a massive 15TB benchmark dataset containing 16 distinct numerical simulations curated with domain experts. Specifically, the authors utilized:

  • Shear Flow: Used as the primary testbed to isolate concepts for vorticity, diffusion, and temporal speed.
  • Rayleigh-Bénard Convection: A fluid dynamics dataset modeling buoyancy-driven convection.
  • Euler Quadrant: A dataset simulating compressible, inviscid gas dynamics governed by the Euler equations.
  • Gray-Scott Reaction-Diffusion: A non-fluid chemical system that produces complex pattern formations (gliders, spots, spirals) based on concentration interactions.

Key Insights and Ideas

  • The Linear Representation Hypothesis Applies to Physics: Complex, macro-scale physical phenomena are encoded as single, linear directions in the latent space of scientific foundation models.
  • Cross-Domain Concept Transfer: Physical concepts learned in one domain are encoded abstractly enough to be applied to entirely different systems. The most striking "aha moment" occurred when a vorticity vector derived from fluid dynamics was injected into a chemical reaction-diffusion system (Gray-Scott). Even though fluid vortices do not exist in chemistry, the model interpreted the vector as an abstract command for "rotation," transforming chemical "gliders" into spiral patterns.
  • Channels vs. Space: Spatial configurations are system-specific, but abstract physical principles reside primarily within the channel dimensions. Spatial averaging proved essential for stable cross-domain transfer, preventing unphysical artifacts.

Key Results

  • Vorticity Control: Negative steering ($\alpha < 0$) successfully suppressed existing vortices in a shear flow, smoothing it into a parallel laminar state. Conversely, positive steering ($\alpha > 0$) reliably induced well-formed vortical structures into a nominally laminar flow.
  • Diffusion and Time Manipulation: The authors successfully isolated a "diffusion" direction (altering fluid interface sharpness) and a "speed" direction. Positive steering along the speed direction caused vortices to form significantly earlier in the simulation rollout window, effectively accelerating the physics.
  • Cross-Domain Success: The vorticity and speed vectors derived from Shear Flow successfully steered Rayleigh-Bénard convection and Euler quadrant shock fronts in physically plausible ways, increasing or decreasing rotational features and shock propagation speeds.
Density fields showing the transfer of vorticity and speed steering vectors into Euler quadrants and Gray-Scott chemical systems.

Limitations and Future Work

While the qualitative results are visually striking, the authors note several limitations:

  • Physicality Trade-offs: Applying a high steering coefficient ($\alpha$) to force a concept into a regime that is naturally far from it can distort secondary fields (like pressure or y-velocity), leading to unphysical results.
  • Initial Condition Sensitivity: The effectiveness of the steering depends heavily on how close the simulation's initial state is to the target regime; a system "on the brink" of turbulence requires only a small nudge, whereas a highly stable system requires a disruptive force.
  • Layer Dynamics: The study focused exclusively on the final processor block before the decoder. The layer-dependent behavior of these physical concepts remains an open area for future exploration.

Summary updated

BibTeX
@misc{fear2025physics,
  author = {Rio Alexa Fear and Payel Mukhopadhyay and Michael McCabe and Alberto Bietti and Miles Cranmer},
  title = {{Physics Steering: Causal Control of Cross-Domain Concepts in a Physics Foundation Model}},
  year = {2025},
  eprint = {2511.20798},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.20798},
}
Figure