{"resourceId":"arxiv-2611-21176-scientific-coding-llm-finite-element-pass-cubed-20261116","versions":[{"version":"external-0d8e9b7698c9ab2784d7f276df0f7b168da32d0ae8c988f981dab35a1046c7a4","resource":{"id":"arxiv-2611-21176-scientific-coding-llm-finite-element-pass-cubed-20261116","title":"Best LLM scientific-coding agents pass finite element tasks in 96.5% of three tries but only 77.1% of the time on all three; none exceeds 78.8% Pass^3","organization":"Hamdi, Shor and Lejeune (arXiv preprint)","sector":"Research enterprise: scientific computing and research software","geography":"International (US-based authors)","publishedAt":"Submitted to arXiv 16 November 2026 (arXiv 2611.21176, v1)","publicationDate":"2026-11-16","eventDate":null,"sourceName":"arXiv (Hamdi, Shor and Lejeune)","sourceLabel":"Hamdi, E., Shor, J., Lejeune, E., \"Scientific Coding with Large Language Models: Evidence from Finite Element Analysis,\" arXiv:2611.21176, Nov 2026","sourceUrl":"https://arxiv.org/abs/2611.21176","evidenceClass":"academic-research","outcomeClass":"mixed","topics":["developers-agents","knowledge-work"],"finding":"The authors extended FEM-Bench to 17 finite element tasks (nonlinear and history-dependent mechanics and structural dynamics) and evaluated 15 models without execution feedback. The best model succeeded in 87.1% of single-pass implementation trials, but the leading implementer had 49.9% joint test success while the leading tester had 82.6%. For six models, agentic harnesses that allow code execution improved consistency on some tasks, but regressions also occurred. Claude Opus 5 with SimpleAgent reached 96.5% Pass@3 but 77.1% Pass^3 (all three attempts correct); no model-harness combination exceeded 78.8% Pass^3. In 249 failed agentic trajectories the most common self-verification failures were inadequate test coverage (73.1%) and generic consistency checks (70.3%), and in 28.5% the tests shared an error with the implementation. An exploratory coder-and-tester configuration reached 97.6% Pass@3 and 88.8% Pass^3. Included because it is new (16 Nov) and unarchived.","sledRelevance":"Relevant to research computing and research software groups considering coding agents for simulation code. It indicates that the useful metric is consistency across attempts, and that independent verification matters more than a single high success rate. It covers 17 mechanics tasks, not general research software.","evidence":"Preprint with a benchmark extension, 15 models, five trials per task, two agentic harnesses on six models with fixed token budgets, and a coded analysis of 249 failed trajectories (manual codebook, LLM-assisted judging). The authors note harnesses differ in prompts, tools and submission rules, so comparisons do not isolate design choices, and the separate coder-and-tester result is exploratory.","architectureImplications":"Separating a coder agent from an independent tester agent, with execution and revision allowed, produced the highest observed scores, which suggests built-in independent verification in research-code pipelines. Gains varied across models and harnesses, so configurations need local testing.","governanceImplications":"Research groups using coding agents for numerical work should require independent tests, reference solutions and consistency across repeated runs before trusting results; self-checks by the same agent often share errors with the code.","securityPrivacyImplications":"Not addressed; the benchmark ran in sandboxed execution with fixed tool access, and the paper does not assess data exposure or code provenance.","caveats":"Preprint; 17 finite element tasks and five trials per task; fixed token budgets; harnesses differ in prompts and tools; test-generation scores limited to predefined reference and faulty implementations; LLM judging may misclassify failure categories; coder-and-tester result is exploratory.","streamIds":["research"],"roles":{"sales":"Framing point: the right question for coding agents in research is consistency, not best case. In this finite element benchmark, the top configuration passed at least once in three tries 96.5% of the time but on all three tries 77.1%, and no configuration passed all three more than 78.8%. Use it with research computing leaders to propose pilots that include independent tests and repeat runs. It covers 17 mechanics tasks only and is a preprint.","engineering":"Framing point: do not let an agent grade its own work. In 249 failed trajectories, thin test coverage (73.1%) and generic consistency checks (70.3%) were most common, and in 28.5% the tests shared an error with the code. A separate coder and tester reached 88.8% Pass^3 in an exploratory run. Test your own tasks with reference solutions, repeated attempts, and tests written independently of the implementer.","delivery":"Framing point: make verification part of the plan. A pilot of coding agents for simulation code should define reference cases, independent tests, repeat-run acceptance rules and human review of numerical results. The paper reports no field deployment, so the acceptance criteria below are proposals. Budget for the compute and tokens that repeated agentic runs consume, and name who signs off on code before it enters research use."},"roleDetails":{"sales":{"customerProblem":"Research software teams want faster simulation code but cannot accept code that passes its own checks and is wrong.","stakeholders":["Research computing lead","Principal investigators","Research software engineers","Research integrity or reproducibility lead"],"discoveryQuestions":["Which codes would agents touch?","Are reference solutions or tests available?","Who reviews numerical correctness?","What compute budget exists for repeat runs?"],"valueHypothesis":"Agents with independent verification may speed development; the paper shows the verification gap, not time saved.","potentialEngagement":"A bounded pilot of a coder-and-tester agent setup on a few reference simulation tasks.","unsupportedClaims":["Productivity gains in real labs","Performance beyond finite element tasks","That a separate tester guarantees correctness","Cost savings"]},"engineering":{"fit":"Fits teams evaluating coding agents for numerical code; evidence covers 17 finite element tasks.","architectureIntegration":"Run agents in a sandbox with execution, a separate tester agent, reference implementations, and Pass@k plus Pass^k reporting across repeated attempts.","prerequisites":["Sandboxed execution environment","Reference implementations and fault cases","Token budget for repeated runs","Test harness"],"constraints":["Self-checks often share the implementation's errors","Gains vary by model and harness","Regressions occurred","Fixed token budgets"],"security":"Run generated code in isolated environments; the paper does not assess data or provenance risks.","proofOfValue":["Measure Pass^3 on your own reference tasks","Compare self-verification with an independent tester","Review failed trajectories for categories of error"]},"delivery":{"work":"Pilot a coder-and-tester agent setup on a small set of reference simulation tasks with human sign-off.","dependencies":["Reference cases","Sandbox compute","Model access","Review capacity"],"ownership":"Research computing owns tooling; the code owner or principal investigator owns acceptance.","skillsAdoption":"Researchers learn to specify tests and read agent trajectories; engineers learn to run repeat-attempt evaluations.","governanceCheckpoints":["Independent tests before code is used","Human review of numerical results","Record of agent, model and version"],"acceptanceCriteria":["Proposed: repeat-run success rate set on local tasks","Proposed: tests written independently of the implementer","Proposed: failed trajectories reviewed monthly"],"risks":["Passing own checks while incorrect","Inconsistent results across runs","Cost of repeated runs","Overtrust in single success"]}},"retrievedAt":"2026-11-17T21:50:13-06:00","enrichedAt":"2026-11-17T21:50:13-06:00","enrichmentBasis":"retrieved source","accessibilityWorkforceImplications":"Could lower the barrier to writing simulation code for non-specialists, but the paper reports no user or workforce results and shows verification still needs expertise.","procurementImplications":"Evaluate agent tools on consistency across repeated runs with independent tests, not on best-of-n success; token and compute cost of repeated runs should be budgeted.","operatingModelImplications":"Suggests research software teams pair coding agents with independent verification and human sign-off, and track consistency metrics.","peerReview":"preprint","sourceVerification":{"openedUrl":"https://arxiv.org/abs/2611.21176","referenceExcerpt":"No model-harness combination exceeds 78.8% Pass$^3$.","promptVersion":"sled-research-v4.0","model":null,"basis":"agent-reported inspection"}}}]}