mlsanityData to 14 Oct 2026

ALL-FEM: Agentic Large Language models Fine-tuned for Finite Element Methods

arXiv 2603.21011 ↗First posted 8 Jan 2026cs.CE cs.AI cs.LGcited by 12

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

  1. 2025FeaGPT: an End-to-End agentic-AI for Finite Element Analysis24 Oct
  2. 2023MechAgents: Large language model multi-agent collaborations can solve mechanics problems, generate new data, and integrate knowledge14 Nov

Other references · 30

  1. 2017Attention Is All You Needcited by 60,361
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  5. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  6. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  7. 2020Scaling Laws for Neural Language Modelscited by 6,586
  8. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  9. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  10. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
  11. 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,988
  12. 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,947
18 more
  1. 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
  2. 2023A Survey on Evaluation of Large Language Modelscited by 1,242
  3. 2023Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Modelscited by 698
  4. 2024LoRA Learns Less and Forgets Lesscited by 328
  5. 2023A Rank Stabilization Scaling Factor for Fine-Tuning with LoRAcited by 243
  6. 2024More Agents Is All You Needcited by 180
  7. 2018Model Evaluation, Model Selection, and Algorithm Selection in Machine Learningcited by 157
  8. 2024LoRA vs Full Fine-tuning: An Illusion of Equivalencecited by 109
  9. 2024ProtAgents: Protein discovery via large language model multi-agent collaborations combining physics and machine learningcited by 64
  10. 2024HoneyComb: A Flexible LLM-Based Agent System for Materials Sciencecited by 57
  11. 2024MetaOpenFOAM: an LLM-based multi-agent framework for CFDcited by 39
  12. 2024CodeMirage: Hallucinations in Code Generated by Large Language Modelscited by 23
  13. 2025Fine-tuning a Large Language Model for Automating Computational Fluid Dynamics Simulationscited by 18
  14. 2025AgenticSciML: Collaborative Multi-Agent Systems for Emergent Discovery in Scientific Machine Learningcited by 14
  15. 2025ATHENA: Agentic Team for Hierarchical Evolutionary Numerical Algorithmscited by 7
  16. 2025Tensor-decomposition-based A Priori Surrogate (TAPS) modeling for ultra large-scale simulationscited by 3
  17. 2025A Status Quo Investigation of Large Language Models towards Cost-Effective CFD Automation with OpenFOAMGPT: ChatGPT vs. Qwen vs. Deepseekcited by 3
  18. 2025What Scales in Cross-Entropy Scaling Law?cited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 12.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026VFEAgent: A Multimodal Agent Framework for End-to-End Automated Finite Element Analysis
  2. 2025FEABench: Evaluating Language Models on Multiphysics Reasoning Ability
  3. 2025FEM-Bench: A Structured Scientific Reasoning Benchmark for Evaluating Code-Generating LLMs
  4. 2025MooseAgent: A LLM Based Multi-agent Framework for Automating Moose Simulation
  5. 2025A Lightweight Large Language Model-Based Multi-Agent System for 2D Frame Structural Analysis
  6. 2025Automating modeling in mechanics: LLMs as designers of physics-constrained neural networks for constitutive modeling of materials
  7. 2024Large Language Model Agent as a Mechanical Designer
  8. 2024Collaboration Dynamics and Reliability Challenges of Multi-Agent LLM Systems in Finite Element Analysis