ALL-FEM: Agentic Large Language models Fine-tuned for Finite Element Methods
On the map: LLM agents and tool use → Multimodal and embodied agents
Abstract (arXiv)
Finite element (FE) analysis guides the design and verification of nearly all manufactured objects. It is at the core of computational engineering, enabling simulation of complex physical systems, from fluids and solids to multiphysics systems. However, implementing FE codes and analyzing simulation results demands expertise across numerical analysis, continuum mechanics, and programming. Conventional Large Language Models (LLMs) can generate FE code, but they hallucinate, lack awareness of variational structures, and cannot close the loop from problem statement to a verified solution. Here, we propose ALL-FEM, an autonomous simulation system that integrates agentic AI with domain-specific, fine-tuned LLMs for FEniCS code generation across solid, fluid, and multiphysics applications. We construct a corpus of 1000+ verified FEniCS scripts by combining 500+ curated expert codes with a retrieval-augmented, multi-LLM pipeline that generates and filters codes for diverse PDEs, geometries, and boundary conditions. We used the corpus to fine-tune LLMs with 3B to 120B parameters. Our agentic framework orchestrates specialized agents, powered by fine-tuned LLMs, to formulate problems as PDEs, generate and debug code and visualize the results. We evaluated the system on 39 benchmarks that include problems of linear/nonlinear elasticity, plasticity, Newtonian/non-Newtonian flow, thermofluids, fluid-structure interaction, phase separation, and transport on moving domains. Embedded in a multi-agent workflow with runtime feedback, the best fine-tuned model (GPT OSS 120B) achieves code-level success of 71.79%, outperforming a non-agentic deployment of GPT 5 Thinking. By showing that relatively small, fine-tuned LLMs, orchestrated through agentic frameworks, can automate FE workflows, ALL-FEM offers a blueprint for autonomous simulation systems in computational science and engineering.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Placed in Multimodal and embodied agents, one of 16 directions in LLM agents and tool use. Builds on 32 of its 97 references that are in the map. First posted on arXiv 8 Jan 2026.
Builds on
32 of 97 references.
Closest ancestors · 2
Same direction, newest first
- 2025FeaGPT: an End-to-End agentic-AI for Finite Element Analysis24 Oct
- 2023MechAgents: Large language model multi-agent collaborations can solve mechanics problems, generate new data, and integrate knowledge14 Nov
Other references · 30
- 2017Attention Is All You Needcited by 60,361
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,988
- 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,947
18 more
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
- 2023A Survey on Evaluation of Large Language Modelscited by 1,242
- 2023Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Modelscited by 698
- 2024LoRA Learns Less and Forgets Lesscited by 328
- 2023A Rank Stabilization Scaling Factor for Fine-Tuning with LoRAcited by 243
- 2024More Agents Is All You Needcited by 180
- 2018Model Evaluation, Model Selection, and Algorithm Selection in Machine Learningcited by 157
- 2024LoRA vs Full Fine-tuning: An Illusion of Equivalencecited by 109
- 2024ProtAgents: Protein discovery via large language model multi-agent collaborations combining physics and machine learningcited by 64
- 2024HoneyComb: A Flexible LLM-Based Agent System for Materials Sciencecited by 57
- 2024MetaOpenFOAM: an LLM-based multi-agent framework for CFDcited by 39
- 2024CodeMirage: Hallucinations in Code Generated by Large Language Modelscited by 23
- 2025Fine-tuning a Large Language Model for Automating Computational Fluid Dynamics Simulationscited by 18
- 2025AgenticSciML: Collaborative Multi-Agent Systems for Emergent Discovery in Scientific Machine Learningcited by 14
- 2025ATHENA: Agentic Team for Hierarchical Evolutionary Numerical Algorithmscited by 7
- 2025Tensor-decomposition-based A Priori Surrogate (TAPS) modeling for ultra large-scale simulationscited by 3
- 2025A Status Quo Investigation of Large Language Models towards Cost-Effective CFD Automation with OpenFOAMGPT: ChatGPT vs. Qwen vs. Deepseekcited by 3
- 2025What Scales in Cross-Entropy Scaling Law?cited by 1
Built on by
Citing papers per year: 2026: 12.
12 papers.
- 2026From Perception to Autonomous Computational Modeling: A Multi-Agent Approachcited by 4
- 2026EngiAI: Capability-Based Evaluation of Tool-Connected LLM Agents for Engineering Designcited by 3
- 2026AutoMOOSE: An Agentic AI for Autonomous Phase-Field Simulationcited by 2
- 2026SCICONVBENCH: Benchmarking LLMs on Multi-Turn Clarification for Task Formulation in Computational Sciencecited by 2
- 2026Reinforcement Learning with Verifiable Physics: Post-training LLMs with Continuous Rewardscited by 2
- 2026A Multi-AI-agent Framework Enabling End-to-end Finite Element Analysis for Solid Mechanics Problemscited by 1
- 2026Physics-Audited Agentic Discovery in Scientific Machine Learningcited by 1
- 2026Self-Refining Topology Optimization via an LLM-Based Multi-Agent Frameworkcited by 0
- 2026A Constrained Natural-Language Interface for Variational Multi-Physics Finite Element Simulations in FEniCScited by 0
- 2026Large language models for partial differential equation workflowscited by 0
- 2026What Do CAE Simulation Agents Really Need Beyond a Generic Harness?cited by 0
- 2026CP-Agent: A Harness-Engineered Agent for Crystal Plasticity Simulation Workflowscited by 0
- 2026CP-Agent: A Harness-Engineered Agent for Crystal Plasticity Simulation Workflows25 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
- 2026Reinforcement Learning with Verifiable Physics: Post-training LLMs with Continuous Rewards11 Jul 2026
- 2026Physics-Audited Agentic Discovery in Scientific Machine Learning8 Jul 2026
- 2026A Constrained Natural-Language Interface for Variational Multi-Physics Finite Element Simulations in FEniCS9 Jun 2026
- 2026A Multi-AI-agent Framework Enabling End-to-end Finite Element Analysis for Solid Mechanics Problems28 May 2026
- 2026Self-Refining Topology Optimization via an LLM-Based Multi-Agent Framework22 May 2026
- 2026EngiAI: Capability-Based Evaluation of Tool-Connected LLM Agents for Engineering Design19 May 2026
- 2026SCICONVBENCH: Benchmarking LLMs on Multi-Turn Clarification for Task Formulation in Computational Science18 May 2026
- 2026From Perception to Autonomous Computational Modeling: A Multi-Agent Approach8 Apr 2026
- 2026AutoMOOSE: An Agentic AI for Autonomous Phase-Field Simulation22 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026VFEAgent: A Multimodal Agent Framework for End-to-End Automated Finite Element Analysis
- 2025FEABench: Evaluating Language Models on Multiphysics Reasoning Ability
- 2025FEM-Bench: A Structured Scientific Reasoning Benchmark for Evaluating Code-Generating LLMs
- 2025MooseAgent: A LLM Based Multi-agent Framework for Automating Moose Simulation
- 2025A Lightweight Large Language Model-Based Multi-Agent System for 2D Frame Structural Analysis
- 2025Automating modeling in mechanics: LLMs as designers of physics-constrained neural networks for constitutive modeling of materials
- 2024Large Language Model Agent as a Mechanical Designer
- 2024Collaboration Dynamics and Reliability Challenges of Multi-Agent LLM Systems in Finite Element Analysis