ReflecTool: Towards Reflection-Aware Tool-Augmented Clinical Agents

Yusheng Liao, Shuyang Jiang, Yanfeng Wang, Yu Wang

Introduction

Large Language Models (LLMs) have demonstrated significant potential in the medical domain, yet they often remain "text-locked," struggling to interface with the diverse data formats prevalent in clinical settings, such as medical imaging, structured Electronic Health Records (EHRs), and complex physiological calculations. Existing clinical agents are frequently specialized for narrow tasks and lack a generalizable mechanism for tool selection and parameterization. To bridge this gap, we introduce ReflecTool, a framework that enables LLMs to function as versatile clinical agents by learning from experience through a two-stage reflection-aware process.

The ClinicalAgent Bench (CAB)

A primary obstacle in developing clinical agents has been the absence of a holistic evaluation framework. We address this by introducing the ClinicalAgent Bench (CAB), a comprehensive benchmark comprising 18 tasks across five critical dimensions of clinical practice.

The ClinicalAgent Bench (CAB) encompasses 18 tasks across five dimensions: Knowledge & Reasoning, MultiModal, Numerical Analysis, Data Understanding, and Trustworthiness.

CAB evaluates agents on their ability to perform medical reasoning (e.g., MedQA), process multimodal data (e.g., VQA-RAD), conduct numerical analysis (e.g., EHRSQL), understand complex data (e.g., MIMIC-III), and maintain trustworthiness by detecting hallucinations (e.g., MedHalt).

The ReflecTool Framework

ReflecTool operates via a two-stage learning and execution pipeline: the Optimization Stage and the Inference Stage.

The ReflecTool architecture features an Optimization Stage for generating tool-wise experience and a Reflection-Aware Inference Stage that utilizes long-term memory and real-time verification.

1. Optimization Stage ("Study" Phase)

During this phase, the agent interacts with a "Clinical Toolbox" containing 15 specialized tools. It attempts tasks and reflects on its performance. Successful trajectories are stored in a Long-Term Memory (LTM), while failures and successes are distilled into a library of Tool-wise Experience. This experience helps the agent understand the nuances and technical requirements (e.g., SQL syntax) of specific tools.

2. Inference Stage ("Exam" Phase)

When presented with a new clinical case, the agent retrieves similar successful trajectories from its LTM to inform its strategy. A Verifier monitors tool usage in real-time, employing either Iterative Refinement (repeatedly prompting the agent to correct errors) or Candidate Selection (choosing the best option from multiple generated tool calls).

Key Insights and Results

Our evaluation on the CAB benchmark reveals several critical insights:

  • Memory as a Performance Multiplier: The integration of Reflective Long-Term Memory provided the most substantial performance gains, suggesting that historical context is more valuable than raw reasoning depth for agentic tasks.
  • Intelligence-Dependent Verification: We found an "intelligence threshold" where weaker models benefit most from iterative "hand-holding," whereas high-capacity models excel when allowed to select from multiple candidate trajectories.
  • Significant Error Reduction: ReflecTool drastically reduces technical friction. In tool-intensive tasks like EHRSQL, tool selection errors dropped from 4.03% in standard ReAct baselines to just 0.08%.
  • Benchmark Superiority: ReflecTool outperformed state-of-the-art LLMs (including GPT-4o-mini) by over 10 points and surpassed established agent frameworks like ReAct and Reflexion by approximately 3 points on average.

Conclusion

ReflecTool represents a significant step toward general-purpose clinical agents. By combining a holistic benchmark with a reflection-aware learning mechanism, the framework overcomes the limitations of "text-locked" models, enabling more reliable and versatile interaction with complex medical data systems. Future work will focus on optimizing trajectory efficiency and ensuring the benchmark evolves alongside the rapidly changing clinical landscape.

Summary updated

BibTeX
@inproceedings{liao2025reflectool,
  author = {Yusheng Liao and Shuyang Jiang and Yanfeng Wang and Yu Wang},
  title = {{ReflecTool: Towards Reflection-Aware Tool-Augmented Clinical Agents}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure