Skip to main content
QUICK REVIEW

[Paper Review] TxAgent: An AI Agent for Therapeutic Reasoning Across a Universe of Tools

Shanghua Gao, Richard Zhu|ArXiv.org|Mar 14, 2025
Machine Learning in HealthcareComputer Science5 citations
TL;DR

TxAgent is an AI agent that uses multi-step reasoning and real-time tool integration over 211 biomedical tools to provide evidence-grounded, personalized therapeutic recommendations. It outperforms large LLMs and existing tool-use models across new drug-therapy benchmarks.

ABSTRACT

Precision therapeutics require multimodal adaptive models that generate personalized treatment recommendations. We introduce TxAgent, an AI agent that leverages multi-step reasoning and real-time biomedical knowledge retrieval across a toolbox of 211 tools to analyze drug interactions, contraindications, and patient-specific treatment strategies. TxAgent evaluates how drugs interact at molecular, pharmacokinetic, and clinical levels, identifies contraindications based on patient comorbidities and concurrent medications, and tailors treatment strategies to individual patient characteristics. It retrieves and synthesizes evidence from multiple biomedical sources, assesses interactions between drugs and patient conditions, and refines treatment recommendations through iterative reasoning. It selects tools based on task objectives and executes structured function calls to solve therapeutic tasks that require clinical reasoning and cross-source validation. The ToolUniverse consolidates 211 tools from trusted sources, including all US FDA-approved drugs since 1939 and validated clinical insights from Open Targets. TxAgent outperforms leading LLMs, tool-use models, and reasoning agents across five new benchmarks: DrugPC, BrandPC, GenericPC, TreatmentPC, and DescriptionPC, covering 3,168 drug reasoning tasks and 456 personalized treatment scenarios. It achieves 92.1% accuracy in open-ended drug reasoning tasks, surpassing GPT-4o and outperforming DeepSeek-R1 (671B) in structured multi-step reasoning. TxAgent generalizes across drug name variants and descriptions. By integrating multi-step inference, real-time knowledge grounding, and tool-assisted decision-making, TxAgent ensures that treatment recommendations align with established clinical guidelines and real-world evidence, reducing the risk of adverse events and improving therapeutic decision-making.

Motivation & Objective

  • Motivate precision therapy by addressing the need for multimodal, data-grounded treatment reasoning that accounts for patient-specific factors.
  • Develop an AI agent that integrates multi-step reasoning with real-time biomedical tool retrieval to evaluate drug interactions, contraindications, and guidelines.
  • Create a scalable ToolUniverse of tools and a learning framework to enable dynamic tool selection and evidence-grounded recommendations.
  • Demonstrate that tool-augmented reasoning can surpass larger models in open-ended and structured drug reasoning tasks.
  • Provide benchmarks and analyses to assess generalization across drug name variants, description-based references, and personalized treatment scenarios.

Proposed method

  • Introduce TxAgent architecture consisting of ToolUniverse (211 tools), a fine-tuned LLM for multi-step reasoning and tool execution, and the ToolRAG adaptive tool retrieval model.
  • Construct ToolGen to convert API documentation into standardized tool specifications for ToolUniverse.
  • Develop TxAgent-Instruct dataset (378,027 instruction-tuning samples) from three sources (tooling, therapeutic questions, reasoning traces) using QuestionGen and TraceGen pipelines.
  • Enable real-time knowledge grounding by executing function calls to external sources (e.g., FDA, Open Targets) instead of relying on static model knowledge.
  • Provide transparent reasoning traces that accompany final answers to support verification and trust.
  • Evaluate on five benchmarks (DrugPC, BrandPC, GenericPC, DescriptionPC, TreatmentPC) spanning 3,168 drug reasoning tasks and 456 personalized treatment scenarios.

Experimental results

Research questions

  • RQ1How can an AI agent effectively perform multi-step therapeutic reasoning by integrating a large toolbox of external biomedical tools?
  • RQ2Does real-time grounding from verified sources improve accuracy and reduce hallucinations in drug reasoning compared to LLM-only approaches?
  • RQ3Can adaptive tool retrieval (ToolRAG) and structured reasoning traces enhance performance over larger models and existing tool-use LLMs across open-ended and multiple-choice formats?
  • RQ4How robust is TxAgent to drug name variation (brand/generic/description) and to descriptive drug narratives?
  • RQ5Do multi-step training traces and iterative tool use meaningfully improve performance in personalized treatment recommendations?

Key findings

  • TxAgent achieves 92.1% accuracy in open-ended DrugPC drug reasoning tasks, surpassing GPT-4o by up to 25.8% and outperforming DeepSeek-R1 in structured multi-step reasoning.
  • TxAgent attains 93.8% accuracy in multiple-choice DrugPC and 92.1% in open-ended DrugPC, outperforming Llama-3.1-70B-Instruct and other baselines across tasks.
  • On BrandPC and GenericPC, TxAgent scores 93.6% and 93.7% accuracy, respectively, outperforming pure LLMs and tool-use baselines with large margins and showing low accuracy variance (< 0.01).
  • TxAgent in TreatmentPC achieves 86.8% multiple-choice and 75.0% open-ended accuracies, exceeding GPT-4o and Llama-3.1-70B-Instruct, and outperforming tool-use LLMs by large margins.
  • TxAgent demonstrates robustness to drug name representations, with variance across brand/generic/description references substantially lower than baselines (variance measures cited).
  • Ablation studies show increased ToolUniverse size improves performance, explicit reasoning steps boost results, and real-tool usage outperforms LLMs substituting tools; multi-step training traces significantly enhance complex reasoning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.