通过自动诊断与技能发现训练数值智能

·

研究论文 · 2026/10/06

AI智能体在生成科学代码方面能力日益增强,但生成代码并不等同于改进其背后的算法。对于数值求解器,执行反馈能暴露性能不佳,却很少揭示其根本原因及解决方法。我们提出自动诊断与技能发现(ADSD)框架,将数值诊断与可复用的求解器自我改进相连接。ADSD遵循诊断优先的范式,首先解释求解器表现不佳的原因,然后利用该诊断指导发现合适的数值方法。所得知识被封装为可复用的求解器技能,将求解器改进从试错编辑转变为诊断、发现和实现的结构化过程。在四个具有挑战性的数值领域——潮流方程、交流最优潮流控制、刚性常微分方程和异质扩散偏微分方程——ADSD持续提升求解器的准确性、鲁棒性和效率。例如,在GOC-500潮流问题上,ADSD将平均求解器误差降低近71倍,且改进进一步迁移到未见过的电网拓扑和运行工况。

该研究将数值求解器的改进从试错编辑转变为可复用的诊断-发现-实现流程,在多个领域实现显著性能提升,并展示出良好的泛化能力,对科学计算和AI智能体算法优化具有重要参考价值。

AI agents are becoming increasingly capable of generating scientific code, but generating code is not the same as improving the algorithms behind it. For numerical solvers, execution feedback can expose poor performance, but rarely reveals its underlying cause and how to address it. We introduce Auto-Diagnosis and Skill Discovery (ADSD), a framework that links numerical diagnosis to reusable solver self-improvement. ADSD follows a diagnosis-first paradigm that first explains why a solver performs poorly, then uses this diagnosis to guide the discovery of appropriate numerical methods. The resulting knowledge is packaged into reusable solver skills, turning solver improvement from trial-and-error editing into a structured process of diagnosis, discovery, and implementation. Across four challenging numerical domains--power flow equation, AC optimal power flow control, stiff ordinary differential equations, and heterogeneous diffusion PDEs--ADSD consistently improves solver accuracy, robustness, and efficiency. On GOC-500 power flow, for example, ADSD reduces mean solver error by nearly 71times, with improvements further transferring to unseen grid topologies and operating regimes.

阅读原文

参与讨论