Saved in:
Bibliographic Details
Main Authors: Shafiq, Ossama, Ghiassi, Bahman, Alexiadis, Alessio
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2503.18178
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908280286085120
author Shafiq, Ossama
Ghiassi, Bahman
Alexiadis, Alessio
author_facet Shafiq, Ossama
Ghiassi, Bahman
Alexiadis, Alessio
contents Engineers widely rely on simulation platforms like COMSOL or ANSYS to model and optimise processes. However, setting up such simulations requires expertise in defining geometry, generating meshes, establishing boundary conditions, and configuring solvers. This research aims to simplify this process by enabling engineers to describe their setup in plain language, allowing a Large Language Model (LLM) to generate the necessary input files for their specific application. This novel approach allows establishing a direct link between natural language and complex engineering tasks. Building on previous work that evaluated various LLMs for generating input files across simple and complex geometries, this study demonstrates that small LLMs - specifically, Phi-3 Mini and Qwen-2.5 1.5B - can be fine-tuned to generate precise engineering geometries in GMSH format. Through Low-Rank Adaptation (LoRA), we curated a dataset of 480 instruction-output pairs encompassing simple shapes (squares, rectangles, circles, and half circles) and more complex structures (I-beams, cylindrical pipes, and bent pipes). The fine-tuned models produced high-fidelity outputs, handling routine geometry generation with minimal intervention. While challenges remain with geometries involving combinations of multiple bodies, this study demonstrates that fine-tuned small models can outperform larger models like GPT-4o in specialised tasks, offering a precise and resource-efficient alternative for engineering applications.
format Preprint
id arxiv_https___arxiv_org_abs_2503_18178
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle The Power of Small LLMs in Geometry Generation for Physical Simulations
Shafiq, Ossama
Ghiassi, Bahman
Alexiadis, Alessio
Computational Engineering, Finance, and Science
Engineers widely rely on simulation platforms like COMSOL or ANSYS to model and optimise processes. However, setting up such simulations requires expertise in defining geometry, generating meshes, establishing boundary conditions, and configuring solvers. This research aims to simplify this process by enabling engineers to describe their setup in plain language, allowing a Large Language Model (LLM) to generate the necessary input files for their specific application. This novel approach allows establishing a direct link between natural language and complex engineering tasks. Building on previous work that evaluated various LLMs for generating input files across simple and complex geometries, this study demonstrates that small LLMs - specifically, Phi-3 Mini and Qwen-2.5 1.5B - can be fine-tuned to generate precise engineering geometries in GMSH format. Through Low-Rank Adaptation (LoRA), we curated a dataset of 480 instruction-output pairs encompassing simple shapes (squares, rectangles, circles, and half circles) and more complex structures (I-beams, cylindrical pipes, and bent pipes). The fine-tuned models produced high-fidelity outputs, handling routine geometry generation with minimal intervention. While challenges remain with geometries involving combinations of multiple bodies, this study demonstrates that fine-tuned small models can outperform larger models like GPT-4o in specialised tasks, offering a precise and resource-efficient alternative for engineering applications.
title The Power of Small LLMs in Geometry Generation for Physical Simulations
topic Computational Engineering, Finance, and Science
url https://arxiv.org/abs/2503.18178