用相对判断提升科学编程任务的解题效率
SciNav: A General Agent Framework for Scientific Coding Tasks
- 通过成对比较筛选优质解题路径,动态优化搜索空间
- 在多个基准上超越直接提示和现有智能体表现
- 适合需要高精度代码生成的科研自动化场景
基于大语言模型的自主科学智能体正被用于生成假设、设计实验和撰写报告。然而,以往工作多聚焦于开放性科学问题,其输出主观难评。相比之下,科学编程基准提供可执行输出,便于客观评估。现有方法仍依赖工程化流水线,亟需结构化、端到端的科学编程智能体框架。为此,本文聚焦科学编程任务,提出面向严格评估的智能体框架 SciNav(Scientific Navigator),支持在有限搜索预算下更高效地探索解法。受研究表明,相对判断比绝对评分更能揭示细微质量差异的启发,该框架在树搜索中引入成对相对判断,用于选择前K条有潜力的解题分支,剪枝低效分支,并根据相对比较逐步缩小候选解范围。我们在两个基准上验证了该智能体在不同任务类型、基础模型和难度下的有效性。实验表明,SciNav显著优于直接提示、OpenHands 和 Self-Debug 等先前智能体,也超过随机选择和基于绝对评分的LLM方法。结果证实了该设计的有效性,凸显了相对判断引导的Top-K搜索在高质量科学编程中的优势,标志着向实用化科学智能体迈进的关键一步。
原文摘要 · Abstract (English)
Autonomous science agents built on large language models (LLMs) are increasingly used to generate hypotheses, design experiments, and produce reports. However, prior work mainly targets open-ended scientific problems with subjective outputs that are difficult to evaluate. Scientific coding benchmarks, by contrast, provide executable outputs for objective assessment. Existing approaches remain engineering-driven pipelines, revealing the need for structured, end-to-end science agent frameworks for scientific coding tasks. We address this gap by focusing on scientific coding tasks, where evaluation can be made rigorously, and introducing an agent framework SciNav (Scientific Navigator) that enables more effective solution exploration. Our framework is designed to operate under constrained search budgets, moving beyond reliance on pre-defined success metrics and prolonged search cycles. Inspired by findings that comparative judgments often reveal finer-grained quality differences and therefore provide greater discriminative power than absolute scoring, our framework leverages pairwise relative judgments within a tree search process to select top-K promising solution branches, prune low-potential ones, and progressively narrow down the solution candidates on the selected branches guided by relative comparisons. We demonstrate our agent's effectiveness across different types of tasks on two benchmarks. Experiments show that SciNav significantly outperforms direct prompting and prior agents like OpenHands and Self-Debug across different base models, task types, and difficulty levels, and exceeds different frontier comparators such as random selection and LLM absolute scoring. These results confirm the strength of our agent design and highlight the effectiveness of relative judgment-guided top-K search for high-quality scientific coding, marking a step toward more practical science agents.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。