跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2605.09360 · v2

Your Simulation Runs but Solves the Wrong Physics: Verifying What LLM-Generated Simulation Code Encodes

首次提交 2026-05-10 14:19
版本更新 2026-11-29 23:44
雷达观测 2026-12-01 12:24
arXiv ↗PDF ↗

摘要

Code generated by large language models (LLMs) is commonly accepted once it runs. We show that, for scientific simulation, this acceptance is unsafe. Running the single-shot outputs of three LLMs on MooseBench, a 220-case multiphysics benchmark that we release, we find that 41-60% of the MOOSE inputs that run, and 39-56% of those that run to completion, violate the expert reference: they run while solving a different problem. The gap persists in newer models such as GPT-6 Sol (68% of its runnable inputs), even when the model first writes down the specification it intends to implement. These violations usually change the solution: on a 98-case subset, 56 of 63 comparable violating outputs deviate from the reference solution by more than 1%, against 6 of 48 outputs that satisfy every check. Such failures are invisible to execution but checkable from the code. In MOOSE, each Kernel and boundary-condition object adds a known weak-form term, so our verifier reads the encoded PDE off the input and compares it with the intended one, with no solver run and no LLM judge. It accepts all 962 physics-preserving rewrites of the expert references and flags 1,286 of 1,313 physics-changing mutations without accepting any. As repair feedback, its report helps as much as the specification is right: checked against a model's own reading of the request, it can carry that reading's errors into the code; as they are corrected, it turns from worse than a self-check to better. We hope these results encourage verifying simulation code against the equations it is meant to solve, not only against whether it runs.

作者备注:Preprint

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

本站首次收录为 v2,暂无更早版本可对照。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v2 · 2026-11-29 23:44 · 最新观测版本

Your Simulation Runs but Solves the Wrong Physics: Verifying What LLM-Generated Simulation Code Encodes

Code generated by large language models (LLMs) is commonly accepted once it runs. We show that, for scientific simulation, this acceptance is unsafe. Running the single-shot outputs of three LLMs on MooseBench, a 220-case multiphysics benchmark that we release, we find that 41-60% of the MOOSE inputs that run, and 39-56% of those that run to completion, violate the expert reference: they run while solving a different problem. The gap persists in newer models such as GPT-6 Sol (68% of its runnable inputs), even when the model first writes down the specification it intends to implement. These violations usually change the solution: on a 98-case subset, 56 of 63 comparable violating outputs deviate from the reference solution by more than 1%, against 6 of 48 outputs that satisfy every check. Such failures are invisible to execution but checkable from the code. In MOOSE, each Kernel and boundary-condition object adds a known weak-form term, so our verifier reads the encoded PDE off the input and compares it with the intended one, with no solver run and no LLM judge. It accepts all 962 physics-preserving rewrites of the expert references and flags 1,286 of 1,313 physics-changing mutations without accepting any. As repair feedback, its report helps as much as the specification is right: checked against a model's own reading of the request, it can carry that reading's errors into the code; as they are corrected, it turns from worse than a self-check to better. We hope these results encourage verifying simulation code against the equations it is meant to solve, not only against whether it runs.

查看此版本解读 →查看此版本原文 ↗