arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2512.20732cs.LGcs.AIcs.SE
收藏

FEM-Bench:评估代码生成大语言模型的结构化科学推理基准

FEM-Bench: A Structured Scientific Reasoning Benchmark for Evaluating Code-Generating LLMs

Boston University(波士顿大学);Move37 Labs(Move37实验室);Department of Mechanical Engineering(机械工程系)

Saeed Mohammadzadeh, Erfan Hamdi, Joel Shor, Emma Lejeune

AI总结:

提出FEM-Bench基准,通过有限元方法相关编程任务评估大语言模型在科学计算中的结构化推理能力,实验表明现有模型尚不能稳定解决所有任务。

摘要:

随着大语言模型在物理世界推理能力上的进步,缺乏严格基准来评估其生成科学有效物理模型的能力已成为一个关键缺口。计算力学开发和运用数学模型与数值方法,预测物理系统在力、变形和约束下的行为,为结构化科学推理评估提供了理想基础。问题遵循清晰的数学结构,强制执行严格的物理和数值约束,并支持客观验证。该学科要求构建物理系统的显式模型,并推理几何、空间关系和材料行为,直接联系到新兴的AI物理推理和世界建模目标。我们提出FEM-Bench,一个计算力学基准,旨在评估大语言模型生成正确有限元方法及相关代码的能力。FEM-Bench 2025包含一系列入门但非平凡的任务,与计算力学研究生第一门课程的材料一致。这些任务捕捉了基本的数值和物理建模挑战,同时仅代表该学科复杂性的很小一部分。尽管简单,最先进的大语言模型并不能可靠地解决所有任务。在五次尝试中,函数编写表现最好的模型Gemini 3 Pro至少一次完成了30/33个任务,五次全部完成26/33个任务。单元测试编写表现最好的模型GPT-5的平均联合成功率为73.8%。其他流行模型显示出广泛的性能差异。FEM-Bench为评估AI生成的科学代码建立了结构化基础,未来版本将纳入更复杂的任务以跟踪模型进展。

英文摘要:

As LLMs advance their reasoning capabilities about the physical world, the absence of rigorous benchmarks for evaluating their ability to generate scientifically valid physical models has become a critical gap. Computational mechanics, which develops and applies mathematical models and numerical methods to predict the behavior of physical systems under forces, deformation, and constraints, provides an ideal foundation for structured scientific reasoning evaluation. Problems follow clear mathematical structure, enforce strict physical and numerical constraints, and support objective verification. The discipline requires constructing explicit models of physical systems and reasoning about geometry, spatial relationships, and material behavior, connecting directly to emerging AI goals in physical reasoning and world modeling. We introduce FEM-Bench, a computational mechanics benchmark designed to evaluate the ability of LLMs to generate correct finite element method (FEM) and related code. FEM-Bench 2025 contains a suite of introductory but nontrivial tasks aligned with material from a first graduate course on computational mechanics. These tasks capture essential numerical and physical modeling challenges while representing only a small fraction of the complexity present in the discipline. Despite their simplicity, state-of-the-art LLMs do not reliably solve all of them. In a five attempt run, the best performing model at function writing, Gemini 3 Pro, completed 30/33 tasks at least once and 26/33 tasks all five times. The best performing model at unit test writing, GPT-5, had an Average Joint Success Rate of 73.8%. Other popular models showed broad performance variation. FEM-Bench establishes a structured foundation for evaluating AI-generated scientific code, and future iterations will incorporate increasingly sophisticated tasks to track progress as models evolve.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑