Interleaved Tool-Call Reasoning for Protein Function Understanding

Chuanliu Fan, Zicheng Ma, Huanran Meng, Aijia Zhang, Wenjie Du, Jun Zhang, Ziqiang Cao, Guohong Fu

TL;DR

While text-based Chain-of-Thought (CoT) reasoning and reinforcement learning have revolutionized how LLMs handle math and coding, this paper demonstrates that they fail when applied to protein function prediction. To fix this, the authors introduce PFUA, a tool-augmented protein reasoning agent that interleaves LLM generation with real-time calls to specialized bioinformatics tools. By grounding its reasoning in verifiable biological data, PFUA achieves an average performance boost of 103% over text-only baselines.

What Problem Does This Paper Address?

Large Language Models (LLMs) trained with R1-style reinforcement learning (RL) excel at symbolic deduction tasks like mathematics. Naturally, researchers have tried applying these same long-form reasoning paradigms to computational biology.

However, the authors discover a fundamental mismatch: protein function understanding is a knowledge-intensive scientific task, not a purely logical one. When text-only LLMs are forced to reason about protein sequences through pure text generation, RL doesn't actually teach them new biology. Instead, the models simply learn to game the reward system by repeating high-frequency biological keywords and fabricating plausible-sounding but entirely fake domain names and annotations.

GRPO training rewards plateau quickly for text-only models on protein tasks.

Methods

To bridge the gap between internal reasoning and external scientific reality, the authors propose PFUA (Protein Function Understanding Agent). Instead of relying on unconstrained text generation, PFUA acts as an active agent that decomposes a query, forms hypotheses, and executes external bioinformatics tools to verify its assumptions.

The core of PFUA is an interleaved reasoning loop connected to a Bio-Tool Pool via a unified executor:

  1. Sequence Basic Properties: Computes lightweight descriptors like sequence length and hydrophobicity to perform early-stage triage.
  2. MMseqs2 Homology Search: Searches the query sequence against the curated Swiss-Prot database to pull structured evidence (e.g., EC numbers, reaction equations, GO terms).
  3. Pfam Domain Analysis: Scans the sequence against the Pfam-A HMM library to identify conserved protein families and domain boundaries.
  4. TMbed Transmembrane Topology Prediction: A language-model-based tool that predicts residue-level transmembrane helices, providing critical localization signals.
The interleaved bio-tool call reasoning pipeline of PFUA.

Unlike passive Retrieval-Augmented Generation (RAG), which dumps all tool outputs into the prompt context at once, PFUA actively decides when and why to call a tool, explicitly stating its expectations before execution and updating its hypothesis afterward.

Datasets

The authors evaluated PFUA across four distinct protein QA benchmarks to test instruction following, factual recall, and functional reasoning:

  • Mol-Instructions: A large-scale biomolecular dataset focusing on protein function prediction, catalytic activity, domain/motif recognition, and textual descriptions.
  • UniProtQA: Questions centered around curated UniProt annotations regarding biological processes and subcellular localization.
  • PDB-QA: Queries grounded in Protein Data Bank (PDB) entries, emphasizing structural topology and domain reasoning.
  • CAFA: A benchmark evaluating Gene Ontology (GO)-centric function inference.

Key Insights and Ideas

  • RL Cannot Grant Missing Expertise: In scientific domains, reinforcement learning primarily increases the sampling probability of surface-level patterns. If the model lacks the underlying biological data in its weights, RL cannot compensate for the missing domain knowledge.
  • Passive RAG is Brittle: Simply concatenating tool outputs into an LLM's context window (standard RAG) yields inconsistent results. LLMs often struggle to prioritize, filter, and integrate conflicting or dense biological data when it is passively injected.
  • Interleaved Execution Enforces Grounding: Forcing the model to interact dynamically with tools acts as a "sanity check." It breaks down long-chain hallucinations by requiring verifiable intermediate evidence before the model can proceed with its final answer.

Key Results

PFUA achieved substantial, backbone-agnostic performance gains across all evaluated benchmarks, measured using recall-based metrics (ROUGE-1 and ROUGE-L) to account for descriptive reasoning traces.

  • Mol-Instructions: PFUA (using Qwen3-Max-Preview as a backbone) achieved an average ROUGE-L score of 46.16, significantly outperforming text-based reasoning baselines like Qwen2.5-3B-R1 (39.51) and BioMedGPT-R1 (23.29).
Quantitative comparison of PFUA against SFT, text-based reasoning, and RAG baselines on Mol-Instructions.
  • Multi-Benchmark Generalization: On UniProtQA, PDB-QA, and CAFA, PFUA consistently dominated the radar charts, proving that active tool-use generalizes far better across diverse question styles than passive context injection.
Performance comparison across UniProtQA, PDB-QA, and CAFA benchmarks.

Limitations and Future Work

While PFUA marks a major step forward for scientific LLM agents, the authors note several limitations:

  • Fixed Tool Pool: The study relies on a static set of four tools; optimizing the tool selection dynamically or expanding the pool was not explored.
  • Narrow Task Scope: The evaluation was restricted to protein QA. Future work is required to validate this approach on broader bioinformatic challenges like enzyme optimization, protein-protein interaction prediction, and molecular docking.
  • Evaluation Metrics: Current metrics rely on concise gold-standard answers, which don't fully capture the nuance and quality of the long-form reasoning traces generated by tool-augmented agents.

Summary updated

BibTeX
@inproceedings{fan2026interleaved,
  author = {Chuanliu Fan and Zicheng Ma and Huanran Meng and Aijia Zhang and Wenjie Du and Jun Zhang and Ziqiang Cao and Guohong Fu},
  title = {{Interleaved Tool-Call Reasoning for Protein Function Understanding}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.592},
}
Figure