[Paper Review] FLUID-LLM: Learning Computational Fluid Dynamics with Spatiotemporal-aware Large Language Models
FLUID-LLM integrates pre-trained LLMs with spatiotemporal encoders/decoders to predict unsteady fluid dynamics, achieving improved CFD predictions on standard benchmarks.
Learning computational fluid dynamics (CFD) traditionally relies on computationally intensive simulations of the Navier-Stokes equations. Recently, large language models (LLMs) have shown remarkable pattern recognition and reasoning abilities in natural language processing (NLP) and computer vision (CV). However, these models struggle with the complex geometries inherent in fluid dynamics. We introduce FLUID-LLM, a novel framework combining pre-trained LLMs with spatiotemporal-aware encoding to predict unsteady fluid dynamics. Our approach leverages the temporal autoregressive abilities of LLMs alongside spatial-aware layers, bridging the gap between previous CFD prediction methods. Evaluations on standard benchmarks reveal significant performance improvements across various fluid datasets. Our results demonstrate that FLUID-LLM effectively integrates spatiotemporal information into pre-trained LLMs, enhancing CFD task performance.
Motivation & Objective
- Motivate reducing CFD computational costs by leveraging pretrained LLMs for fluid dynamics tasks.
- Introduce a spatiotemporal encoding scheme and patch-based transformer framework to handle high-dimensional CFD data.
- Demonstrate autoregressive LLM-based prediction with a GNN-based grid decoder for state differences.
- Evaluate against MeshGraphNets and other baselines on standard CFD datasets.
Proposed method
- Patch-based encoder that converts 2D CFD states into LLM feature space.
- Spatiotemporal embedding that injects x, y, and time coordinates into patch embeddings.
- Fine-tuned LLM processes encoded embeddings in autoregressive fashion.
- Grid-based decoder that maps LLM outputs to 16x16 patches and aggregates with a GNN to predict state differences.
- Training uses end-to-end autoregressive setup with DoRA fine-tuning for the LLM and MSE/MAE loss balance.
- Evaluation on Cylinder and Airflow datasets with RMSE across multiple prediction horizons.
Experimental results
Research questions
- RQ1Can pretrained LLMs with spatiotemporal encodings accurately predict unsteady CFD states from historical snapshots?
- RQ2How does increasing LLM size and pretraining affect CFD prediction accuracy across simple and complex flows?
- RQ3Do in-context learning and few-shot learning enable better generalization and adaptation to unseen CFD parameter spaces?
- RQ4What is the contribution of the GNN-based decoder relative to the LLM in achieving accurate state prediction?
Key findings
- FLUID-OPT2.7b consistently outperforms baselines across horizons on Cylinder and Airfoil datasets.
- Increasing from 125M to 2.7B parameters reduces RMSE by about 42% at 150 steps on Cylinder (with same encoder/decoder).
- On the Airfoil dataset, FLUID-OPT2.7b achieves about 48% lower RMSE at 150 steps versus MeshGraphNets.
- In-context history provides modest improvements (e.g., 3% RMSE reduction when increasing context from 1 to 6 in a fixed-task setup).
- Smaller FLUID-OPT125m benefits from pretraining for short sequences; larger FLUID-OPT2.7b handles longer horizons with clearer predictions.
- DilResNet and GAT2Conv show instability at longer horizons, while FLUID-OPT2.7b maintains accurate long-term predictions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.