用自然语言直接生成可运行的物理信息神经网络,省去人工建模步骤。
Lang-PINN: From Language to Physics-Informed Neural Networks via a Multi-Agent Framework
- 四智能体协作:从语言描述自动推导方程、选架构、写代码、调试迭代。
- 误差降低3到5个数量级,端到端成功率提升超50%,耗时减少74%。
- 适合非专业用户快速构建物理模拟模型,尤其适合科研与工程场景。
物理信息神经网络(PINN)是求解偏微分方程(PDE)的强大方法,但构建可用的PINN仍需大量人力且易出错。科学家需将问题转化为PDE形式、设计网络结构与损失函数,并实现稳定训练流程。现有基于大语言模型(LLM)的方法仅解决代码生成或架构建议等局部问题,通常假设已有规范化的PDE表达式,缺乏端到端视角。本文提出Lang-PINN,一种由LLM驱动的多智能体系统,可直接从自然语言任务描述生成可训练的PINN。该系统协调四个互补智能体:PDE智能体将任务描述解析为符号化PDE,PINN智能体选择网络架构,代码智能体生成模块化实现,反馈智能体执行并诊断错误以支持迭代优化。该设计将非正式任务表述转化为可执行、可验证的PINN代码。实验表明,Lang-PINN相比竞争基线显著降低误差并提升鲁棒性:均方误差(MSE)最高降低3–5个数量级,端到端执行成功率提升超50%,时间开销减少达74%。
原文摘要 · Abstract (English)
Physics-informed neural networks (PINNs) provide a powerful approach for solving partial differential equations (PDEs), but constructing a usable PINN remains labor-intensive and error-prone. Scientists must interpret problems as PDE formulations, design architectures and loss functions, and implement stable training pipelines. Existing large language model (LLM) based approaches address isolated steps such as code generation or architecture suggestion, but typically assume a formal PDE is already specified and therefore lack an end-to-end perspective. We present Lang-PINN, an LLM-driven multi-agent system that builds trainable PINNs directly from natural language task descriptions. Lang-PINN coordinates four complementary agents: a PDE Agent that parses task descriptions into symbolic PDEs, a PINN Agent that selects architectures, a Code Agent that generates modular implementations, and a Feedback Agent that executes and diagnoses errors for iterative refinement. This design transforms informal task statements into executable and verifiable PINN code. Experiments show that Lang-PINN achieves substantially lower errors and greater robustness than competitive baselines: mean squared error (MSE) is reduced by up to 3--5 orders of magnitude, end-to-end execution success improves by more than 50\%, and reduces time overhead by up to 74\%.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。