简化复杂微分方程系统参数估计的智能体AI工作流
Using Local Large Language Models to Build Reproducible and Differentiable ODE Parameter Estimation Pipelines
AI总结:
本文提出一种智能体AI工作流,通过XML和Python代码骨架自动构建基于JAX的可微模型校准流水线,结合两阶段搜索实现复杂常微分方程系统的高效参数估计。
摘要:
机理常微分方程(ODE)模型的参数识别支撑着多个应用中的预测与控制,但仍是一个人工且劳动密集的过程:数据集充满噪声且不完整,模型可能具有刚性且复杂,而可微实现需要框架专业知识。本文提出了一种智能体AI工作流,可将轻量级、人类可读的规范转换为编译的、并行的且可微的模型校准流水线。用户提供问题的XML描述并填写Python代码骨架;智能体自动验证问题定义与代码之间的一致性,并自动纠正输入卡片中的病态问题。它将Python可调用对象转换为纯JAX函数,以实现高效的即时编译和并行化。随后,系统协调一个两阶段搜索,包括参数空间的全局探索和基于梯度的细化。最终成果是一个原生支持自动微分(AD)、可复现的工作流,在降低高级校准门槛的同时保留了专家控制。我们发布了带有文档化API和示例的开源实现,使得以最小工作量从问题陈述快速转向可解释的ODE模型成为可能。
英文摘要:
Parameter estimation for ordinary differential equation (ODE) models requires a sequence of interconnected tasks, including implementing model equations, mapping simulated quantities to experimental observations, constructing objective functions, configuring numerical solvers, and assessing fitted results. This chapter presents an agentic workflow that uses locally deployed large language models (LLMs) to assist with these tasks while retaining human oversight of scientific decisions. The workflow divides the estimation process into focused stages, each supplied with task-specific instructions and subject to validation before proceeding. Starting from a mathematical problem description and experimental data, it generates a structured configuration, a readable model implementation, and differentiable code for numerical optimization. Population-based global search is followed by gradient-based refinement using automatic differentiation through the ODE solution. Post-fit diagnostics examine residuals, optimization behavior, and local parameter sensitivity, while preserved intermediate artifacts allow users to inspect assumptions and revisit individual stages. A worked example demonstrates the complete procedure, and additional examples illustrate its application to diverse dynamical systems. The chapter provides a practical approach to constructing and revising ODE parameter-estimation pipelines in locally managed computing environments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。