arXiv:2608.30188cs.CLAug 2026

Manuscript Offprint

arXiv:2608.30188

GPAgentBench-2K: Benchmarking Large Language Model Agents in Complex Clinical Action Space

Boqi Chen, Xudong Liu, Yunke Ao, Heejin Do, Jianing Qiu

Abstract

Large Language Models (LLMs) show great potential as clinical agents, yet existing benchmarks reduce clinical workflows to static predictions or unconstrained Markov Decision Processes (MDPs) with coarse action sets. To address this, we introduce GPAGENTBENCH-2K, the first Constrained MDP (CMDP) LLM-agent benchmark for primary-care clinical decision-making, constructed from expert-validated records of real-world GP encounters. Our environment models a full spectrum of six foundational clinical actions, imposes a topological workflow prior over the action space, and operationalizes safety-informed abstention as a first-class outcome. Evaluating 16 state-of-the-art LLMs reveals a significant performance degradation as the action space scales. Crucially, we uncover a clinical quality-safety gap: even frontier models with the highest diagnosis accuracy violate safety constraints in over half of high-risk cases. Finally, we establish a reference point using Constrained Group Relative Policy Optimization (C-GRPO), and show that while explicitly modeling constraints improves performance over unconstrained RL methods, it remains far from clinically acceptable safety.

https://github.com/jianing-lab/GPAgentBench

1 Introduction

Large Language Models (LLMs) have shown great potential as clinical agents capable of autonomously eliciting patient information, retrieving evidence, and executing multi-step reasoning through tool use (Qiu et al., 2024). Yet existing clinical agent benchmarks fail to capture the complexity of real-world clinical workflows, largely due to unrealistic and oversimplified problem formulation. Most existing frameworks (Kim et al., 2024; Yan et al., 2026; Zhou et al., 2025; Chen et al.,

Figure

(a)

Figure

(b)

Figure 1: (a) Comparison: Our CMDP models a full clinical action space, including recursive evidence gathering and safety-abstention. (b) Findings: Diagnosis accuracy drops substantially as action space scales.

  1. cast diagnosis as a static prediction problem, a non-Markov Decision Process (MDP) formulation that assumes comprehensive, structured patient data (e.g., Electronic Health Records) is available upfront. This reduces clinical decision-making to a single-step prediction task, entirely bypassing the sequential process of active evidence-gathering.

To better reflect this process, recent works formulate the problem as an MDP, where agents must interact with the environment to reach a diagnosis. This interaction can occur either between a simulated patient and a doctor agent (Feng et al., 2025) or among multiple specialized agents in a collaborative pipeline (Fan et al., 2025; Bani-Harouni et al., 2025). Nevertheless, these environments cannot fully capture real-world complexity due to two major limitations. First, they typically collapse the action space into a coarse action sets. For instance,

∗^{*}These authors contributed equally.

DoctorAgent (Feng et al., 2025) defines a minimal two-action set (ask and diagnose). In reality, even a General Practitioner (GP), often the first point of contact and a foundational role in healthcare systems, navigates a complex action space where they must gather evidence from incomplete presentations, judiciously order tests, and prescribe treatment after diagnosis. Second, these environments operate as an unconstrained MDP with a single, absolute goal: finding the correct disease. Even when secondary metrics such as cost are included (Bani-Harouni et al., 2025), they are treated as soft additive penalties. Real-world clinical workflow, however, is inherently a Constrained MDP (CMDP) (Achiam et al., 2017), where the agent must optimize diagnostic performance within strict operational boundaries. For example, prescribing treatment before sufficient evidence, ordering excessive diagnostic tests, or failing to refer a high-risk patient all constitute clinically unsafe behavior that cannot be retroactively compensated by downstream task performance. The objective is therefore not to maximize diagnostic accuracy in isolation, but to maximize it subject to safety constraints.

To operationalize this setting, we introduce GPAGENTBENCH-2K, a clinical CMDP environment constructed from expert-validated records of real-world GP encounters. Unlike conventional benchmarks that assume a fixed diagnostic trajectory, our benchmark spans the full GP decision spectrum via six foundational actions: ask, body_exam, test, diagnose, treat, and refer. In addition, it imposes a topological workflow prior through action masking, and explicitly models multiple valid terminal outcomes, including diagnose-and-manage for safely manageable conditions and abstain-and-refer for safety-informed escalation. This design enables evaluation of diagnosis (Dx), treatment (Tx) accuracy and safety and efficiency.

Our CMDP environment also presents unique challenges for reinforcement learning (RL)-based fine-tuning. Specifically, unconstrained RL methods such as Group Relative Policy Optimization (GRPO) (Guo et al., 2025) optimize a scalar reward over an unconstrained action space. Encoding strict safety requirements as additive penalties induces a dangerous compensatory tradeoff where the policy simply absorbs safety violations if the accuracy reward is sufficiently large, effectively trading safety for task performance. To contextualize this challenge, we establish a reference baseline using Constrained GRPO (C-GRPO) (Girgis et al., 2026), a tailored adaptation that augments GRPO with a Lagrangian relaxation to explicitly penalize safety violations. Our results suggest that while C-GRPO improves over unconstrained RL methods, absolute safety-failure rates remain high, demonstrating that achieving clinically acceptable safety in a complex action space remains an unsolved problem.

Our contributions are summarized as follows:

① We introduce GPAGENTBENCH-2K, the first CMDP LLM-agent benchmark for primary-care clinical decision-making, which models the full spectrum of primary clinical actions and operationalizes safety-informed abstention as a first-class outcome using clinician-validated real-world GP encounter data;

② We evaluate 16 state-of-the-art LLMs, finding that clinical quality degrades significantly in a complex action space. Crucially, we reveal a quality-safety gap, when even frontier models with the highest Dx accuracy violate safety constraints in over half of high-risk cases;

③ We establish a reference point by benchmarking C-GRPO and show that despite improvement over unconstrained RL baselines, absolute safety-failure rates remain high, suggesting that achieving clinically acceptable safety in complex a action space remains unsolved.