mlsanityData to 24 Nov 2026

Scientific Coding with Large Language Models: Evidence from Finite Element Analysis

arXiv 2611.21176 ↗Submitted 16 Nov 2026cs.SE cs.AI cs.CEcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Large language models (LLMs) offer a potential route to automating scientific programming, but their usefulness depends on consistently producing numerically correct code. We extend FEM-Bench to 17 finite element tasks involving nonlinear and history-dependent mechanics and structural dynamics, and evaluate 15 models on implementation and test generation without execution feedback. The best model succeeds in 87.1% of single-pass implementation trials, but rankings differ between tracks. The leading implementer achieves 49.9% joint test success, while the leading tester reaches 82.6%. For six models, we compare single-pass generation with two agentic harnesses that allow code execution and revision. Agentic execution solves some tasks that never succeeded in single-pass trials and improves consistency on others, but gains vary across models and harnesses, and regressions also occur. Claude Opus 5 with SimpleAgent reaches 96.5% Pass@3, the probability of at least one success in three attempts, but 77.1% Pass3, the probability that all three succeed. No model-harness combination exceeds 78.8% Pass3. To understand why agents submit incorrect code after passing their own checks, we analyze 249 failed agentic trajectories and identify six categories of self-verification failure. The most common are inadequate test coverage (73.1%) and reliance on generic consistency checks (70.3%), and in 28.5% of cases the tests share an error with the implementation. Motivated by these findings, an exploratory configuration with separate coder and tester agents achieves the highest observed scores, with 97.6% Pass@3 and 88.8% Pass3. These results identify consistency across attempts and independent verification as the main obstacles to trusting LLM-generated scientific code.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 20 of its 30 references that are in the map. Submitted 16 Nov 2026.

Builds on

20 of 30 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025TRAIL: Trace Reasoning and Agentic Issue Localization13 May
  2. 2025Why Do Multi-Agent LLM Systems Fail?17 Mar
  3. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul

Other references · 17

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,938
  2. 2021Program Synthesis with Large Language Modelscited by 3,972
  3. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
  4. 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,713
  5. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,478
  6. 2023Teaching Large Language Models to Self-Debugcited by 1,049
  7. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 603
  8. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 471
  9. 2023MLAgentBench: Evaluating Language Agents on Machine Learning Experimentationcited by 426
  10. 2024ScienceAgentBench: Toward Rigorous Assessment of Language Agents for Data-Driven Scientific Discoverycited by 289
  11. 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 222
  12. 2024SciCode: A Research Coding Benchmark Curated by Scientistscited by 210
5 more
  1. 2019SPoC: Search-based Pseudocode to Codecited by 180
  2. 2025CodePDE: An Inference Framework for LLM-driven PDE Solver Generationcited by 49
  3. 2025FEABench: Evaluating Language Models on Multiphysics Reasoning Abilitycited by 35
  4. 2026PDEAgent-Bench: A Multi-Metric, Multi-Library Benchmark for PDE Solver Generationcited by 13
  5. 2025FEM-Bench: A Structured Scientific Reasoning Benchmark for Evaluating Code-Generating LLMscited by 11

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024Large Language Model Agent as a Mechanical Designer
  2. 2026ALL-FEM: Agentic Large Language models Fine-tuned for Finite Element Methods
  3. 2025A Large Language Model-Empowered Agent for Reliable and Robust Structural Analysis
  4. 2024Collaboration Dynamics and Reliability Challenges of Multi-Agent LLM Systems in Finite Element Analysis
  5. 2026MarkovSim: an LLM Agent Harness with Bounded Context for Long-Horizon Computational Simulation
  6. 2025Chain of Unit-Physics: A Primitive-Centric Approach to Scientific Code Synthesis
  7. 2025ModiGen: A Large Language Model-Based Workflow for Multi-Task Modelica Code Generation
  8. 2026Can Coding Agents Reproduce Findings in Computational Materials Science?