Verified Numerics from Natural Language: Teaching a Small Language Model to Write Groundwater-Flow Solvers
원문 초록
Large language models (LLMs) can write simulation code, yet a solver that runs may still converge at the wrong rate or to the wrong answer. We show that a small open model learns to write correct solvers from plain-English problem statements when it is trained on cheap, programmatically generated and numerically verified data. For two-dimensional steady Darcy flow with heterogeneous and anisotropic conductivity, wells and mixed boundary conditions, a generator produces problems with second-order finite-volume solvers, and a convergence verifier runs every solver on two grids and checks its error and observed order. On 2000 correct and 1857 mutant runs the verifier rejects no correct solver and accepts 0.5% of mutants, where execution and mass-balance checks accept over 94%. Qwen3-8B fine-tuned on 2000 verified solvers passes 99.7$\pm$0.3% of in-distribution and 99.8$\pm$0.3% of held-out-combination test problems, level with GPT-6.2 Sol, in one local pass of about 1000 tokens; untuned, it writes no passing solver. Minimal pairs that change one physical fact in the wording show what the trained model still misreads: it solves both problems of 45$\pm$1% of pairs and writes the same source sign whether a well injects or extracts water. Replacing a quarter of the training problems by paraphrases and minimal pairs raises this to 87% with no loss of test accuracy. Corrupted training targets show which generator errors the verifier must catch: the model absorbs mixed errors in half of its targets but learns a single bug repeated in half of them.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2612.01303v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.