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

大規模言語モデルによる科学コーディング：有限要素解析から得られた証拠

Hamdi, Erfan, Shor, Joel, Lejeune, Emma · arXiv · 2026年11月16日

- **課題** LLMは有限要素計算を実行できるコードとして書けるだけでなく、数値的に正しく実装し、検証できるかが問題です。

## LLMのコードは数値的に正しいか

有限要素解析のコードは、要素の定式化、材料挙動、境界条件、解法アルゴリズムがかみ合っている必要があるため、実行できたからといって正しい計算だとはみなせません。この論文は、LLMが仕様どおりに有限要素計算を実装し、その結果を検証するテストを生成できるかを問うています。実行フィードバックとエージェントによる修正を認めた場合に、この能力がどう変わるかも併せて調べています。実行でき、もっともらしい出力を出すコードでも、実際には誤った計算をしうる点が問題の中心です。

## 課題の構成と評価手順

研究チームは既存のFEM-Benchを拡張し、17個の有限要素課題を作成しました。課題には、history-dependent 弾塑性、非線形cohesive zone、板の曲げ、3次元連続体と動力学が含まれます。各課題は関数シグニチャと詳細なdocstringとして提示され、Hは参照実装が使うヘルパー関数の数、Tはプロンプトで提供されるヘルパー関数の範囲を表します。実装トラックでは、検証入力で参照実装と出力を比べ、テスト生成トラックでは、参照実装を受け入れ、Expected Failureの事例を拒否できた場合に成功とします。

![Table 1: Summary of the 17 tasks evaluated in this study.Tasks are grouped by domain. H denotes the reference- helper count, and T the helper-availability tier…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-cae0df2a10d7b88fa660607929f7984d.png?thumb=512)

**Table 1** :Summary of the 17 tasks evaluated in this study.Tasks are grouped by domain. H denotes the reference- helper count, and T the helper-availability tier. Section 3.1 defines these annotations.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの4ページ目から図の部分を抽出しています。

## SimpleAgentとOpenHandsのハーネス

SimpleAgentは、Python実行と提出という2つの行動だけを持つ最小のエージェントです。実行は毎回新しいサンドボックスで、状態を持たずに行われます。提出は、少なくとも1回実行し、最新の終了コードが0の場合にのみ許可されます。OpenHandsでは、作業領域のファイルが反復の間で保持され、Web閲覧、ターミナル、ファイル編集などのツールを使います。研究チームはOpenHandsをSingularityコンテナに入れ、ローカルの参照実装にアクセスできないようにしました。両ハーネスとも、試行ごとにトークン予算2,000,000と最大200回の反復を適用しました。

![Figure 1: Overview of agentic harnesses studied.(a) Overview of SimpleAgent. SimpleAgent follows a ReAct-style loop with two actions: Python execution (test) a…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-23e579889b8df76fb115046c8cd7a188.png?thumb=512)

**Figure 1** :Overview of agentic harnesses studied.(a) Overview of SimpleAgent. SimpleAgent follows a ReAct-style loop with two actions: Python execution (test) and submission (submit). The Python execution action runs code in a fresh sandbox preloaded with the task’s required imports and helper functions. Execution is stateless: variables and files do not persist between executions, while the LLM retains the conversation history and receives execution output and exit codes as observations. Submission is permitted only after at least one execution and only if the most recent execution returned exit code 0. (b) Overview of the OpenHands coding agent. OpenHands is an open-source framework for coding agents. In this study, the agent had access to tools for web browsing, terminal execution, file editing, task tracking, planning, delegation to subagents, and a finish action to end the session. The agent ran inside a Singularity container configured to isolate it from the local reference implementations while retaining internet access.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの8ページ目から図の部分を抽出しています。

![Table 12: Agent harness operational limits.Timeouts apply separately to each action or request. Other limits apply per trial unless stated. A dash indicates th…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-773aeae7e323832a3bf27cdddfda2242.png?thumb=512)

**Table 12** :Agent harness operational limits.Timeouts apply separately to each action or request. Other limits apply per trial unless stated. A dash indicates that no explicit setting is reported here.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの27ページ目から図の部分を抽出しています。

## コーダーとテスターを分けた構成

探索的な構成では、実装の役割と検証の役割を2つのエージェントに分けます。コーダーは関数を開発し、テスターは仕様からpytestのテストを作成して、コンパイル済みの候補を実行します。テスターは複数の反復にわたってテストセットを保持し、最終提出の承認はテスターだけが行えます。コーダーの実行回数は、候補ごとに最大3回に制限されました。GPT-6 AstraとClaude Fable 5.1のペアを2つの役割配置で評価し、各ペアは17個の課題で、課題ごとに5回ずつ試行されました。

![Table 3: Experimental configurations.Each setting uses the 17 tasks in Table 1, with five trials per task and model or coder-tester pairing. Single-pass implem…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-318134d8f9223642874d3d74e18ca0af.png?thumb=512)

**Table 3** :Experimental configurations.Each setting uses the 17 tasks in Table 1, with five trials per task and model or coder-tester pairing. Single-pass implementation and test generation are separate tracks. The six shared models and Fable/Astra pairings are identified in Table 8.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの7ページ目から図の部分を抽出しています。

## 単一パスの実装とテスト生成の結果

単一パスの実装では、Claude Fable 5.1が関数精度87.1%で最も高い結果でした。テスト生成トラックでは、GPT-6 Astraが共同テスト成功率82.6%で最も高く、Claude Fable 5.1は49.9%でした。したがって、実装能力の高いモデルがテストもうまく作れるとは断定できません。2つのトラックは成功基準と集計方法が異なるため、互いに補う別々の指標として読む必要があります。

![Figure 3: Single-pass performance on implementation and test-generation tasks.Each point represents one of the 15 evaluated models listed in Table 2. Results a…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-633031d72b2f7e8f43ff2f3e0fe2ec11.png?thumb=512)

**Figure 3** :Single-pass performance on implementation and test-generation tasks.Each point represents one of the 15 evaluated models listed in Table 2. Results are computed separately for the implementation and test-generation tracks. Each track uses five trials per task (5 × 17 = 85 runs per model). The horizontal axis shows function correctness: the percentage of generated implementations that pass the benchmark evaluation. The vertical axis shows the average joint test success rate: the fraction of generated tests that both pass the reference implementation and reject the designated buggy implementations. Both of these metrics are averaged across tasks and trials. Higher values indicate better performance on each metric. The differing model rankings across the two axes show that stronger implementation performance does not necessarily mean stronger test-generation performance.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの11ページ目から図の部分を抽出しています。

![Table 4: Single-pass implementation and test-generation performance.Function implementation measures the fraction of submissions that pass the benchmark evalua…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-19b57c134e14e80f4389fc712412069b.png?thumb=512)

**Table 4** :Single-pass implementation and test-generation performance.Function implementation measures the fraction of submissions that pass the benchmark evaluation. Joint test success rate measures the fraction of generated tests that accept the reference implementation and reject all designated faulty implementations. Both metrics follow Section 3.3 and are percentages averaged over five trials per task, with equal weight across 17 tasks. Bold marks the highest value in each column.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの20ページ目から図の部分を抽出しています。

## 実行と修正が変えた信頼性

SimpleAgentは、6つのモデルすべてで単一パスよりPass@3を高めました。Claude Opus 5はSimpleAgentでPass@3 96.5%を記録しましたが、Pass3は77.1%でした。OpenHandsはGPT-5.6 SolでPass@3 88.2%、Pass3 72.4%と、より高い結果でした。一方で、一部の組み合わせでは予算の使い切りと回帰が見られ、予算の使い切りだけでは回帰の原因をすべては説明できません。

![Figure 4: Changes in task reliability relative to the single-pass baseline.Each row represents one model–harness combination across 17 tasks, with reliability…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-368722588e068d6db1b86d6e5ecabbe6.png?thumb=512)

**Figure 4** :Changes in task reliability relative to the single-pass baseline.Each row represents one model–harness combination across 17 tasks, with reliability measured by the number of successful runs out of five trials. Tasks are classified as newly solved when the success count increases from zero to a positive value, and as improved reliability when it increases from an already positive value. Degraded reliability indicates a decrease that remains above zero, whereas lost tasks have a positive baseline success count that falls to zero. Improvements extend to the right and regressions to the left. Unchanged task counts are shown separately. Most gains reflect improved reliability on previously solved tasks.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの12ページ目から図の部分を抽出しています。

![Figure 5: Pass@3 performance versus recorded cost.Pass@3 is estimated from five trials per task and averaged across 17 tasks. The horizontal axis shows the tot…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-1c86626c5dd9637c9c4d74f176dd9086.png?thumb=512)

**Figure 5** :Pass@3 performance versus recorded cost.Pass@3 is estimated from five trials per task and averaged across 17 tasks. The horizontal axis shows the total recorded cost across all 85 runs on a logarithmic scale. Dashed lines connect the Pareto-optimal configurations within the single-pass, SimpleAgent, and OpenHands settings. The star denotes a multi-agent configuration built on SimpleAgent, with GPT-6 Astra as the coder and Claude Fable 5.1 as the tester. SimpleAgent offers competitive performance at lower recorded cost than OpenHands for the evaluated models, while the coder-tester configuration achieves the highest Pass@3 among the configurations shown.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの13ページ目から図の部分を抽出しています。

![Figure 6: Pass 3 performance versus recorded cost.Pass 3 estimates the probability that all three attempts succeed, using five trials per task and averaging ac…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-33860299b2f5b41f560bf72730a8f8c6.png?thumb=512)

**Figure 6** :Pass 3 performance versus recorded cost.Pass 3 estimates the probability that all three attempts succeed, using five trials per task and averaging across 17 tasks. The horizontal axis shows the total recorded cost across all 85 runs on a logarithmic scale. Dashed lines connect the Pareto-optimal configurations within the single-pass, SimpleAgent, and OpenHands settings. The star denotes a multi-agent configuration built on SimpleAgent, with GPT-6 Astra as the coder and Claude Fable 5.1 as the tester. SimpleAgent achieves higher Pass3 than OpenHands for three of the six shared models at lower recorded cost, while the coder-tester configuration achieves the highest Pass3 among the configurations shown.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの14ページ目から図の部分を抽出しています。

![Table 5: Changes in task reliability relative to single-pass generation.Each task has five implementation trials. Newly solved tasks increase from zero to at l…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-010be9c6e10f59845c342ffb2158c9f8.png?thumb=512)

**Table 5** :Changes in task reliability relative to single-pass generation.Each task has five implementation trials. Newly solved tasks increase from zero to at least one successful trial. Improved tasks increase from a positive success count. Lost tasks fall to zero successes, while degraded tasks decrease but retain at least one success. Unchanged tasks have the same success count. Entries count tasks, and each row sums to 17.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの20ページ目から図の部分を抽出しています。

![Table 6: Pass@3 (implementation) by model and method.Pass@3 estimates the probability of at least one successful implementation in three attempts (Equation 4).…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-341054c2fa753101256547ec94110084.png?thumb=512)

**Table 6** :Pass@3 (implementation) by model and method.Pass@3 estimates the probability of at least one successful implementation in three attempts (Equation 4). Values are percentages estimated from five trials per task and averaged equally across 17 tasks. Dashes indicate unevaluated combinations. Bold marks the highest score in each method column.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの21ページ目から図の部分を抽出しています。

![Table 7: Pass 3 (implementation) by model and method.Pass 3 estimates the probability that all three implementations succeed in three attempts (Equation 5). Va…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-5053b3b580b962173a7dd341ec9b4d0d.png?thumb=512)

**Table 7** :Pass 3 (implementation) by model and method.Pass 3 estimates the probability that all three implementations succeed in three attempts (Equation 5). Values are percentages estimated from five trials per task and averaged equally across 17 tasks. Dashes indicate unevaluated combinations. Bold marks the highest score in each method column.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの21ページ目から図の部分を抽出しています。

## 自己検証の失敗カテゴリ

研究チームは、自己検査は通過したものの独立評価で失敗した249件の軌跡を、6つのカテゴリに分類しました。最も多かったのは、テストの構成と範囲の不足（VF-01, 73.1%）と、一般的な一貫性チェック（VF-02, 70.3%）でした。実装と基準計算が同じ誤りを共有した事例（VF-04）は28.5%でした。分類は3人の判定者と最終調整者が行い、初期の判定者間で判定が食い違った145件は、調整者が最終分類しました。

![Figure 2: Overview of the LLM-as-judge workflow for categorizing self-verification failures.Three initial judges independently assess each input package using…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-b666710197b010845ef075915fcd11c4.png?thumb=512)

**Figure 2** :Overview of the LLM-as-judge workflow for categorizing self-verification failures.Three initial judges independently assess each input package using the codebook, assigning all applicable labels with a short rationale for each. Their label sets are then compared case by case. When all three judges assign identical label sets, the shared classification is retained as final. Cases with any label disagreement are passed to a final adjudicator. The final adjudicator uses the original input package, all three judges’ verdicts and rationales, and the codebook to determine the final classification.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの10ページ目から図の部分を抽出しています。

![Figure 7: Self-verification failure categories among completed failed submissions.(a) Categories grouped by model. Each bar shows the number of analyzed failed…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-cbd75a867955e065aaa05093adab66ba.png?thumb=512)

**Figure 7** :Self-verification failure categories among completed failed submissions.(a) Categories grouped by model. Each bar shows the number of analyzed failed cases assigned to a particular category, pooled across SimpleAgent and OpenHands. Models are ordered by increasing number of analyzed failed cases. Inadequate Test Configuration and Coverage and Generic Consistency Checks are the most frequently assigned categories. A case may receive multiple labels, so category counts can sum to more than the number of cases for a model. (b) Distribution of self-verification failure categories. Bars show the percentage of the 249 analyzed failed cases assigned to each category, pooled across models and agentic harnesses. Categories are ordered by decreasing frequency, and numbers beside the bars indicate case counts. A case may receive multiple labels, so the percentages do not sum to 100%.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの15ページ目から図の部分を抽出しています。

![Table 10: Self-verification failure categories by model.Counts pool failed SimpleAgent and OpenHands submissions. Cases gives the number of analyzed failed sub…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-60c6cf4fe784244113f78fc11334b038.png?thumb=512)

**Table 10** :Self-verification failure categories by model.Counts pool failed SimpleAgent and OpenHands submissions. Cases gives the number of analyzed failed submissions for each model. Final labels combine 104 unanimous three-judge decisions and 145 adjudicated decisions. A case may receive multiple categories, so category counts can exceed the number of cases. Codes are expanded in Table 11.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの24ページ目から図の部分を抽出しています。

![Table 11: Distribution of self-verification failure categories.Counts cover 146 SimpleAgent and 103 OpenHands failed submissions. Percentages use all 249 analy…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-1a5646be90d5d6410838c1c8d8ac3b96.png?thumb=512)

**Table 11** :Distribution of self-verification failure categories.Counts cover 146 SimpleAgent and 103 OpenHands failed submissions. Percentages use all 249 analyzed failed cases as the denominator. A case may receive multiple labels, so category percentages need not sum to 100%. The last row reports cohort sizes rather than a sum of category counts.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの24ページ目から図の部分を抽出しています。

![Table 13: LLM judge configuration.Output token caps are measured in tokens per call. High denotes the configured reasoning effort. Claude Opus 5.5 uses adaptiv…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-6de89ad27347c13643b0ca6eeca5e351.png?thumb=512)

**Table 13** :LLM judge configuration.Output token caps are measured in tokens per call. High denotes the configured reasoning effort. Claude Opus 5.5 uses adaptive reasoning with high effort.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの28ページ目から図の部分を抽出しています。

![Table 14: Initial-judge agreement and category prevalence.Fleiss’ κ measures agreement among three judges across 249 failed submissions before adjudication. Pr…](https://refivu.com/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897/figures/figure-bebdb02b0fae811f81b8ffb92921ce84.png?thumb=512)

**Table 14** :Initial-judge agreement and category prevalence.Fleiss’ κ measures agreement among three judges across 249 failed submissions before adjudication. Prevalence is the percentage of the 747 individual judgments assigning each category.

[出典](https://arxiv.org/abs/2611.21176v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hamdi, Erfan, Shor, Joel, Lejeune, Emma · Scientific Coding with Large Language Models: Evidence from Finite Element Analysis · 論文の図を引用 · 元のPDFの28ページ目から図の部分を抽出しています。

## 範囲と残された課題

この研究は、17個の有限要素課題と課題ごとに5回の試行に限られます。テスト生成トラックは、事前に用意した参照実装と欠陥実装で評価したため、エージェントが自分のコードの誤りを見つける能力は直接測っていません。判定者の分類は手作業のレビューで作成したコードブックを使うため、誤分類の可能性が残ります。

## 論文情報

- **著者**: Hamdi, Erfan, Shor, Joel, Lejeune, Emma
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2026年11月16日
- **登録日**: 2026年11月17日
- **更新日**: 2026年11月16日
- **バージョン**: v1
- **arXiv**: 2611.21176
- **カテゴリ**: cs.SE · cs.AI · cs.CE
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2611.21176v1) · [PDF ↗](https://arxiv.org/pdf/2611.21176v1)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

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% Pass$^3$, the probability that all three succeed. No model-harness combination exceeds 78.8% Pass$^3$. 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% Pass$^3$. These results identify consistency across attempts and independent verification as the main obstacles to trusting LLM-generated scientific code.

## この論文を引用

Hamdi, Erfan, Shor, Joel, Lejeune, Emma (2026). Scientific Coding with Large Language Models: Evidence from Finite Element Analysis. arXiv:2611.21176v1. https://arxiv.org/abs/2611.21176v1

**BibTeX**

```
@misc{erfan2026scientific,
  title = {{Scientific Coding with Large Language Models: Evidence from Finite Element Analysis}},
  author = {Hamdi, Erfan and Shor, Joel and Lejeune, Emma},
  year = {2026},
  eprint = {2611.21176},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.21176v1}
}
```

## この論文の用語

- [ReAct](https://refivu.com/ja/terms/420780a0fd8c-react)
- [GPT-6 Astra](https://refivu.com/ja/terms/b41650762174-gpt-6-astra)
- [Fleiss’ κ](https://refivu.com/ja/terms/69af20f74138-fleiss)
- [Claude Opus 5](https://refivu.com/ja/terms/d6b418546d02-claude-opus-5)
- [OpenHands](https://refivu.com/ja/terms/0368eb006bfb-openhands)

## ほかの論文解説

- [ReconPotBench: Evaluating LLM Honeypots in Multi-Round Linux Reconnaissance](https://refivu.com/ja/papers/e24c898c-0509-402a-9624-63330b19691d-reconpotbench-evaluating-llm-honeypots-in-multi-round-linux.md)
- [PixelBench: Evaluating Language Models for Pixel-Art Creation](https://refivu.com/ja/papers/90b0ce48-ae85-4822-b357-e4c1682fdbdd-pixelbench-evaluating-language-models-for-pixel-art-creation.md)
- [Instant Weight-Space Consolidation for Long-Term Memory in LLMs](https://refivu.com/ja/papers/d7e910e4-bc6c-4c84-b5c0-2c8df4c15f81-instant-weight-space-consolidation-for-long-term-memory.md)
- [A First Look at System One Decision Models for Malware Detection](https://refivu.com/ja/papers/d7188362-7fe4-49a4-b9d4-ee9f2814aa06-a-first-look-at-system-one-decision-models.md)
- [Instrumenting Failure: Scoring Language Model Agents at Every Decision Node in Imperfect-Information Games](https://refivu.com/ja/papers/4f932edd-6e37-4f45-b224-f502edc8ea06-instrumenting-failure-scoring-language-model-agents-at-every.md)
- [Can LLMs Give Good Product Advice? A Framework for Diagnosing Failures](https://refivu.com/ja/papers/3ad444ba-7cfd-475f-a797-b246d242ef25-can-llms-give-good-product-advice-a-framework.md)
- [Contrastive Activation-Guided Zeroth-Order Preference Optimisation for Memory-Efficient LLM Alignment](https://refivu.com/ja/papers/1d7c079e-0590-4e0d-acd8-9dd202cb0b88-contrastive-activation-guided-zeroth-order-preference.md)
- [EchoSpec: Training Search Agents to Weigh Evidence Above Echoes](https://refivu.com/ja/papers/22f39cf0-d41a-4695-8d6b-0d26df622012-echospec-training-search-agents-to-weigh-evidence-above.md)
- [MOBO-CAPS: Multi-Objective Bayesian Optimization with Cardinality-Aware Pareto Selection](https://refivu.com/ja/papers/991c1e19-028e-4007-af06-d79b4427cd80-mobo-caps-multi-objective-bayesian-optimization-with.md)
- [VIVID: A Visual Harness for Agentic Video Editing](https://refivu.com/ja/papers/2e7fc25b-04e2-4f48-ad44-5f5675ff1f53-vivid-a-visual-harness-for-agentic-video-editing.md)
- [Rethinking Supervision Scaling in On-Policy Distillation: From Dense Supervision to Stochastic Horizons](https://refivu.com/ja/papers/ac8513c0-236d-4a8e-88ff-120fbdfc2d9c-rethinking-supervision-scaling-in-on-policy-distillation.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/fbc5e96e-993c-477a-b7cc-7e022fd35897-scientific-coding-with-large-language-models-evidence-from)
