SciNav: A General Agent Framework for Scientific Coding Tasks
Organizations: The Ohio State University
Abstract
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.
Figures & tables
| Science Agents | Scope | Multi-Plan? | Retrieval? | Self-Improve Selection | Artifact Evaluated | Automatic Evaluation |
|---|---|---|---|---|---|---|
| ResearchAgent ( Baek et al., 2024 ) | Full-cycle, open-ended | N | Y | NeurIPS review | Idea + Exp. | NeurIPS review |
| AgentLab ( Schmidgall et al., 2025 ) | Full-cycle, open-ended | N | Y | LLM absolute score | Exp. + Paper quality | NeurIPS review |
| CodeScientist ( Jansen et al., 2025 ) | Full-cycle, open-ended | N | N | - | Paper + Code | Accept/Reject Hyp. |
| AI Scientist-V2 ( Yamada et al., 2025 ) | Full-cycle, open-ended | Y | N | Task-defined metric | Paper | NeurIPS review |
| AlphaEvolve ( Novikov et al., 2025 ) | Full-cycle, open-ended | N | N | Task-defined metric | Code Exec. | Task-specific |
| SciMaster ( Chai et al., 2025 ) | QA with tool use | - | Y | - | Text answer | Accuracy |
| Base Model | Agents | SR | VER | Cost |
|---|---|---|---|---|
| GPT-4o (2024-05-13) | Direct Prompting | 7.50 | 42.2 | 0.011 |
| OpenHands | 13.1 | 62.8 | 1.093 | |
| Self-Debug | 14.7 | 71.2 | 0.057 | |
| SciNav (Ours) | 16.1 | 66.0 | 0.512 | |
| GPT-4o (2024-11-20) | Self-Debug | 15.0 | 67.0 | 0.030 |
| SciNav (Ours) | 18.6 | 69.9 | 0.342 |
| Models | Frontier Comparator | SR | VER |
|---|---|---|---|
| GPT-4o (2024-11-20) | Random Selection | 15.2 | 64.7 |
| LLM-Absolute | 16.2 | 69.1 | |
| Relative Judgments | 18.6 | 69.9 | |
| GPT-4o (2024-11-20) | Rubric-Absolute (w/ GT) | 21.1 | 74.5 |
| Num of Init. | Use Self-Improve? | Avg # of Successful | Avg # of | Success Rate |
|---|---|---|---|---|
| Solutions | Init. Solutions | Successful Nodes | ||
| 1 | No | 0.24 | 0.40 | 40.5 |
| 2 | No | 0.40 | 0.57 | 40.5 |
| 5 | No | 0.98 | 1.14 | 45.2 |
| 5 | Yes | 1.17 | 2.69 | 57.1 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Base Model | Agents | SR | VER | Cost |
|---|---|---|---|---|
| GPT-4o (2024-05-13) | Direct Prompting | 7.50 (0.5) | 42.2 (1.6) | 0.011 (0.000) |
| OpenHands | 13.1 (2.6) | 62.8 (2.9) | 1.093 (0.071) | |
| Self-Debug | 14.7 (3.2) | 71.2 (1.2) | 0.057 (0.001) | |
| SciNav (Ours) | 16.1 (1.2) | 66.0 (3.5) | 0.512 (0.009) | |
| GPT-4o (2024-11-20) | Self-Debug | 15.0 (4.8) | 67.0 (7.4) | 0.030 (0.010) |
| SciNav (Ours) | 18.6 (3.3) | 69.9 (0.6) | 0.342 (0.008) |
| Models | SR | VER | |
|---|---|---|---|
| Solution Generation/Refinement | Judge/Verify | ||
| GPT-4o | GPT-4o | 18.6 | 69.9 |
| mixture of GPT-4o and Claude-3.7 | GPT-4o | 19.6 | 63.7 |
| Claude-3.7 | GPT-4o | 18.6 | 72.5 |
Scientific Code Generation
Scientific code generation develops systems that turn scientific questions, papers, and workflows into executable, scientifically valid programs.
See all 52 papers