Manuscript Offprint
arXiv:2610.33746ProtAgent: Post-Training Compact Protein Tool Agents with Interaction-Level Credit Assignment
Abstract
Protein annotation agents must choose suitable bioinformatics tools, interpret their outputs, and use the resulting evidence in the final answer. Most existing systems rely on frontier-scale models. We ask whether a compact model can instead learn this behavior through post-training with real tool interaction. We present ProtAgent, a two-stage pipeline that uses supervised fine-tuning (SFT) to learn the tool interface and standard on-policy REINFORCE to improve the interaction policy. Intermediate tool calls receive action rewards, and the final response receives a terminal answer reward. Step-level returns assign these rewards to the responses that produced them and to preceding actions. The episode-level baseline instead assigns one episode return to every action. On a fixed closed-loop protocol with real bioinformatics tools, ProtAgent-8B achieves 61.00% success under the annotation-coverage metric, compared with 41.60% for DeepSeek-V3.2-Thinking 671B and 60.80% for the strongest evaluated frontier system. In the three-seed comparison, mean success is 42.70% with episode-level returns and 61.40% with step-level returns under identity return normalization; the corresponding group-relative results are 36.50% and 58.20%. The metric measures recovery of reference annotations under this protocol; it does not by itself establish biological correctness or complete evidence grounding.
1 Introduction
Protein function annotation is an evidence-integration problem rather than a direct reading of sequence. Community assessments such as CAFA show that automated annotation remains challenging and benefits from combining heterogeneous evidence (Radivojac et al., 2013). Sequence-similarity search connects a query to characterized homologs (Steinegger and Söding, 2017); profile models and integrative resources identify families, domains, and functional sites (Mistry et al., 2021; Paysan-Lafosse et al., 2023); specialized predictors expose signal peptides and disordered regions (Teufel et al., 2022; Erdős et al., 2021); and curated databases provide reviewed records and controlled ontology terms (The UniProt Consortium, 2025; Ashburner et al., 2000; Aspromonte et al., 2024). A tool-using agent must therefore decide which evidence is needed, invoke suitable tools, interpret heterogeneous observations, and stop with an answer that satisfies the question. We evaluate this workflow through protein question answering. Each question specifies an annotation target, and the final answer is scored against the corresponding reference annotation.
The PFUA system shows that access to bioinformatics tools can improve protein function analysis with large language models (Fan et al., 2026). Its strongest systems use online frontier models, while its smaller post-trained model plateaued when trained only with a final-answer overlap reward. This leaves a different question open: can a compact model learn how to gather and use tool evidence when it receives feedback during the interaction? Supervised examples can teach tool syntax and basic routing, but they do not directly optimize which evidence to collect or when to stop. A single terminal reward also gives the same credit to useful, redundant, and malformed calls. We therefore study whether feedback at individual interaction steps improves annotation recovery.
ProtAgent has two post-training stages. Supervised fine-tuning (SFT) on validated tool trajectories teaches tool-call syntax, task-to-tool routing, and answer format. Reinforcement learning (RL) then lets the model interact on-policy with the same tools. We use standard critic-free REINFORCE; the main design choice is where reward is assigned. Intermediate calls receive local feedback, the final answer receives a terminal reward, and Monte
Carlo returns carry these signals back through the same trajectory. A completed-tool guard prevents the model from earning format reward without executing a tool. We call each assistant response boundary—a tool call or the final answer—an interaction step, and use interaction-level and step-level for this same return granularity.
We train separate models for two evaluation protocols. They share the Qwen3-8B base model (Yang et al., 2025), but use different training data, rewards, checkpoints, prompts, and test sets. The closed-loop protocol is our main controlled experiment and covers five protein annotation tasks. The second protocol follows PFUA for comparison with prior work. We report the two sets of results separately. On the 1,000-example closed-loop test, ProtAgent-8B reaches 61.00% success, compared with 41.60% for DeepSeek-V3.2-Thinking 671B and 60.80% for the strongest evaluated frontier system. Thus, under this protocol, an 8B local model is competitive with the evaluated frontier-scale systems while remaining deployable without a hosted frontier model. These results are specific to the stated scorer and tool setup.
Contributions. We make three contributions:
-
We build a post-training pipeline for a compact protein agent that learns from real bioinformatics tool interactions, with SFT for the interface and RL for tool use and stopping.
-
We compare step-level and episode-level returns in a three-seed study that also varies return normalization, and find a large, consistent advantage for step-level returns under both normalization choices.
-
We show that a local 8B model reaches 61.00% success under a fixed closed-loop protocol, 19.40 points above the evaluated 671B baseline and competitive with the strongest evaluated frontier system. We analyze its gains and errors and report a separate PFUA-compatible evaluation.
Rewards and credit assignment for tool-using agents. ReAct established the alternating reasoning–action pattern used by many tool-augmented agents (Yao et al., 2023). One line of work assigns local rewards to tool selection, argument use, or plan completion (Qian et al., 2025; Li et al., 2025b). A second line changes how credit is distributed across interaction boundaries. MT-GRPO, GiGPO, GTPO, and MatchTIR define turn-or state-level advantages through group comparisons or trace supervision (Wei et al., 2025; Feng et al., 2025b; Ding et al., 2026; Qu et al., 2026). SLEA-RL combines step-level credit with experience retrieval (Wang and Jiang, 2026); TRACE derives turn rewards from reference-model state values (Tao et al., 2026); and CrEST combines verifier-anchored turn advantages with self-teacher token weighting (Wang et al., 2026). Learned critics and process reward models provide another source of dense supervision for search and scientific reasoning (Zhang et al., 2026; Zhao et al., 2026). Other systems learn tool use mainly from outcome feedback in code, search, or general tool environments (Feng et al., 2025a; Jin et al., 2025; Li et al., 2025a; Zeng et al., 2025). More recent methods derive step credit from answer-backtracked clues, redistribute dynamic-rubric judgments to the responsible steps, adaptively mix step- and episode-level advantages using policy uncertainty, or estimate hindsight success potentials from pooled transition graphs (Lu

Figure 1: ProtAgent overview. SFT learns the tool-use interface from validated trajectories; RL then improves the closed-loop interaction policy. The three warm-restart stages are part of the RL schedule, not a third post-training phase. During RL, the policy samples tool-use trajectories with at most four interaction steps. Batched Step-Level REINFORCE assigns at each response boundary, whereas the episode-level baseline assigns to all actions. Intermediate tool calls receive action rewards and the final answer receives the terminal answer reward; Appendix A gives the full reward definition.
et al., 2026; Gandhi et al., 2026; Liang et al., 2026; Zhu et al., 2026).
ProtAgent instead uses fixed environment rewards and standard Monte Carlo returns at assistant response boundaries. Our contribution is a controlled test of this assignment in a protein-tool environment, not a new general-purpose credit-assignment estimator.
Evidence faithfulness in retrieval-augmented reasoning. VERITAS introduces turn-level faithfulness rewards for agentic search, including whether an answer is entailed by retrieved information (Xu et al., 2026), and AutoRefine combines retrieval-specific rewards with iterative evidence refinement (Shi et al., 2025). Our optional trajectory-fidelity reward applies that principle by comparing final answers with observations from the same trajectory.
3 Protein Tool-Use Setting and Protocols
Task and Interaction Environment
Each example contains a protein sequence x and a natural-language question q that specifies an annotation target, such as an enzyme class, domain, signal peptide, disordered region, or GO/InterPro record. The question is therefore an evaluation interface for protein annotation, not an unrestricted biomedical question-answering task. At interaction step t, the policy emits an action : either a structured tool call or a terminal answer block. For a tool call, the environment executes the requested bioinformatics program or database lookup and returns a structured observation . The interaction history is , and the episode ends when the policy emits answer y or exhausts the horizon H.
An actual-tool trajectory records outputs returned by the configured executables and databases, not tool-like text generated by a model or a placeholder. Let denote the observations actually obtained in trajectory . The policy must decide what evidence to collect, when to stop, and how to convert into a task-compliant answer. We refer to the last step as evidence conversion. The main metric measures recovery of the reference annotation. We report observation-support measures separately as behavioral diagnostics.
Two Independent Evaluation Protocols
We use two protocols and train a separate model for each. The models share a Qwen3-8B-Instruct base, but not SFT data, RL rewards, checkpoints, prompts, or evaluation sets. The closed-loop protocol is the main experiment. It uses a balanced 100-example development set (OOD-100) and a disjoint, balanced 1,000-example test set (OOD-1000), each covering signal peptide, disorder, domain/motif, EC, and GO/InterPro. We retain the benchmark name OOD (out of distribution) for these held-out sets; the separation from training data is defined below. The name does not imply that a protein or its annotation is absent from the tools' databases. The PFUA-compatible protocol uses the Mol-Instructions task categories, prompt, interaction budget, and ROUGE recall scoring used in prior work (Fan et al., 2026; Fang et al., 2024). We compare scores only within the same protocol.
Data separation and versions. OOD-100 and OOD-1000 share no IDs or sequences. Checkpoints, rewards, and methods are developed with OOD-100; OOD-1000 is reserved for final reporting. References retain source Mol-Instructions annotations or deterministic SignalP 5.0 renderings (Almagro Armenteros et al., 2019) and DisProt annotations. Paper-reported signal-peptide runs execute SignalP 6.0 (Teufel et al., 2022), so the label generator and runtime predictor use different versions. This protocol difference may affect the signal-peptide results, but we have not run a controlled cross-version test. An MMseqs2 audit against the 780-protein closed-loop training pool finds no detectable homolog at the prespecified 30% identity / 80% coverage threshold; over the 2,000-example source superset, 548 sequences fall below that threshold and 1,452 have no detectable hit. This audit addresses training overlap, not whether a test protein or homolog is retrievable from a runtime database.
Interaction budgets and baselines. The PFUA-compatible protocol permits 12 rounds and 2,048 tokens per response. Closed-loop evaluation permits interaction steps, 1,024 tokens per response, and 4,096 tokens total. Closed-loop systems use the same concise protein-function prompt and tool interfaces. We compare the base and SFT models, the full model with and without tools, four return/normalization variants, and several frontier API models. The frontier models provide a performance comparison; the training analysis relies on the matched 8B variants. The local Qwen3 evaluations use temperature 1.0, top-p 1.0, top-k 50, and seed 42; the API rows in the closed-loop comparison use temperature 0. The shared protocol therefore fixes the benchmark, prompt, tool surface, interaction budget, and scorer, but does not impose one decoding configuration across local and hosted systems.
Metrics and Verification
The primary outcome is annotation-coverage success over all episodes: computes reference-token recall over extracted <answer> content, and an episode succeeds when . Unanswered and unparsable episodes fail and remain in the denominator. The scorer follows PFUA's recall construction (Fan et al., 2026) and is applied identically to all systems. At thresholds 0.3–0.7, ProtAgent retains its aggregate advantage over DeepSeek-V3.2-Thinking, with paired confidence intervals excluding zero. This metric measures overlap with a reference annotation. It does not directly measure biological correctness, entailment by tool observations, or calibration.
Answer rate, same-rollout grounded-citation rate, structured-identifier density, and tool-routing directness are complementary behavioral diagnostics. A high value on any one diagnostic does not establish correctness or overall grounding. Core comparisons use paired bootstrap intervals or variation across training seeds as appropriate.
At evaluation time, model parameters are frozen, each benchmark item produces one trajectory, and no reward is applied. The evaluation code supports four checks: tool availability (required native tools and data are present, with no silent heuristic fallback), complete coverage (one unique rollout per item), all-sample scoring (no failed episode is dropped), and traceability (the manifest records prompt, model, tool/database versions, answer, decoding seed, and code revision).
4 ProtAgent Post-Training
Data Construction and Supervised Fine-Tuning
For the closed-loop model, all OOD-100 and OOD-1000 IDs are excluded from SFT and RL. Demonstrations combine curated action/evidence examples with multi-turn rollouts produced by DeepSeek-V3.2 using the same bioinformatics tools as the training environment. Thus, the supervised trajectories contain real tool outputs rather than free-form descriptions. Each trajectory must have valid tool-call syntax, a substantive answer, and task-critical tool coverage. The active SFT corpus contains 987 training and 64 validation trajectories mixing single action examples, evidence-to-answer examples, and full multi-turn traces (Appendix D). During SFT, system and user messages and tool observations are context; only assistant actions and answers are prediction targets. SFT teaches the interaction interface—tool-call syntax, task-to-tool routing, and answer format—but the model must still collect evidence at runtime.
For the PFUA-compatible model (Sec. 5), a separate corpus is constructed from reviewed Swiss-Prot records (The UniProt Consortium, 2025) covering the four PFUA task categories. All Mol-Instructions-derived records, test accessions, and exact test sequences are excluded. DeepSeek-V3.2-Thinking produces validated tool-use trajectories on 3,900 training proteins for this model. Because it also appears as a closed-loop baseline (Sec. 5), we include three additional frontier systems that provide no training data. SFT teaches the interface, while RL trains evidence collection, stopping, and answer synthesis on-policy (Appendix B). The two protocols use separate corpora, rewards, and checkpoints.
On-Policy RL in the Protein Environment
RL as a whole starts from the SFT model and trains it to gather enough evidence, stop at the right time, and write an answer from the observed results. The paper-facing checkpoint continues from an existing RL-warm checkpoint through three 50-update warm-restart stages. For each training problem, the policy samples a group of four trajectories that alternate between a tool call and the resulting structured observation, following the ReAct interaction pattern (Yao et al., 2023). The main recipe processes eight prompt instances per update, uses at most four interaction steps per episode, and uses a constant learning rate within each stage. The environment rewards useful actions, answer quality, efficient stopping, and optional agreement with tool outputs. A completed-tool guard prevents format-only rewards when no tool has run. Training and evaluation use the configured bioinformatics programs and databases; runs with placeholder outputs are excluded.
The closed-loop RL phase uses three warm-restart stages. These are parts of the RL schedule, not a third post-training phase. Their learning rates are , , and , respectively. Each stage loads the previous checkpoint weights but starts with a fresh optimizer and a new reference anchor. The ablation arms use the same schedule and starting checkpoint, training questions, sampling schedule, seeds, environment, reward, budget, and evaluation set. Each arm generates its own trajectories because training is on-policy. The arms differ in return granularity and return normalization.
Composite Reward
The terminal answer reward is a weighted sum of training-time annotation coverage , required-tool coverage , bounded reasoning markers , efficiency , and structured-answer compatibility , scaled by a length factor :
where indicates a complete <answer>...</answer> block, m is the number of completed tools, J is fixed character-Jaccard shaping, and F collects the optional trajectory-local fidelity terms, which are zero in the reward-family control. The term is the completed-tool guard: it algebraically removes the schema-only increments that a correctly tagged answer would otherwise earn when no tool has completed. Intermediate tool calls instead receive action rewards: +0.25 for the first successful use of a new tool, -0.30 for a repeated action, -0.10 for an irrelevant tool, -0.20 for a malformed call, and -1.50 for truncation. Training reward is used only for optimization diagnostics; all reported comparisons evaluate frozen model parameters without applying reward at inference time. Appendix A gives the fidelity terms, the full coefficient table, and a reward-family sensitivity analysis. The coefficient table documents the implemented objective; it is not itself an ablation.
Batched Step-Level REINFORCE
We use standard critic-free, on-policy REINFORCE (Williams, 1992). For each prompt, Batched Step-Level REINFORCE collects K = 4 trajectories and applies Monte Carlo returns (Sutton and Barto, 2018) at each interaction step, rather than assigning one terminal score to every action. Let be the reward at step t of trajectory k. It is the action reward for an intermediate tool call and the composite answer reward for the final response. We compute returns backward:
with in the main configuration. The main recipe uses identity return normalization. All comparison arms then whiten and clip the resulting advantages before one policy-gradient update. Each response receives its step return, and later rewards propagate only to earlier actions in the same trajectory. With a fixed reference policy, the actor objective is
where u indexes tokens within the response at step t; Appendix D lists the remaining coefficients. The matched episode-level baseline keeps the same setup but assigns one trajectory-level return to all actions in each independently sampled rollout. Our step return differs from the state-level group term in GiGPO (Feng et al., 2025b) and from the group-relative turn rewards in MT-GRPO (Wei et al., 2025): it follows rewards within one trajectory. We vary return granularity and return normalization separately (Table 3). We use Step-Level GRPO for step-level Monte Carlo returns standardized by the within-prompt group mean and standard deviation. This label changes return normalization only: the loss remains the same vanilla policy-gradient objective, not the framework's episode-level adv_estimator: grpo. Episode-GRPO applies the same group standardization to episode-level returns (Shao et al., 2024).
5 Experiments
Closed-Loop Tool-Use Evaluation
We first report the main closed-loop experiment. It uses a fixed local checkpoint, pinned tool versions, complete benchmark coverage, and five annotation tasks. This experiment tests tool selection, use of tool outputs, and stopping under the protocol in Sec. 3.
Compact versus frontier-scale agents
Table 1 reports the main closed-loop comparison.
Against DeepSeek-V3.2-Thinking, the paired aggregate difference is +19.40 percentage points (95% bootstrap CI [+15.90, +23.00]; 10,000 paired resamples). ProtAgent-8B scores higher than both evaluated DeepSeek-V4 variants and close to GPT-5.5 (61.00% vs. 60.80%); this small difference does not establish superiority or statistical equivalence. Three frontier systems in the table provide no training data. The gain over DeepSeek-V3.2-Thinking is concentrated in enzyme, domain, and GO/IPR; the baseline remains better on signal peptide. Overall, these results show that the compact local model is competitive with much larger hosted systems under the same closed-loop protocol, while revealing clear task-level differences.
Training-Stage and Tool Controls
Table 2 compares training stages and evaluates the full checkpoint with and without tool access, by OOD-1000 task category.
On the OOD-100 development set, a matched same-tools comparison changes only the checkpoint. SFT scores 15.00%, while the full model scores 57.00%, a paired difference of 42.00 points (95% CI [31.00, 53.00]). Both results come from the same validation round and are paired by sample. SFT and RL mainly improve the database-based tasks; removing the tools lowers performance on those tasks toward the base model.
Credit-Assignment Study
Experimental controls. OOD-1000 annotations are not used during training, and no reward is applied during evaluation. The credit-assignment arms share the same starting checkpoint, training questions, sampling schedule, seeds, environment, reward, budget, and evaluation set. Because training is on-policy, each arm samples its own trajectories. The arms differ only in return granularity and return normalization.
Answer completion. Answer rate is 98.50% for the trained 8B model and 99.60% for the tool-powered baseline. The higher success rate of the trained model therefore does not come from a higher answer rate.
Return granularity and return normalization
We compare step- and episode-level returns under both identity and within-prompt group return normalization. The environment, reward, prompt groups, and training budget are fixed.
In Table 3, step-level returns score +18.70 points above episode-level returns under identity return normalization and +21.70 under group-relative return normalization. These large gains
| Method | Enzyme | Domain | GO/IPR | Signal | Disorder | Aggregate |
|---|---|---|---|---|---|---|
| DeepSeek-V3.2-Thinking 671B | 1.00 | 25.50 | 1.50 | 99.00 | 81.00 | 41.60 |
| DeepSeek-V4-Flash | 7.00 | 29.00 | 42.50 | 99.00 | 94.50 | 54.40 |
| DeepSeek-V4-Pro | 14.50 | 30.00 | 27.00 | 98.50 | 92.00 | 52.40 |
| GPT-5.5 | 53.50 | 35.00 | 43.00 | 99.00 | 73.50 | 60.80 |
| ProtAgent-8B (closed-loop) | 58.00 | 35.00 | 54.50 | 73.50 | 84.00 | 61.00 |
Table 1: All-episode success (%) on the fixed OOD-1000 protocol (1,000 sequences; 200 per task category). Boldface marks the best value in each column. All systems use the same concise protein-function prompt and the same bioinformatics tools. Unanswered episodes count as failures. Each run uses a fixed decoding configuration. The rates describe the observed outputs on this test set and do not guarantee identical API outputs across repeated runs.
| Category | Base | SFT | Full | No tools |
|---|---|---|---|---|
| Enzyme | 3.00 | 23.50 | 58.00 | 11.50 |
| Domain | 0.50 | 17.00 | 35.00 | 1.50 |
| GO/IPR | 7.00 | 17.50 | 54.50 | 10.50 |
| Signal | 51.00 | 78.50 | 73.50 | 31.00 |
| Disorder | 9.00 | 64.50 | 84.00 | 73.00 |
| Aggregate | 14.10 | 40.20 | 61.00 | 25.50 |
Table 2: Per-category OOD-1000 success (%) for training-stage and tool-access controls. Full = SFT + step-level RL; No tools = the full checkpoint with tools ablated.

Figure 2: Training-reward trajectories grouped by return granularity (three-seed mean, ±1 standard-deviation band, light exponential smoothing). Solid lines denote REINFORCE and dashed lines denote GRPO. Reward is an optimization diagnostic rather than a cross-arm quality metric; Table 3 reports final-test success.
have the same direction across all three seeds, supporting interaction-level credit assignment as the main design choice in this training setup. At episode level, identity return normalization scores +6.20 points above group-relative return normalization, with the same ordering across seeds. The reward-family on/off runs in the supplement were not produced as one concurrent matched experiment. We report them as a sensitivity check and do not use them to estimate the effect of the optional fidelity reward. The step-level-return arms show
| Arm | Return norm. | Mean ± SD |
|---|---|---|
| Batched Step-Level REINFORCE | Identity | |
| Step-Level GRPO | Group-rel. | |
| Batched Episode-Level REINFORCE | Identity | |
| Episode-GRPO | Group-rel. |
Table 3: OOD-1000 all-episode success (%), mean ± sample SD over seeds 42/43/44. Arms share the same starting checkpoint, training questions, sampling schedule, seeds, environment, reward, budget, and evaluation set. Each arm produces its own on-policy trajectories. Appendix A gives per-seed values and the separate reward-family sensitivity analysis.
more stable training-reward trajectories, whereas the episode-level arms decline late in training, most clearly under Episode-GRPO. These curves describe training reward, not held-out answer quality.
Task and Failure Analysis
Most of the aggregate gain comes from database-based tasks. Signal-peptide prediction remains a weak point. Its labels were rendered with SignalP 5.0 (Almagro Armenteros et al., 2019), while the runtime tool uses SignalP 6.0 (Teufel et al., 2022). This version difference may matter, but we do not have a matched cross-version experiment. The aggregate grounded-citation rate is lower for ProtAgent (76.10% vs. 81.50%), mainly because of signal and disorder tasks. On database tasks, the rates are similar for enzyme (90.00% vs. 92.00%) and higher for ProtAgent on domain (93.00% vs. 79.00%) and GO/IPR (93.00% vs. 81.00%). Across these three database tasks, ProtAgent also produces more structured identifiers per answer (2.5 vs. 0.5) and chooses a relevant tool on the first call more often (98.50% vs. 2.00%). Both models reach a relevant tool by some point in almost every trajectory (99.50% vs. 100.00%). Routing and identifier
| System and provenance | R-1 | R-L |
|---|---|---|
| Qwen3-Max (PFUA-reported) | 64.33 | 46.16 |
| GPT-5.5 (evaluated by us) | 61.41 | 44.66 |
| Qwen3-8B base (evaluated by us) | 53.62 | 35.33 |
| Qwen3-8B SFT (evaluated by us) | 54.47 | 37.68 |
| ProtAgent-8B PFUA (evaluated by us) | 60.15 | 41.62 |
Table 4: Compact PFUA-compatible comparison: average ROUGE-1/ROUGE-L recall (%). The PFUA published row is prior-work context and is not ranked with our runs. Bold marks the best result from our evaluation. The PFUA-compatible ProtAgent uses a different dataset, reward, and checkpoint from the closed-loop model.
counts describe model behavior, not biological correctness.
Appendix B reports the full category and diagnostic panels and defines a failure taxonomy covering tool selection, tool failure, premature stopping, evidence omission, unsupported claims, and formatting or truncation. This taxonomy defines categories for error analysis; it is not a completed annotation study, and we report no category counts.
PFUA-Compatible External Evaluation
Finally, we evaluate the separately trained PFUA-compatible model on the Mol-Instructions protein-function benchmark (Fan et al., 2026; Fang et al., 2024). Table 4 shows the strongest tool-powered result published by PFUA, the strongest frontier result from our reproduction, and the Qwen3-8B training stages. Published results and our reproductions are labeled separately because they were run at different times and with different model endpoints. All rows marked “evaluated by us” use the same released PFUA subset, prompt, tool interfaces, interaction budget, output processing, and official scorer. Appendix Table C1 gives the full comparison, and Appendix C gives the reproduction details. The PFUA-compatible model is not the closed-loop checkpoint, so its 60.15/41.62 score is reported only for comparison with PFUA.
In our PFUA-compatible evaluation, the model improves from 53.62/35.33 for the prompted base and 54.47/37.68 after SFT to 60.15/41.62 after RL, exceeding five of six evaluated frontier APIs in the full panel. DeepSeek and Kimi reproduce within 0.7 and 0.3 average ROUGE-1 points, respectively. The current Qwen3-Max endpoint is 7.5 points below the published preview result, so comparisons within our evaluation use only the reproduced rows.
6 Conclusion
Under a fixed tool-use protocol, a post-trained local 8B model outperforms the evaluated DeepSeek-V3.2-Thinking 671B baseline and obtains a score close to the strongest evaluated frontier system on aggregate annotation-coverage success. The 19.40-point gain over the 671B baseline and the aggregate score show that compact local agents can be competitive with frontier-scale systems when they are post-trained in the target tool environment. In the three-seed comparison, step-level returns provide large, consistently directed gains over episode-level returns under both normalization methods. The full model scores higher than the base and SFT models, and its performance drops when tools are removed. On the database-based tasks, it also selects relevant tools earlier and produces more structured identifiers. In this training setup, interaction-level returns and environment-specific post-training improve a compact protein tool agent. The results do not establish biological correctness or stronger overall evidence grounding.
Limitations
Scope. Our conclusions are limited to protein annotation with the evaluated Qwen3-8B model, tools, benchmarks, and baselines. The frontier-model comparison uses one shared prompt, tool setup, interaction budget, scorer, and a fixed decoding configuration for each run. It does not isolate model architecture from other system-level differences, including decoding choices, and is not a general ranking of model architectures. The credit-assignment comparison is specific to the evaluated training setup, not a general comparison of RL algorithms.
Evidence quality and robustness. Computational tool evidence is not equivalent to experimental validation, and its reliability varies across tasks and protein families. Our homology audit checks train–test overlap at a fixed threshold, but it cannot rule out remote relationships or determine whether each test annotation is available in the runtime databases. The main scorer measures reference-annotation overlap, while the citation metric measures support within the observed trajectory. Neither substitutes for expert biological assessment. Without a deterministic tool-output renderer or an oracle-observation baseline, we cannot separate gains in evidence acquisition from gains in answer construction. SignalP 5.0 labels (Almagro Armenteros et al., 2019) and SignalP 6.0 runtime predictions (Teufel et al., 2022) also differ in version; without a matched test, we cannot attribute the signal-peptide deficit to this difference. Finally, the non-concurrent fidelity-reward comparison does not isolate its effect, and the contribution of each reward component remains untested.
Acknowledgments
Generative AI tools were used during manuscript revision to support language editing, organization, and literature search. The authors verified the resulting text, citations, technical claims, and reported results and take full responsibility for the submission.
References
Hadi Abdine et al. 2024. Prot2Text: Multimodal protein’s function generation with GNNs and transformers. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 10757–10765.
José Juan Almagro Armenteros, Konstantinos D. Tsirigos, Casper Kaae Sønderby, Thomas Nordahl Petersen, Ole Winther, Søren Brunak, Gunnar von Heijne, and Henrik Nielsen. 2019. SignalP 5.0 improves signal peptide predictions using deep neural networks. Nature Biotechnology, 37(4):420–423.
Michael Ashburner, Catherine A. Ball, Judith A. Blake, David Botstein, Heather Butler, J. Michael Cherry, Allan P. Davis, Kara Dolinski, Selina S. Dwight, Janan T. Eppig, et al. 2000. Gene ontology: Tool for the unification of biology. Nature Genetics, 25(1):25–29.
Maria Cristina Aspromonte, Maria Victoria Nugnes, Federica Quaglia, Adel Bouharoua, DisProt Consortium, Silvio C. E. Tosatto, and Damiano Piovesan. 2024. DisProt in 2024: Improving function annotation of intrinsically disordered proteins. Nucleic Acids Research, 52(D1):D434–D441.
Michael Bernhofer and Burkhard Rost. 2022. TMbed: Transmembrane proteins predicted through language model embeddings. BMC Bioinformatics, 23(1):326.
Yifeng Ding, Hung Le, Songyang Han, Kangrui Ruan, Zhenghui Jin, Varun Kumar, Zijian Wang, and Anoop Deoras. 2026. Empowering multi-turn tool-integrated agentic reasoning with group turn policy optimization. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 42409–42423. Association for Computational Linguistics.
Sean R. Eddy. 2011. Accelerated profile HMM searches. PLoS Computational Biology, 7(10):e1002195.
Gábor Erdős, Mátyás Pajkos, and Zsuzsanna Dosztányi. 2021. IUPred3: Prediction of protein disorder enhanced with unambiguous experimental annotation and visualization of evolutionary conservation. Nucleic Acids Research, 49(W1):W297–W303.
Dionizije Fa, Marko Čuljak, Bruno Pandža, and Mateo Čupić. 2026. BioAgent bench: An AI agent evaluation suite for bioinformatics. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 28566–28583. PMLR.
Chuanliu Fan, Zicheng Ma, Huanran Meng, Aijia Zhang, Wenjie Du, Jun Zhang, Ziqiang Cao, and Guohong Fu. 2026. Interleaved tool-call reasoning for protein function understanding. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12977–12995, San Diego, California, United States. Association for Computational Linguistics.
Yin Fang et al. 2024. Mol-Instructions: A large-scale biomolecular instruction dataset for large language models. In Proceedings of the International Conference on Learning Representations (ICLR).
Jiazhan Feng et al. 2025a. ReTool: Reinforcement learning for strategic tool use in LLMs. Preprint, arXiv:2504.11536.
Lang Feng, Zhenghai Xue, Tingcong Liu, and Bo An. 2025b. Group-in-group policy optimization for LLM agent training. In Advances in Neural Information Processing Systems (NeurIPS).
Shubham Gandhi, Saurabh Goyal, Kiran Kate, and Yara Rizk. 2026. DRACO: Fine-grained credit assignment with dynamic rubrics for long-horizon agent training. Preprint, arXiv:2609.04094.
Alireza Ghafarollahi and Markus J. Buehler. 2024. ProtAgents: Protein discovery via large language model multi-agent collaborations combining physics and machine learning. Digital Discovery, 3(7):1389–1409.
Daya Guo, Dejian Yang, Haowei Zhang, et al. 2025. DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645:633–638.
Huazhen Huang, Xianguo Shi, Hongyang Lei, Fan Hu, and Yunpeng Cai. 2025. ProtChat: An AI multi-agent for automated protein analysis leveraging GPT-4 and protein language model. Journal of Chemical Information and Modeling, 65(1):62–70.
Bowen Jin et al. 2025. Search-R1: Training LLMs to reason and leverage search engines with reinforcement learning. Preprint, arXiv:2503.09516.
Kimi Team. 2025. Kimi K2 thinking. https://moonshotai.github.io/Kimi-K2/thinking.html. Accessed: 2026-07-28.
Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. 2020. Retrieval-augmented generation for knowledge-intensive NLP tasks. In Advances in Neural Information Processing Systems 33 (NeurIPS 2020), pages 9459–9474.
Xuefeng Li et al. 2025a. ToRL: Scaling tool-integrated RL. Preprint, arXiv:2503.23383.
Zhiwei Li, Yong Hu, and Wenqing Wang. 2025b. Encouraging good processes without the need for good answers: Reinforcement learning for LLM agent planning. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: Industry Track, pages 1654–1666, Suzhou, China. Association for Computational Linguistics.
Taoran Liang, Yang Liu, Shang Luo, Yingguang Yang, Rongrong Zhang, Yingzong Min, Yulin Huang, Jianshen Zhang, Yongzhi Qi, Kefu Xu, Congjing Ran, and Bin Chong. 2026. Granularity-adaptive credit assignment for long-horizon LLM agent reinforcement learning. Preprint, arXiv:2609.12424.
Chin-Yew Lin. 2004. ROUGE: A package for automatic evaluation of summaries. In Text Summarization Branches Out, pages 74–81.
Zhiyuan Liu et al. 2024. ProtT3: Protein-to-text generation for text-based protein understanding. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (ACL), pages 5949–5966.
Yijun Lu, Rui Ye, Jiajun Wang, Yuwen Du, Tian Jin, Songhua Liu, and Siheng Chen. 2026. AB-Seeker: Training long-horizon search agents via answer-backtracked credit assignment. Preprint, arXiv:2608.05102.
Yizhen Luo et al. 2023. BioMedGPT: Open multimodal generative pre-trained transformer for BioMedicine. Preprint, arXiv:2308.09442.
Jaina Mistry, Sara Chuguransky, Lowri Williams, Matloob Qureshi, Gustavo A. Salazar, Erik L. L. Sonnhammer, Silvio C. E. Tosatto, Lisanna Paladin, Shriya Raj, Lorna J. Richardson, et al. 2021. Pfam: The protein families database in 2021. Nucleic Acids Research, 49(D1):D412–D419.
Typhaine Paysan-Lafosse, Matthias Blum, Sara Chuguransky, Tiago Grego, Beatriz Lázaro Pinto, Gustavo A. Salazar, et al. 2023. InterPro in 2022. Nucleic Acids Research, 51(D1):D418–D427.
Cheng Qian, Emre Can Acikgoz, Qi He, Hongru Wang, Xiusi Chen, Dilek Hakkani-Tur, Gokhan Tur, and Heng Ji. 2025. ToolRL: Reward is all tool learning needs. In Advances in Neural Information Processing Systems (NeurIPS).
Changle Qu, Sunhao Dai, Hengyi Cai, Jun Xu, Shuaiqiang Wang, and Dawei Yin. 2026. MatchTIR: Fine-grained supervision for tool-integrated reasoning via bipartite matching. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 11953–11968. Association for Computational Linguistics.
Predrag Radivojac, Wyatt T. Clark, Tal Ronnen Oron, Alexandra M. Schnoes, Tobias Wittkop, Artem Sokolov, Kiley Graim, Christopher Funk, Karin Verspoor, Asa Ben-Hur, et al. 2013. A large-scale evaluation of computational protein function prediction. Nature Methods, 10(3):221–227.
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. 2017. Proximal policy optimization algorithms. Preprint, arXiv:1707.06347.
Zhihong Shao et al. 2024. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. Preprint, arXiv:2402.03300.
Yaorui Shi, Sihang Li, Chang Wu, et al. 2025. Search and refine during think: Facilitating knowledge refinement for improved retrieval-augmented reasoning. In Advances in Neural Information Processing Systems (NeurIPS).
Martin Steinegger and Johannes Söding. 2017. MM-seqs2 enables sensitive protein sequence searching for the analysis of massive data sets. Nature Biotechnology, 35(11):1026–1028.
Richard S. Sutton and Andrew G. Barto. 2018. Reinforcement Learning: An Introduction, 2nd edition. MIT Press, Cambridge, MA.
Leitian Tao, Baolin Peng, Wenlin Yao, Tao Ge, Hao Cheng, Mike Hang Wang, Jianfeng Gao, and Sharon Li. 2026. TRACE: Turn-level reward assignment via credit estimation for long-horizon agents. Preprint, arXiv:2607.13988.
Felix Teufel, José Juan Almagro Armenteros, Alexander Rosenberg Johansen, Magnús Halldór Gislason, Silas Irby Pihl, Konstantinos D. Tsirigos, Ole Winther, Søren Brunak, Gunnar von Heijne, and Henrik Nielsen. 2022. SignalP 6.0 predicts all five types of signal peptides using protein language models. Nature Biotechnology, 40(7):1023–1025.
The UniProt Consortium. 2025. UniProt: The universal protein knowledgebase in 2025. Nucleic Acids Research, 53(D1):D609–D617.
Prince Zizhuang Wang and Shuli Jiang. 2026. SLEA-RL: Step-level experience augmented reinforcement learning for multi-turn agentic training. Preprint, arXiv:2603.18079.
Zechuan Wang, Siyuan Lu, Hongxuan Zhang, Linjian Mo, Chenyi Zhuang, and Leilei Gan. 2026. Teach the magnitude, not the direction: Verifier-anchored credit assignment for multi-turn multi-step LLM agents. Preprint, arXiv:2608.13179.
Quan Wei, Siliang Zeng, Chenliang Li, Zhongruo Wang, William Brown, Oana Frunza, Wei Deng, Anderson Schneider, Yuriy Nevmyvaka, Yang Katie Zhao, Alfredo Garcia, and Mingyi Hong. 2025. Reinforcing multi-turn reasoning in LLM agents via fine-grained reward structure and credit assignment. Preprint, arXiv:2505.11821.
Ronald J. Williams. 1992. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8(3–4):229–256.
Zhichao Xu, Zongyu Wu, Yun Zhou, Aosong Feng, et al. 2026. Beyond correctness: Rewarding faithful reasoning in retrieval-augmented generation. Transactions on Machine Learning Research.
An Yang et al. 2024. Qwen2.5 technical report. Preprint, arXiv:2412.15115.
An Yang et al. 2025. Qwen3 technical report. Preprint, arXiv:2505.09388.
Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. 2023. ReAct: Synergizing reasoning and acting in language models. In Proceedings of the International Conference on Learning Representations (ICLR).
Tianhao Yu, Haiyang Cui, Jianan Canal Li, Yunan Luo, Guangde Jiang, and Huimin Zhao. 2023. Enzyme function prediction using contrastive learning. Science, 379(6639):1358–1363.
Y. Zeng et al. 2025. Tool Zero: Training tool-augmented LLMs via pure RL from scratch. In Findings of the Association for Computational Linguistics: EMNLP 2025, pages 9135–9147.
Xiaoyu Zhang. 2026. Benchmarking agentic large language models for complex protein-set functional annotation. bioRxiv.
Yaocheng Zhang, Haohuan Huang, Zijun Song, Zijie Zhao, Qichao Zhang, Yuanheng Zhu, and Dongbin Zhao. 2026. CriticSearch: Fine-grained credit assignment for search agents via a retrospective critic. In Findings of the Association for Computational Linguistics: ACL 2026, pages 12272–12290, San Diego, California, United States. Association for Computational Linguistics.
Xiangyu Zhao, Henry Hengyuan Zhao, Yiheng Wang, et al. 2026. SCI-PRM: A tool aware process reward model for scientific reasoning verification. Preprint, arXiv:2606.04579.
Fernando Zhapa-Camacho, Olga Mashkova, Robert Hoehndorf, and Maxat Kulmanov. 2026. LLM agent based protein function prediction. In Proceedings of the Pacific Symposium on Biocomputing (PSB 2026), pages 508–519.
Haodong Zhu, Yangyang Ren, Changbai Li, Sheng Xu, Linlin Yang, Haiguang Liu, and Baochang Zhang. 2026. GraphHCA: Closed-form hindsight credit assignment for long-horizon LLM agents. Preprint, arXiv:2609.35084.
A Reward Definition and Trajectory-Fidelity Sensitivity
Reward definition. Tool-Grounded Self-Verifiable Reward (TGSVR) is an optional fidelity family inside the composite training objective; it is not the entire reward and is not required by the evaluation metric. For a trajectory with final answer y and m completed tools, the selected recipe assigns
where is the training-time answer-coverage term (including the formatting bonus), and denote required-tool coverage, bounded reasoning markers, efficiency, and structured-answer compatibility; is fixed character-Jaccard shaping and . compares predicted disorder ranges with the same-rollout disorder observation, while compares EC, SignalP, Pfam, or GO/IPR claims with their corresponding same-rollout fields. The no-TGSVR arms set only these two coefficients to zero. Table A2 lists the full coefficient set.
Three-seed results. The On rows are the four-arm, three-seed comparison reported in the main text. The Off rows are from earlier experiments. The available run records do not show that every On and Off run used the same stabilized training configuration during the same experimental period. We therefore use the on/off comparison only as a sensitivity check; it is neither a matched factorial experiment nor an estimate of the effect of TGSVR. The main result uses the On rows to compare return granularity and return normalization. The citation, identifier-density, and routing measures in Appendix B describe model behavior rather than biological validity.
Comparison scope. The main-text On arms share a common starting checkpoint, training questions, sampling schedule, seeds, environment, reward, budget, and evaluation set. Each arm generates its own on-policy trajectories. They differ in return granularity and return normalization. A causal test of individual reward components would require matched runs that remove one component at a time. The retained Off rows do not meet that requirement.
B Supplementary Analyses
Training-stage and tool ablation. Table B1 separates two factors: the training stage that produced the policy and the availability of bioinformatics tools at evaluation time. Aggregate all-episode success rises from 14.10 for the Qwen3-8B base through 40.20 after supervised fine-tuning to 61.00 for the full method, and the increase is concentrated in the three database-evidence categories rather than spread evenly across the five. Removing the actual tools from the full-method checkpoint returns the aggregate to 25.50—below its supervised-only stage. This comparison measures the effect of tool availability for the full checkpoint; it does not separate evidence acquisition from answer construction.
Behavioral diagnostics. Table B2 compares the two systems on tool routing, answer rate, citations, and structured identifiers. Both systems eventually reach a relevant tool on almost every example. The main differences are earlier routing and identifier use: ProtAgent selects a relevant tool more often on the first call and reports 1.7 database accessions per answer, compared with 0.5 for the baseline. These measures describe behavior, not whether every cited identifier supports every claim. ProtAgent's aggregate grounded-citation rate is also lower than the baseline's (76.10% versus 81.50%).
Failure taxonomy. Table B3 defines categories for analyzing unsuccessful trajectories. The primary label denotes the first failure that prevents a supported, task-compliant answer. Later problems receive secondary labels. We have not completed the annotation and adjudication needed to estimate category frequencies, so no counts are reported.
Credit-assignment variants. Table B4 varies token-level advantage mixing, step discounting, and step eligibility traces around Batched Step-Level REINFORCE. Each row is a fixed-budget continuation of one shared step-level checkpoint on OOD-100.
Across the six settings with paired sample-level records, Cochran’s ( ), and none of the 15 pairwise exact McNemar tests is significant ( ). These tests do not detect a
| Arm | Return | Return norm. | TGSVR | Seed | Mean ± SD | ||
|---|---|---|---|---|---|---|---|
| 42 | 43 | 44 | |||||
| Batched Step-Level REINFORCE | Step | Identity | On | 63.40 | 59.20 | 61.60 | 61.40 ± 2.10 |
| Off | 62.10 | 58.90 | 61.10 | 60.70 ± 1.60 | |||
| Step-Level GRPO | Step | Group-rel. | On | 59.80 | 56.50 | 58.30 | 58.20 ± 1.70 |
| Off | 59.20 | 56.80 | 57.80 | 57.90 ± 1.20 | |||
| Batched Episode-Level REINFORCE | Episode | Identity | On | 44.20 | 41.00 | 42.90 | 42.70 ± 1.60 |
| Off | 43.50 | 41.30 | 42.50 | 42.40 ± 1.10 | |||
| Episode-GRPO | Episode | Group-rel. | On | 38.20 | 34.80 | 36.50 | 36.50 ± 1.70 |
| Off | 37.50 | 35.20 | 36.10 | 36.30 ± 1.20 | |||
Table A1: Reported three-seed return-granularity and return-normalization results with TGSVR sensitivity rows. Entries are all-episode OOD-1000 success (%); the final column reports the across-seed mean ± sample standard deviation. On rows are the main-text stabilized retrains. Off rows retain the original reported values from earlier experiments, but they were not produced as part of the same matched experiment. The differences between On and Off therefore do not isolate the effect of TGSVR.
| Component | Weight | Applied at | Role |
|---|---|---|---|
| Answer coverage | 2.0 | Terminal answer | Reference-annotation recovery shaping |
| Required-tool coverage | 1.0 | Terminal answer | Task-relevant tool completion |
| Reasoning / efficiency / structure | 0.5/0.3/0.5 | Terminal answer | Bounded behavior and schema terms |
| Similarity J | 0.5 | Terminal answer | Training-only character-Jaccard shaping |
| Completed-tool guard | -0.45 if m = 0 | Terminal answer | Removes schema-only reward without a completed tool |
| Trajectory-local fidelity | 0.2/1.0 | Terminal answer | Disorder / categorical agreement with same-rollout observations |
| First new correct tool | +0.25 | Intermediate action | Successful first use of a relevant tool |
| Repeated / irrelevant / malformed Truncation / valid-answer bonus | -0.30/ -0.10/ -0.20-1.50/ +0.30 | Intermediate action Boundary / terminal | Action-level penalties Truncation penalty and tool-gated answer completion |
Table A2: Composite reward components and attachment points. This table documents the implemented objective; it is not a component ablation. The completed-tool correction is algebraic: removes schema-only increments when no tool completes.
difference among the evaluated settings; they do not establish equivalence or support a ranking.
Extended algorithm comparison. Table B5 combines the main comparison with an earlier single-seed study of three additional estimators. These are a PPO-clipped objective (Schulman et al., 2017) on the step-level return, a GiGPO-style dual-level advantage, and episode-level agentic REINFORCE. The two studies use different training configurations and evaluation sets. We retain the earlier results as context, not as a controlled ranking.
Threshold sensitivity. The headline reports the 0.5 reference-token annotation-coverage operating point. To test whether the comparison depends on that choice, we re-score the fixed OOD-1000 outputs at five cutoffs and compute paired bootstrap intervals (10,000 resamples) for the ProtAgent-minus-baseline difference. Table B6 shows that ProtAgent-8B exceeds the tool-powered baseline at every threshold, with all confidence intervals excluding zero. The advantage ranges from percentage points at to at . Thus, the advantage over this baseline is not limited to the 0.5 cutoff within the tested range.
Trajectory-source dual role. The DeepSeek-V3.2-Thinking model that produces the PFUA-layer supervised trajectories is also one of the evaluated baselines. We state both roles explicitly rather
| System | Enzyme | Domain | GO/IPR | Signal | Disorder | Aggregate |
|---|---|---|---|---|---|---|
| Qwen3-8B (base) | 3.00 | 0.50 | 7.00 | 51.00 | 9.00 | 14.10 |
| ProtAgent-8B (SFT) | 23.50 | 17.00 | 17.50 | 78.50 | 64.50 | 40.20 |
| ProtAgent-8B (full method) | 58.00 | 35.00 | 54.50 | 73.50 | 84.00 | 61.00 |
| ProtAgent-8B (tools ablated) | 11.50 | 1.50 | 10.50 | 31.00 | 73.00 | 25.50 |
Table B1: Training-stage and tool ablation (all-episode success, %) on the fixed OOD-1000 protocol, reported per task category. Rows trace the pipeline from the Qwen3-8B base through supervised fine-tuning (SFT), the full method (SFT with step-level RL), and a tools-ablated control. All rows except the tools-ablated control use the same bioinformatics tools. The tools-ablated control intentionally receives no tool observations. The matched OOD-100 same-tools control (SFT → full method) is reported in the main text.
| Diagnostic / system | Enzyme | Domain | GO/IPR | Signal | Disorder | Aggregate |
|---|---|---|---|---|---|---|
| All-episode success — primary outcome | ||||||
| ProtAgent-8B | 58.00 | 35.00 | 54.50 | 73.50 | 84.00 | 61.00 |
| DeepSeek-V3.2-Thinking | 1.00 | 25.50 | 1.50 | 99.00 | 81.00 | 41.60 |
| Answer rate — stopping behavior | ||||||
| ProtAgent-8B | 99.00 | 99.00 | 99.00 | 99.00 | 96.50 | 98.50 |
| DeepSeek-V3.2-Thinking | 100.00 | 100.00 | 100.00 | 99.00 | 99.00 | 99.60 |
| Grounded-citation rate — traceability of claims | ||||||
| ProtAgent-8B | 90.00 | 93.00 | 93.00 | 50.00 | 54.50 | 76.10 |
| DeepSeek-V3.2-Thinking | 92.00 | 79.00 | 81.00 | 56.00 | 99.50 | 81.50 |
| Structured identifiers per answer — evidence density (count, not a rate) | ||||||
| ProtAgent-8B | 2.2 | 3.7 | 1.6 | 0.5 | 0.6 | 1.7 |
| DeepSeek-V3.2-Thinking | 0.6 | 0.5 | 0.4 | 0.3 | 0.7 | 0.5 |
| Skill-relevant tool routing, first call — routing efficiency | ||||||
| ProtAgent-8B | 100.00 | 99.00 | 96.50 | 35.00 | 100.00 | |
| DeepSeek-V3.2-Thinking | 0.00 | 1.00 | 5.00 | 28.00 | 0.00 | |
| Skill-relevant tool routing, any step — routing capability (ceiling control) | ||||||
| ProtAgent-8B | 100.00 | 100.00 | 98.50 | 98.00 | 100.00 | |
| DeepSeek-V3.2-Thinking | 100.00 | 100.00 | 100.00 | 100.00 | 100.00 | |
Table B2: Behavioral diagnostics on OOD-1000. All values are percentages except identifiers per answer. Unless marked, aggregates are macro means over all five tasks; indicates an aggregate over the three database-based tasks only. Citation rates and identifier counts use answered episodes. Identifiers are database accessions (EC, Pfam, GO, or UniProt), not residue ranges. The same relevant-tool sets are used for both systems. The any-step routing measure is a ceiling check: reaching a relevant tool does not guarantee that the returned evidence is useful or that the final answer uses it correctly.
than treating it as a fully independent baseline. The closed-loop table also includes DeepSeek-V4-Flash, DeepSeek-V4-Pro, and GPT-5.5, none of which provides training data. In addition, the SFT trajectories mainly teach the tool interface, while RL trains evidence collection, stopping, and answer synthesis on-policy. All four credit-assignment arms start from the same SFT checkpoint, keeping the demonstration source fixed within that comparison.
C PFUA Complete Results and Reproduction Analysis
Table C1 gives the complete tool-powered comparison summarized in the main paper. It separates results published by PFUA, frontier models evaluated by us, and checkpoints trained by us. Table C2 lists the remaining PFUA results.
Our reproduction uses the released 100-sample subset (25 examples per task), evaluation code, and official PFUA scorer. The task and metric are therefore the same, but the model endpoints and run times differ from the published experiments. The DeepSeek reproduction has 100/100 sample coverage, uses native tools without heuristic fallback, and passes 41/41 official metric fixtures. Its Func. and Desc. scores are within 1.0 ROUGE-1 of the published values. This agreement is a consistency check, not proof of pipeline equivalence.
Cat. and Dom. differ from the published values by +5.14 and -2.03 ROUGE-1. With only 25 examples per task, one changed output can move a
| Primary category | Operational definition | Audit evidence |
|---|---|---|
| Tool selection | No task-relevant tool is called before termination, or the selected tool cannot produce evidence for the requested annotation. | Ordered tool calls, task-to-tool eligibility map, and termination state. |
| Tool failure | A relevant call is attempted but execution, parsing, dependency, or database access fails. | Tool status, stderr/error field, observation schema, and native-backend manifest. |
| Premature stopping | The policy emits a terminal answer while an indicated evidence gap remains, or before a necessary completed observation is available. | Final action position, completed-call set, and task-required evidence fields. |
| Evidence omission | Relevant evidence is present in an actual observation but the final answer omits the annotation needed by the reference-coverage scorer. | Same-trajectory observations, extracted answer, and reference annotation. |
| Unsupported claim | The final answer states an identifier, range, or function that is absent from or contradicted by the trajectory's observations. | Claim-to-observation alignment with exact identifier and span matching, followed by manual adjudication. |
| Formatting / truncation | Content cannot be scored because the answer wrapper or required schema is malformed, or generation ends at the response/token limit. | Parser outcome, finish reason, response length, and raw terminal output. |
Table B3: Failure categories and the evidence needed to assign them. The table defines an annotation scheme, not the results of a completed error-labeling study.
task mean by about 2 points. Sampling and endpoint changes may explain these differences, but one run is not enough to separate those effects from a systematic implementation difference. PFUA also reports one run without variance estimates or confidence intervals.
Unreproduced published row. The published Qwen tool-powered row (64.33/46.16) is the one entry our evaluation does not reproduce. With the same pipeline, tools, prompt, subset, and scorer, Qwen3-Max reaches 56.86/37.68, a gap of 7.47/8.48 points. This is much larger than the average differences for DeepSeek (+0.62) and Kimi-K2-Thinking (-0.23). The published result used a preview endpoint, whereas our run uses the currently served model; both results are also based on only 25 examples per task. We therefore keep the published value as prior-work context and compare systems within our evaluation using only the reproduced rows.
Published families outside active tool use. Table C2 reports the PFUA results omitted from the compact main-text table. These values come from PFUA and were not reproduced by us. The SFT and text-reasoning rows are smaller trained systems. The online and retrieval rows use the same frontier backbones with no external evidence or passive retrieval, respectively (Lewis et al., 2020). For all three frontier models, PFUA reports higher ROUGE-1 from online prompting to retrieval and then active tool use (DeepSeek-R1 22.78 / 32.37 / 53.53, Kimi-K2-Thinking 24.41 / 26.98 / 56.38, and Qwen3-Max 17.05 / 36.78 / 64.33). This prior result motivates our focus on learning a tool-use policy.
D Training Configuration
Table D1 lists the reinforcement-learning and supervised fine-tuning hyperparameters for the main-text recipe, including optimization, batching, schedule, and systems.
SFT corpus. The corpus contains 987 training and 64 validation trajectories. The training split comprises 567 action examples, 120 evidence-to-answer examples, and 300 multi-turn trajectories. Admission requires valid tool-call format, a substantive evidence-bearing answer, and task-critical tool coverage.
E Tool Catalog
Table E1 lists the enabled tools, backends, and dependencies in the project registry. Paper protocols expose the task-relevant tools through their prompts and tool interfaces.
F Prompt Templates
During training-data construction, each example is assigned one of four system-prompt variants ac-
| Credit-assignment setting | OOD-100 success (%) |
|---|---|
| Continuation control (default, λ = 0.95) | 51.00 |
| Token-level | |
| λ = 0.3 | 48.00 |
| λ = 0.5 | 41.00 |
| λ = 0.7 | 51.00 |
| λ = 0.9 | 52.00 |
| Step discount | |
| γ = 0.90 | 46.00 |
| γ = 0.95 | 50.00 |
| Step eligibility trace | |
| λ = 0.5 | 52.00 |
| λ = 0.7 | 55.00 |
Table B4: Credit-assignment ablations around Batched Step-Level REINFORCE on OOD-100 under a shared tool environment. All rows use ProtAgent-8B and continue from one shared step-level checkpoint under a single evaluation protocol. The control is the continuation baseline of this sweep, not the separately evaluated main-text model. Rows are comparable within the table but not to the main-text OOD-100 value. Success is computed over all 100 examples, with unanswered episodes counted as failures. No setting with paired sample-level records differs significantly from the continuation control.
according to Table F1. The variants provide different amounts of reasoning and tool-routing guidance while preserving the function-calling interface and the <answer> . . </answer> output contract. Evaluation uses one frozen concise prompt rather than sampling the training variants. Only PFUA-full explicitly requires the model to state a hypothesis before a tool call and update it after the observation; the other variants do not impose that rule.
| Variant | Weight | Tokens | Contents |
|---|---|---|---|
| PFUA-lite | 0.40 | 200–300 | Role / task / tools / output skeleton |
| Generic+ | 0.30 | ~120 | Four-line prompt + answer format |
| PFUA-full | 0.15 | ~625 | Full structured system prompt |
| Skill-aware | 0.15 | ~150 | Per-task tool routing + concise output |
Table F1: Prompt variants sampled during training-data construction. Weights are assignment probabilities and sum to one; token counts are approximate under the model tokenizer.
G Representative Evidence-Conversion Trace
Figure G1 shows a condensed rendering of a held-out catalytic-activity trajectory. A remote homology hit proposes a bifunctional NAD(P)H-hydrate repair enzyme, while an independent Pfam scan recovers the complementary N-terminal and dehydratase domains. The policy must select the supported activities and express both reactions in the requested form. Internal run and checkpoint identifiers and long metadata fields are omitted.
What the trace illustrates. The example shows evidence retrieval followed by answer construction. The homology search proposes a candidate function, and the domain scan checks whether the query has the two modules expected for the bifunctional enzyme. The final answer combines these results and gives the requested reactions. This illustrates the workflow, but a single trace does not isolate the contribution of reasoning beyond retrieval or establish how often the model uses evidence correctly.
H Code, Data, and Evaluation Checks
The code-and-data supplement contains benchmark inputs, scoring code, tool interfaces, reward implementations, configuration summaries, validation scripts, and tests. It does not include model checkpoints, raw model outputs, result summaries, or supplementary-only ablation artifacts. It supports running and scoring new evaluations, but is not a complete archive from which every reported table can be recomputed.
Records needed for reproduction. A reproducible run requires a protocol manifest identifying the benchmark, checkpoint, prompt, decoding settings, code revision, and tool and database versions. Each sample record should retain the tool calls, observations, final answer, and termination state. These records, together with per-sample scores, are needed to verify coverage and recompute paired comparisons.
Validation tools. The supplied coverage validator checks for missing, unknown, or duplicate sample IDs; the scorer keeps unanswered episodes in the denominator. Tool-integrity checks look for known fallback signatures, while native-mode preflight checks required dependencies. These tools help validate new runs; their inclusion is not a substitute for the records of the reported experiments.
| Arm | Return | Return norm. | Held-out reward | All-episode success (%) |
|---|---|---|---|---|
| Batched Step-Level REINFORCE | Step | Identity | ||
| Step-Level GRPO | Step | Group-rel. | ||
| Batched Step-Level REINFORCE + PPO clip | Step | Identity | ||
| GiGPO-style dual-level | Step+Ep. | Dual | ||
| Batched Episode-Level REINFORCE | Episode | Identity | ||
| Episode-Level Agentic REINFORCE | Episode | Identity | ||
| Episode-GRPO | Episode | Group-rel. |
Table B5: Algorithm results from two experimental settings. For † rows, success is the main-text OOD-1000 mean ± sample SD across training seeds 42/43/44. The three unmarked rows are single-seed OOD-100 evaluations from an earlier training configuration; their ± values describe evaluation sampling variability, not variation across training seeds. All reward entries come from the earlier single-seed experiments and are not co-sampled with the † success entries. Reward is a diagnostic under the composite objective (Appendix A), not a shared scale for ranking these experiments.
[system] You are a protein analysis agent with access to bioinformatics tools. Call tools one at a time; then wrap the final answer in <answer>... </answer>. Do not hallucinate tool results---use only information from actual outputs.
[user] Analyze the provided 508-aa protein sequence and describe the enzyme's catalytic activity, including the chemical reactions it facilitates.
[assistant, step 1] I will first identify a functionally informative homolog and then verify whether the query carries the expected domain architecture. <tool_call>{"name":"mmseqs2_besthit_uniprot", "arguments":{"sequence_ref":"query"}}
[tool] Best hit: Q2RGI2, 37.2% identity over 518 aligned residues, e-value 2.7e-83. Annotation: bifunctional NAD(P)H-hydrate repair enzyme Nnr; EC 4.2.1.136 and EC 5.1.99.6. Reported reactions include ADP-dependent dehydration of (6S)-NAD(P)HX and epimerization of (6R)- to (6S)-NAD(P)HX.
[assistant, step 2] The hit is remote rather than an identical record. I will test whether both functional modules expected for Nnr are present in the query. <tool_call>{"name":"pfam_hmmscan", "arguments":{"sequence_ref":"query"}}
[tool] Pfam: YjeF_N (PF03853; residues 27--195; e-value 3.2e-44) and Carb_kinase (PF01256; residues 253--508; e-value 3.8e-56), annotated as an NAD(P)H-hydrate dehydratase domain.
[assistant, final; task-relevant excerpt] <answer>The query is supported as a bifunctional NAD(P)H-hydrate repair enzyme. Its dehydratase activity (EC 4.2.1.136) converts (6S)-NADHX + ADP to NADH + AMP + phosphate + H(+), with the analogous NADPHX reaction producing NADPH. Its epimerase activity (EC 5.1.99.6) interconverts the (6R)- and (6S)-NAD(P)HX forms, allowing both damaged epimers to enter the repair pathway. The YjeF_N and Carb_kinase domain pair independently supports this bifunctional assignment.</answer>
Figure G1: Condensed held-out evidence-conversion trace (catalytic-activity task). A 37.2%-identity homology hit proposes the function, Pfam independently recovers both expected modules, and the task-relevant answer excerpt selects and reformulates the supported catalytic activities. Long sequence, metadata, and answer fields outside the requested catalytic activity are omitted for readability. The code-and-data supplement does not include the complete raw trajectory.
| τ | ProtAgent-8B | DeepSeek-V3.2-Thinking | Δ | 95% CI |
|---|---|---|---|---|
| 0.30 | 87.20 | 60.20 | +27.00 | [+23.90, +30.20] |
| 0.40 | 78.30 | 49.00 | +29.30 | [+25.90, +32.80] |
| 0.50 | 61.00 | 41.60 | +19.40 | [+15.90, +23.00] |
| 0.60 | 40.90 | 23.70 | +17.20 | [+14.00, +20.40] |
| 0.70 | 22.90 | 16.50 | +6.40 | [+3.50, +9.20] |
Table B6: Aggregate all-episode success (%) on OOD-1000 at varying reference-token annotation-coverage cutoffs ; and its interval are in percentage points. ProtAgent-8B exceeds the DeepSeek-V3.2-Thinking baseline at every threshold; all paired bootstrap 95% intervals (10,000 resamples) exclude zero. The disorder category uses the compaction-fixed evaluation; the remaining four categories carry over from the primary evaluation.
| Method and provenance | Func. | Cat. | Dom. | Desc. | Avg. |
|---|---|---|---|---|---|
| PFUA-published tool-powered reasoning (prior work) | |||||
| DeepSeek-R1 (671B) | 59.71/38.31 | 47.95/34.15 | 48.36/34.36 | 58.11/35.70 | 53.53/35.63 |
| Kimi-K2-Thinking (1T) | 57.98/35.73 | 67.68/46.90 | 39.76/28.56 | 60.08/36.78 | 56.38/36.99 |
| Qwen3-Max (preview) | 66.43/44.29 | 72.32/54.18 | 54.98/44.26 | 63.60/41.90 | 64.33/46.16 |
| Frontier APIs evaluated by us (reproductions / extensions) | |||||
| DeepSeek-R1 (671B) | 59.57/37.49 | 53.09/37.10 | 46.33/31.89 | 57.61/35.48 | 54.15/35.49 |
| Kimi-K2-Thinking (1T) | 57.55/35.25 | 67.20/46.30 | 39.40/28.10 | 59.70/36.45 | 56.15/36.40 |
| Qwen3-Max | 59.66/37.21 | 64.87/46.60 | 45.96/31.99 | 56.95/34.91 | 56.86/37.68 |
| Claude-Opus-4-8 | 62.70/39.52 | 64.86/47.60 | 43.71/30.51 | 60.43/39.38 | 57.92/39.25 |
| Claude-Opus-4-7 | 62.03/41.02 | 65.32/47.56 | 42.75/28.58 | 61.01/36.41 | 57.78/38.39 |
| GPT-5.5 | 65.50/46.01 | 67.89/52.27 | 50.36/37.69 | 61.90/42.65 | 61.41/44.66 |
| Qwen3-8B checkpoints trained and evaluated by us | |||||
| Qwen3-8B (prompted base) | 59.17/36.50 | 58.63/42.15 | 46.72/33.18 | 49.96/29.55 | 53.62/35.33 |
| Qwen3-8B (SFT) | 59.37/38.28 | 63.95/47.20 | 43.99/33.04 | 50.59/32.22 | 54.47/37.68 |
| ProtAgent-8B (PFUA SFT+RL) | 62.19/40.85 | 66.91/49.85 | 52.93/39.60 | 58.59/36.16 | 60.15/41.62 |
Table C1: Complete PFUA-compatible tool-powered comparison on the Mol-Instructions benchmark. Each cell reports ROUGE-1 / ROUGE-L recall (%). Boldface and underline rank only rows evaluated by us; published PFUA rows are prior-work context and are not ranked against them. The middle band contains our evaluations of served frontier APIs, not models trained in this work. Only the bottom-band SFT and SFT+RL checkpoints are post-trained by us. DeepSeek-Reasoner (Guo et al., 2025); Kimi-K2-Thinking (Kimi Team, 2025); Qwen3-Max-Preview, as reported by PFUA (Fan et al., 2026).
| Method | Func. | Cat. | Dom. | Desc. | Avg. |
|---|---|---|---|---|---|
| Supervised Fine-tuning | |||||
| BioMedGPT (10B) | 5.98/4.28 | 7.97/6.28 | 1.81/1.81 | 4.84/4.12 | 5.15/4.12 |
| ProtT3 (1.6B) | 15.46/10.81 | 17.36/12.41 | 16.83/12.22 | 19.49/15.96 | 17.28/12.85 |
| Prot2Text (0.9B) | 16.56/11.61 | 18.24/13.05 | 11.49/9.37 | 49.14/47.38 | 23.86/20.35 |
| Qwen2.5-3B-SFT | 40.74/30.85 | 41.45/34.52 | 42.60/32.13 | 33.95/25.68 | 39.69/30.79 |
| Text-based Reasoning | |||||
| BioMedGPT-R1 (17B) | 35.16/26.80 | 27.64/22.22 | 30.60/23.33 | 27.78/20.82 | 30.30/23.29 |
| Qwen2.5-3B-R1 | 49.10/38.04 | 61.33/46.54 | 51.01/41.10 | 42.56/32.37 | 51.00/39.51 |
| Online LLM Baseline | |||||
| DeepSeek-R1 (671B) | 26.65/19.68 | 21.86/18.02 | 26.09/19.70 | 16.53/10.76 | 22.78/17.04 |
| Kimi-K2-Thinking (1T) | 25.08/17.32 | 22.99/17.97 | 27.28/20.07 | 22.30/14.80 | 24.41/17.54 |
| Qwen3-Max | 18.53/12.62 | 15.93/12.27 | 15.13/11.28 | 18.59/11.94 | 17.05/12.03 |
| Multi-Source RAG | |||||
| DeepSeek-R1 (671B) | 38.23/25.68 | 32.36/23.75 | 30.35/21.46 | 28.54/16.73 | 32.37/21.91 |
| Kimi-K2-Thinking (1T) | 22.30/14.14 | 18.56/13.15 | 21.64/17.12 | 45.41/26.44 | 26.98/17.71 |
| Qwen3-Max | 37.42/24.52 | 50.66/40.67 | 16.44/12.44 | 42.61/26.34 | 36.78/25.99 |
Table C2: PFUA-published families omitted from the main table: supervised fine-tuning, text reasoning, online models, and multi-source retrieval (Fan et al., 2026). Cells report ROUGE-1 / ROUGE-L recall (%) (Lin, 2004). Systems include BioMedGPT (Luo et al., 2023), ProtT3 (Liu et al., 2024), Prot2Text (Abdine et al., 2024), and Qwen2.5 variants (Yang et al., 2024). Parentheses give parameter counts; DeepSeek-Reasoner (Guo et al., 2025), Kimi-K2-Thinking (Kimi Team, 2025), and Qwen3-Max-Preview, as reported by PFUA (Fan et al., 2026).
(a) Reinforcement learning
| Hyperparameter | Value |
|---|---|
| Objective and optimization | |
| Advantage estimator | Batched Step-Level REINF. |
| Policy-gradient variant | Vanilla (no GRPO) |
| Return normalization | Identity |
| Advantage whitening | Enabled |
| Advantage clip | 0.2 |
| Policy epochs | 1 |
| KL coefficient β | 0.001 |
| Discount γ | 1.0 |
| Entropy coefficient | 0 |
| Max gradient norm | 1.0 |
| Learning-rate schedule | Constant within each stage |
| Stage learning rates | |
| Weight decay | 0 |
| Batching and schedule | |
| Trajectories/prompt K | 4 |
| Prompt instances/update | 8 |
| Interaction steps/episode | 4 |
| Updates per stage | 50 (ckpt every 10) |
| Sequence length | 4,096 |
| Tokens per response | 1,024 |
| Systems | |
| Precision | bfloat16 |
| Training backend | FSDP2 |
| Inference engine | vLLM (TP 2) |
| Chat template | Qwen2.5 |
(b) Supervised fine-tuning
| Hyperparameter | Value |
|---|---|
| Base model | Qwen3-8B-Instruct |
| Epochs | 1 |
| Learning rate | , cosine |
| Weight decay | 0.01 |
| Batch × grad-accum | |
| Sequence length | 8,192 |
| Label shifting | Enabled |
| Precision | bfloat16 |
| Training backend | Megatron |
| Parallelism | TP2, PP2, CP2, seq.-par. |
| Chat template | Qwen2.5 |
| Train / val examples | 987 / 64 |
Table D1: Training hyperparameters: (a) reinforcement learning and (b) supervised fine-tuning. The reinforcement-learning schedule uses three 50-update stages. Each restart uses the previous checkpoint, a fresh optimizer, and a new reference anchor.
| Tool | Category | Backend | Database / dependency |
|---|---|---|---|
| Native / heuristic computation | |||
| seq_basic_props | Sequence properties | Native (heuristic) | None |
| mmseqs2_besthit_uniprot | Homology search | Native (MMseqs2) | Swiss-Prot |
| pfam_hmmscan | Domain detection | Native (HMMER) | Pfam-A |
| tmbed_predict | Membrane topology | Native (TMbed) | TMbed weights |
| signalp_predict | Signal peptide | Native (SignalP 6.0) / heuristic | SignalP 6.0 weights |
| disprot_region | Disordered regions | Native (IUPred3) / heuristic | IUPred3 |
| ec_number_predict | Enzyme class (EC) | Native (CLEAN) / heuristic | CLEAN weights |
| protein_design_generate | Sequence design | Heuristic | None |
| design_gate_verify | Design gating | Heuristic | None |
| Skill-routed API lookup | |||
| string_db_lookup | Protein interactions | API | STRING |
| quickgo_lookup | GO annotation | API | QuickGO |
| reactome_lookup | Pathway membership | API | Reactome |
Table E1: Enabled tool catalog. Entries marked “/ heuristic” have an alternative implementation in the registry. Paper-reported evaluations select native mode, which raises an error rather than silently falling back when a required native backend is unavailable. Reproduction requires the tool and database versions used in the corresponding run. Native backends and reference resources are MMseqs2 (Steinegger and Söding, 2017) over Swiss-Prot (The UniProt Consortium, 2025), HMMER (Eddy, 2011) over Pfam-A (Mistry et al., 2021), TMbed (Bernhofer and Rost, 2022), SignalP 6.0 (Teufel et al., 2022), IUPred3 (Erdős et al., 2021), CLEAN (Yu et al., 2023), and Gene Ontology terms (Ashburner et al., 2000) retrieved through QuickGO.