从规则到工具:科学计算中LLM代理的可执行检查
研究论文 · 2026/10/02
科学编程智能体以书面形式接收方程、边界条件和输出要求,然后必须评估它们修改的程序。Rules to Tools (R2T) 提供了针对公共科学需求的预置可执行检查。匹配的 SciCode 修复组共享书面检查、起始程序、模型和预算;工具组接收可调用的实现。在两个任务ID队列中,完整修复在文本条件下为26/30,在预置检查下为29/30。三个任务ID偏向工具,一个偏向文本,十一个持平。八ID队列得分为13/16对15/16,任务聚类自助法95%区间为[-12.5, 43.75]个百分点。较大的共享定义SciCode队列每组持平于13/24。五个开发暴露任务使用替代起始程序得分为3/10对7/10。工具组偏向任务17、77和11;初始检查标记任务17,并报告任务77和11无违规。任务37偏向文本,且无初始报告的违规。一个全新的从源到Python的臂也达到15/16,与专用命令的聚合结果匹配。在匹配的PDE比较中,详细文本得分为23/24,检查得分为24/24,检查的报告模型输出低31.2%。智能体侧输出节省因队列而异,而公共CPU使用在两个任务ID队列中均上升。这些结果测量了使用预置检查时任务相关的修复结果和智能体侧成本。
该研究通过对照实验量化了可执行检查对LLM智能体在科学计算修复任务中的影响,揭示了任务依赖性的收益与成本,为智能体工具设计提供了实证依据。
Scientific coding agents receive equations, boundary conditions, and output requirements in writing, then must assess the programs they revise. Rules to Tools (R2T) supplies prepared executable checks of public scientific requirements. Matched SciCode repair groups share written checks, starting programs, model, and budgets; the tool group receives a callable implementation. Across two task-ID cohorts, complete repair is 26/30 with text and 29/30 with the prepared checks. Three task IDs favor tools, one favors text, and eleven tie. The eight-ID cohort scores 13/16 versus 15/16, with a task-cluster bootstrap 95% interval of [-12.5, 43.75] percentage points for the difference. The larger shared-definition SciCode cohort ties at 13/24 per group. Five development-exposed tasks with alternate starting programs score 3/10 versus 7/10. The tool group favors tasks 17, 77, and 11; initial checks flag task 17 and report no violation for tasks 77 and 11. Task 37 favors text and has no initial reported violation. A fresh source-through-Python arm also reaches 15/16, matching the dedicated command's aggregate. In a matched PDE comparison, detailed text scores 23/24 and checks score 24/24, with 31.2% lower reported model output for checks. Agent-side output savings vary by cohort, while public CPU use rises in both task-ID cohorts. These results measure task-dependent repair outcomes and agent-side costs with prepared checks.