FEM-Bench: A Structured Scientific Reasoning Benchmark for Evaluating Code-Generating LLMs
On the map: LLM reasoning → Spatial and embodied reasoning
Abstract (arXiv)
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.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in Spatial and embodied reasoning, one of 17 directions in LLM reasoning. Builds on 18 of its 79 references that are in the map. First posted on arXiv 23 Dec 2025.
Builds on
18 of 79 references.
References · 18
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Modelscited by 533
- 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 449
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
- 2025Accelerating scientific discovery with Co-Scientistcited by 353
- 2022Demonstrate-Search-Predict: Composing retrieval and language models for knowledge-intensive NLPcited by 316
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 270
- 2024FrontierMath: A Benchmark for Evaluating Advanced Mathematical Reasoning in AIcited by 227
- 2023EvoPrompt: Connecting LLMs with Evolutionary Algorithms Yields Powerful Prompt Optimizerscited by 189
6 more
- 2022Holistic Evaluation of Language Modelscited by 115
- 2024LLM Reasoners: New Evaluation, Library, and Analysis of Step-by-Step Reasoning with Large Language Modelscited by 70
- 2025LLM-SRBench: A New Benchmark for Scientific Equation Discovery with Large Language Modelscited by 61
- 2025Evaluating Large Language Models in Scientific Discoverycited by 38
- 2025CURIE: Evaluating LLMs On Multitask Scientific Long Context Understanding and Reasoningcited by 28
- 2025AI University: An LLM-Powered Learning Assistant for Engineering---A Finite Element Method Case Studycited by 1
Built on by
Citing papers per year: 2026: 7.
7 papers.
- 2026An Agentic Evaluation Framework for AI-Generated Scientific Code in PETSccited by 0
- 2026VFEAgent: A Multimodal Agent Framework for End-to-End Automated Finite Element Analysiscited by 0
- 2026From Execution to Capability: Scientific Experience Consolidation via Procedural Knowledge Synthesiscited by 0
- 2026Large language models for partial differential equation workflowscited by 0
- 2026Large Language Models and their Awareness of Mechanics and Spatial Geometrycited by 0
- 2026What Do CAE Simulation Agents Really Need Beyond a Generic Harness?cited by 0
- 2026EngIntervene: Benchmarking Multimodal Engineering State Understanding and Design Intervention Reasoningcited by 0
- 2026EngIntervene: Benchmarking Multimodal Engineering State Understanding and Design Intervention Reasoning27 Sep 2026
- 2026What Do CAE Simulation Agents Really Need Beyond a Generic Harness?3 Sep 2026
- 2026Large language models for partial differential equation workflows4 Aug 2026
- 2026From Execution to Capability: Scientific Experience Consolidation via Procedural Knowledge Synthesis27 Jul 2026
- 2026Large Language Models and their Awareness of Mechanics and Spatial Geometry10 Jul 2026
- 2026VFEAgent: A Multimodal Agent Framework for End-to-End Automated Finite Element Analysis27 May 2026
- 2026An Agentic Evaluation Framework for AI-Generated Scientific Code in PETSc16 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026ALL-FEM: Agentic Large Language models Fine-tuned for Finite Element Methods
- 2025FEABench: Evaluating Language Models on Multiphysics Reasoning Ability
- 2025ABench-Physics: Benchmarking Physical Reasoning in LLMs via High-Difficulty and Dynamic Physics Problems
- 2026PhysMent: An Interactive Approach For LLM Reasoning In Physics Problems
- 2025SPhyR: Spatial-Physical Reasoning Benchmark on Material Distribution
- 2024LLMPhy: Parameter-Identifiable Physical Reasoning Combining Large Language Models and Physics Engines
- 2026A Multi-AI-agent Framework Enabling End-to-end Finite Element Analysis for Solid Mechanics Problems
- 2025Automating modeling in mechanics: LLMs as designers of physics-constrained neural networks for constitutive modeling of materials