cs.LGNov 16, 2026

Solver to System: LLM Reasoning Across Representations and Execution in Scientific Simulation

Authors: Eliza Berman, Rohan Subramanian, Shreya Jha, Lohit Jagarapu, Romain Lopez, Rajesh Ranganath

Organizations: New York University

Abstract

Simulators based on partial differential equations (PDEs) are widely used to model physical systems, but generating and interpreting PDE solver code with large language models (LLMs) remains challenging. Scientific simulation code is a useful testbed for LLM scientific reasoning because (1) one system can be represented by code, equations, natural language, and numerical trajectories and (2) code can execute successfully while implementing invalid physics. We introduce Solver2System, a dataset of PDE solvers with multiple representations, controlled corruptions, and lexical perturbations, to evaluate whether LLMs can recover the underlying physical system through (1) cross-representation consistency and (2) static and agentic detection of physical invalidity. Across eight open-weight models, LLMs systematically favor some representations when evidence conflicts, and lexical perturbations to code alter interpretation of other unchanged representations. Execution improves physical-validity judgments, but weaker agents can judge correctly without identifying the causal defect. Thus, LLMs may reach correct judgments despite inconsistent representation reconciliation or causal misdiagnosis.

Figures & tables

Appendix figures & tables16 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Your Simulation Runs but Solves the Wrong Physics: PDE-Grounded Intent Verification for LLM-Generated Multiphysics Simulation Code

    May 10, 2026Zhenghan Song, Yulong Liu, Cheng Wan +4LLM Self-CorrectionScientific Code Generation

  2. Large language models for partial differential equation workflows

    Aug 4, 2026Han Wan, Rui Zhang, Hao SunPDE DiscoveryLarge Language Model-Guided Optimization

  3. WorldSolver: Can LLM Agents Simulate the Physical Dynamics via Solver Generation?

    Oct 6, 2026Siru Jiang, Yongzhe Lyu, Shuo Lu +6Large Language Model-Based SimulationPhysics-Based Simulation