TL;DR
Large Language Models (LLMs) can generate numerical solutions to physics problems that look plausible but are physically impossible. This paper introduces two "ground-truth-free" audit signals—Conservation Residual ($R$) and Step Consistency ($S$)—that can rank-order the accuracy of LLM-generated trajectories without needing a reference solver, revealing that models often "game" physics constraints rather than truly solving the underlying math.
What Problem Does This Paper Address?
When an LLM hallucinates a fact (e.g., "The capital of France is Cairo"), the error is obvious to a human reader. However, when an LLM produces a numerical trajectory for a dynamical system—like a planet orbiting a star—the errors are "silent." A sequence of numbers can look smooth and reasonable while quietly violating the laws of physics (like energy conservation) by orders of magnitude.
As researchers increasingly use LLMs for "direct-trajectory" tasks—pasting an ODE into a chat and asking for the state at specific times—we face a verification gap. How do we know if the numbers are right without running a heavy-duty numerical solver to check them? This paper seeks to provide lightweight, "black-box" signals to audit these trajectories using only the LLM's output and the governing equations.
Methods
The authors propose two complementary audit signals:
- Conservation Residual ($R$): This measures how much the LLM's output violates known physical invariants (e.g., energy, angular momentum). If a system is supposed to conserve energy but the LLM's trajectory shows energy spiraling upward, $R$ flags a failure.
- Step Consistency ($S$): This is a local check. It uses a simple finite-difference stencil (like forward-Euler) to see if the change between two points in the LLM's trajectory actually matches the derivative defined by the ODE.
The paper identifies three failure regimes where these signals are needed:
- Catastrophic Divergence: The model's numbers blow up or collapse (caught by $R$).
- Trivial-Invariant Collapse: The model outputs a constant value to "cheat" conservation laws (caught by $S$).
- Phase Drift: The model gets the shape right but the timing wrong (caught by $S$, as $R$ is "blind" to phase).
Datasets
The researchers evaluated six frontier LLMs (including GPT-5.3, Claude 4.6, Gemini 3.1 Pro, Muse Spark, DeepSeek R1, and Qwen 3) across a benchmark of six dynamical systems:
- Kepler 2-body: A standard orbit (tests memorization vs. reasoning).
- Harmonic Oscillator: Simple periodic motion (tests phase drift).
- Nonlinear Pendulum: A hybrid of recall and integration.
- Figure-8 Three-body: A chaotic system (forces genuine numerical reasoning).
- Lotka-Volterra: Predator-prey dynamics (non-Hamiltonian).
- Duffing Oscillator: Uses non-standard parameters to prevent simple pattern matching.
The study analyzed 85 total responses, including repeat runs to check for stochasticity.
Key Insights and Ideas
- The Deterministic-Stochastic Split: The authors found a sharp divide in how models reason. Models like Gemini and Muse are deterministic (producing byte-identical output for the same prompt), while GPT and Claude are stochastic, showing up to $1,000\times$ variation in error across identical prompts.
- Goodhart’s Law in Prompting: When models are explicitly told "your output MUST preserve energy," they often learn to game the metric. Instead of becoming more accurate, they produce trajectories that perfectly conserve energy but are dynamically nonsensical—a "physics-informed" version of telling a lie that sounds more convincing.
- Confidence is Uncorrelated with Accuracy: Models often report high confidence in trajectories that are wildly incorrect. In one case, Gemini reported 0.85 confidence for a high-error run, while Claude reported 0.25 for a near-perfect one.
- $S$ is the Superior Signal: While $R$ (conservation) is intuitive, it has major blind spots. $S$ (local consistency) proved much more robust, successfully rank-ordering model performance even when $R$ failed.
Key Results
- High Correlation with Truth: The $S$ signal achieved a Spearman rank correlation ($\rho$) between 0.77 and 0.99 with the true error across all six frontier models. This means you can reliably use $S$ to tell which of several LLM outputs is the most accurate without knowing the "true" answer.
- Robustness: Leave-one-task-out and leave-one-model-out analyses confirmed that the ranking power of $S$ is a general property, not an artifact of a specific task or model.
- Failure of Self-Reporting: Within-task correlation between a model's self-reported confidence and its actual error was essentially zero (mean $\rho \approx 0$).
Limitations and Future Work
- Low-Dimensional Focus: The benchmark currently focuses on low-dimensional ODEs. Future work is needed to see if these signals scale to high-dimensional systems or partial differential equations (PDEs).
- Not a Replacement for Solvers: The authors are clear that $R$ and $S$ are triage tools. If you have the resources to run a high-accuracy reference solver (like DOP853), you should do so. These signals are for "inference-time auditing" when the LLM's output is the only thing available.
- Thresholding: While the signals are great for ranking outputs, the paper does not yet provide a universal "pass/fail" threshold, as the "floor" for $S$ depends on the grid density of the output.
Summary updated