Manuscript Offprint

arXiv:2610.33746

ProtAgent: Post-Training Compact Protein Tool Agents with Interaction-Level Credit Assignment

Yuxiang Wang, Baojian Zhou, Qifang Zhao, Keyue Jiang, Yanghua Xiao, Xiaoxiao Xu

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:

  1. 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.

  2. We compare step-level and episode-level returns in a three-seed 2×22 \times 2 study that also varies return normalization, and find a large, consistent advantage for step-level returns under both normalization choices.

  3. 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.

References (29)