# Agent4FreeFem: A Verification-Guided Framework for Autonomous Topology Optimization

arXiv: https://arxiv.org/abs/2611.00803 · HTML: https://mlsanity.com/paper/2611.00803/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 11 of its 37 references that are in the map.
- Submitted 31 Oct 2026.

## Builds on (most cited first, 11 of 11)

- [Evaluating Large Language Models Trained on Code](https://mlsanity.com/paper/2107.03374/) (2021)
- [SciCode: A Research Coding Benchmark Curated by Scientists](https://mlsanity.com/paper/2407.13168/) (2024)
- [MechAgents: Large language model multi-agent collaborations can solve mechanics problems, generate new data, and integrate knowledge](https://mlsanity.com/paper/2311.08166/) (2023)
- [FEABench: Evaluating Language Models on Multiphysics Reasoning Ability](https://mlsanity.com/paper/2504.06260/) (2025)
- [ALL-FEM: Agentic Large Language models Fine-tuned for Finite Element Methods](https://mlsanity.com/paper/2603.21011/) (2026)
- [FEM-Bench: A Structured Scientific Reasoning Benchmark for Evaluating Code-Generating LLMs](https://mlsanity.com/paper/2512.20732/) (2025)
- [Optimize Any Topology: A Foundation Model for Shape- and Resolution-Free Structural Topology Optimization](https://mlsanity.com/paper/2510.23667/) (2025)
- [Large Language Models as Optimization Controllers: Adaptive Continuation for SIMP Topology Optimization](https://mlsanity.com/paper/2603.25099/) (2026)
- [TO-Master: an LLM-agent framework for automated topology optimization](https://mlsanity.com/paper/2607.01812/) (2026)
- [AutoFreeFem: Automatic code generation with FreeFEM++ and LaTex output for shape and topology optimization of non-linear multi-physics problems](https://mlsanity.com/paper/2407.11713/) (2024)
- [Self-Refining Topology Optimization via an LLM-Based Multi-Agent Framework](https://mlsanity.com/paper/2605.23273/) (2026)

## Abstract (arXiv)

Topology optimization has become an indispensable design tool in the aerospace, automotive, and mechanical engineering industries. Yet bringing a new problem from its description to an optimized result remains slow, expert-dependent, and unreliable: the workflow spans many manually connected stages, each new problem requires solver code to be written and debugged manually, and such code often fails or yields incorrect results. We present Agent4FreeFem, a pipeline driven by a large language model that turns a natural-language problem description into a set of verified optimization results without manual solver-code development or debugging. The pipeline keeps the problem definition unmodified, localizes errors using independent sources of evidence, and completes constrained repairs automatically, thereby providing efficient end-to-end automation, autonomous execution, and verifiable results. We evaluated Agent4FreeFem on a suite of single-physics and coupled multiphysics problems. Every case passed runtime verification and finished within the repair budget of each stage.
