arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.09636cs.AI
收藏

PDEAgent-Bench: 一个多指标、多库的PDE求解器生成基准

PDEAgent-Bench: A Multi-Metric, Multi-Library Benchmark for PDE Solver Generation

University of Science and Technology of China(中国科学技术大学);Tencent(腾讯);Beijing University of Posts and Telecommunications(北京邮电大学);Shanghai Jiao Tong University(上海交通大学);Zhejiang University(浙江大学);National University of Singapore(新加坡国立大学);Tsinghua University(清华大学);University of Texas at Dallas(德克萨斯大学达拉斯分校);Arizona State University(亚利桑那州立大学);Rice University(里士满大学);Technical University of Munich(慕尼黑技术大学);Stanford University(斯坦福大学);Alibaba Group(阿里巴巴集团)
Zhen Hang, Yushan Yashengjiang, Junhui Li, Huanshuo Dong, Yang Wei, Zhezheng Hao, Jiangtao Ma, Songlin Bai, Haozhong Kai, Xihang Yue, Gangzong Si, Dongming Jian… 展开作者

Zhen Hang, Yushan Yashengjiang, Junhui Li, Huanshuo Dong, Yang Wei, Zhezheng Hao, Jiangtao Ma, Songlin Bai, Haozhong Kai, Xihang Yue, Gangzong Si, Dongming Jiang, Chao Yao, Zhanhua Hu, Jiangqing Zhang, Pengwei Liu, Yaomin Shen, Xingyu Ren, Lei Liu, Zikang Xu, Han Li, Qingsong Yao, Hande Dong, Hong Wang

AI总结:

PDEAgent-Bench是首个针对PDE求解器生成的多指标、多库基准,包含645个实例,涵盖6类数学问题和11种PDE家族,评估生成求解器的可执行性、数值精度和计算效率。

摘要:

PDE-to-solver代码生成旨在从偏微分方程(PDE)规范自动合成可执行的数值求解器。此任务不仅需要理解PDE的数学结构,还需选择合适的离散化方案和求解器配置,并正确在有限元(FEM)库中实现结果。现有代码生成基准主要评估语法正确性或预定义测试用例的成功率。目前尚无公开的专门针对PDE-to-solver代码生成的基准,通用代码基准无法充分捕捉数值PDE求解的独特挑战,如确保求解器的准确性、效率和与专业FEM库的兼容性。我们引入PDEAgent-Bench,据我们所知,这是首个多指标、多库的PDE-to-solver代码生成基准。PDEAgent-Bench包含645个实例,涵盖6类数学问题和11种PDE家族,使用DOLFINx、Firedrake和deal.II等常见FEM库。每个实例提供面向代理的问题规范、在指定评估网格上的参考解,以及特定案例的精度和运行时间目标。PDEAgent-Bench采用分阶段评估框架,生成的求解器必须依次通过可执行性、数值精度和计算效率检查。与代表性LLM和代码代理的实验表明,模型通常能生成可运行的代码,但一旦强制执行精度和效率要求,通过率显著下降。这些结果表明,当前代理在生成数值可靠且高效的PDE求解器方面仍有限制,PDEAgent-Bench提供了一个基于数值PDE求解实际需求的可重复测试平台。

英文摘要:

PDE-to-solver code generation aims to automatically synthesize executable numerical solvers from partial differential equation (PDE) specifications. This task requires not only understanding the mathematical structure of PDEs, but also selecting appropriate discretization schemes and solver configurations, and correctly implementing the resulting formulations in finite-element method (FEM) libraries. Existing code generation benchmarks mainly evaluate syntactic correctness, or success on predefined test cases. To our knowledge, there is currently no publicly available benchmark specifically for PDE-to-solver code generation, and general-purpose code benchmarks do not fully capture the unique challenges of numerical PDE solution, such as ensuring solver accuracy, efficiency, and compatibility with professional FEM libraries. We introduce PDEAgent-Bench, to the best of our knowledge, the first multi-metric, multi-library benchmark for PDE-to-solver code generation. PDEAgent-Bench contains 645 instances across 6 mathematical categories and 11 PDE families, with common FEM libraries for DOLFINx, Firedrake, and deal.II. Each instance provides an agent-facing problem specification, a reference solution on a prescribed evaluation grid, and case-specific accuracy and runtime targets. PDEAgent-Bench adopts a staged evaluation framework in which generated solvers must sequentially pass executability, numerical accuracy, and computational efficiency checks. Experiments with representative LLMs and code agents show that models can often produce runnable code, but their pass rate drops substantially once accuracy and efficiency requirements are enforced. These results indicate that current agents remain limited in producing numerically reliable and efficient PDE solvers, and that PDEAgent-Bench provides a reproducible testbed grounded in the practical requirements of numerical PDE solving.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑