PINNsAgent: Automated PDE Surrogation with Large Language Models
Qingpo Wuwu, Chonghan Gao, Tianyu Chen, Yihang Huang, Yuekai Zhang, Jianing Wang, Jianxin Li, Haoyi Zhou, Shanghang Zhang
TL;DR
PINNsAgent introduces an LLM-driven surrogate framework for automated PINN design to solve PDEs, addressing the expertise gap in hyperparameter tuning and architecture selection. It combines Physics-Guided Knowledge Replay (PGKR) for knowledge transfer from solved PDEs with a Memory Tree Reasoning Strategy (MTRS) that guides exploration of the PINN space. The approach operates in two modes (Config Generation and Code Generation) and leverages a Code Bank and iterative revisions to refine configurations over multiple iterations. Empirical results on the PINNacle 14 PDEs show strong performance gains over random and Bayesian baselines, with ablations confirming the essential roles of PGKR and MTRS in achieving robust, high-accuracy surrogates.
Abstract
Solving partial differential equations (PDEs) using neural methods has been a long-standing scientific and engineering research pursuit. Physics-Informed Neural Networks (PINNs) have emerged as a promising alternative to traditional numerical methods for solving PDEs. However, the gap between domain-specific knowledge and deep learning expertise often limits the practical application of PINNs. Previous works typically involve manually conducting extensive PINNs experiments and summarizing heuristic rules for hyperparameter tuning. In this work, we introduce PINNsAgent, a novel surrogation framework that leverages large language models (LLMs) and utilizes PINNs as a foundation to bridge the gap between domain-specific knowledge and deep learning. Specifically, PINNsAgent integrates (1) Physics-Guided Knowledge Replay (PGKR), which encodes the essential characteristics of PDEs and their associated best-performing PINNs configurations into a structured format, enabling efficient knowledge transfer from solved PDEs to similar problems and (2) Memory Tree Reasoning, a strategy that effectively explores the search space for optimal PINNs architectures. By leveraging LLMs and exploration strategies, PINNsAgent enhances the automation and efficiency of PINNs-based solutions. We evaluate PINNsAgent on 14 benchmark PDEs, demonstrating its effectiveness in automating the surrogation process and significantly improving the accuracy of PINNs-based solutions.
