Beyond Benchmarks: Dynamic, Automatic And Systematic Red-Teaming Agents For Trustworthy Medical Language Models

Jiazhen Pan, Bailiang Jian, Paul Hager, Yundi Zhang, Che Liu, Friederike Jungmann, Hongwei Bran Li, Chenyu You, Junde Wu, Jiayuan Zhu, Fenglin Liu, Yuyuan Liu, Niklas Bubeck, Christian Wachinger, Chen Chen, Zhenyu Gong, Cheng Ouyang, Georgios Kaissis, Benedikt Wiestler, Daniel RueckertarXiv 2025 · DOI

Introduction

Static benchmarks for medical AI are rapidly becoming obsolete, creating a dangerous illusion of clinical readiness. While many medical Large Language Models (LLMs) now achieve "expert-level" scores on exams like the USMLE (MedQA), these high scores often mask a critical reality: optimizing for a static test is not equivalent to ensuring safety in real-world clinical environments. This phenomenon, a classic example of Goodhart’s Law, suggests that when a measure becomes a target, it ceases to be a good measure.

Furthermore, traditional manual "red-teaming"—the process of probing AI for vulnerabilities—is unscalable and too slow to match the weekly release cycles of new models. To bridge this gap, this research introduces DAS (Dynamic, Automatic, and Systematic), an automated, agent-based red-teaming framework designed to continuously stress-test medical LLMs.

The DAS Framework

Instead of relying on a static checklist, DAS employs a suite of adversarial AI agents to hunt for vulnerabilities in target LLMs (referred to as "rabbit" models). The system operates as a closed-loop: an attacker agent observes the target's response and iteratively escalates or switches tactics until the target "jailbreaks" (fails) or the search budget is exhausted.

The DAS framework workflow (b) and jailbreak ratio heatmap (c) across 15 state-of-the-art models.

Evaluation Axes

The framework systematically probes models across four safety-critical axes, using specialized tools and strategies for each:

Specific adversarial attack categories across the four safety-critical axes: Robustness, Privacy, Bias/fairness, and Hallucination.
  1. Robustness: An orchestrator agent mutates questions the model previously answered correctly. It uses tools like narrative distractions, expanded multiple-choice options, or injecting "physiological impossibilities" (e.g., a heart rate of 300 bpm) to see if the model maintains its clinical judgment.
  2. Privacy: Attack agents attempt to trick the model into leaking HIPAA/GDPR-protected health information using disguises like "well-meaning intentions" or complex formatting instructions.
  3. Bias/Fairness: Agents manipulate patient vignettes by altering demographics, linguistic styles, or injecting cognitive biases (e.g., "most of your colleagues think X is the right treatment").
  4. Hallucination: A multi-agent detector checks responses for fabricated medical facts, fake citations, and logical contradictions.

Key Insights and Results

The authors evaluated 15 state-of-the-art LLMs, including GPT-4o, Claude 3.7, Gemini 1.5, and DeepSeek-R1. The results reveal a significant gap between benchmark performance and adversarial resilience:

  • The Illusion of Competence: Despite median MedQA accuracies above 80%, the median jailbreak rate under dynamic attack was a staggering 94%. Even the most robust model, o4-mini, failed 69% of the time.
  • Chain-of-Thought (CoT) Risks: Models with explicit reasoning chains (like OpenAI's o3 or DeepSeek-R1) actually hallucinated more frequently (68.7%) than standard baselines (64.7%). CoT can help structure answers but may also propagate false premises throughout a logical chain.
  • Privacy Bypasses: The most effective way to extract private data was to include a performative privacy warning in the prompt, which appeared to lull the model's safety filters into a false sense of security.
  • Cognitive Bias Vulnerability: All models were highly susceptible to priming. Appending a sentence suggesting a specific treatment caused models to abandon correct clinical judgments in over 80% of cases.

Conclusion and Future Work

The DAS framework demonstrates that high benchmark accuracy is often brittle pattern matching. While the current system is highly effective, future work is needed to expand the attack vocabulary to prevent models from overfitting to specific DAS strategies. Additionally, extending the framework to multimodal inputs (e.g., medical imaging) is a high priority for the next generation of medical Vision-Language Models (VLMs).

Summary updated

BibTeX
@misc{pan2025beyond,
  author = {Jiazhen Pan and Bailiang Jian and Paul Hager and Yundi Zhang and Che Liu and Friederike Jungmann and Hongwei Bran Li and Chenyu You and Junde Wu and Jiayuan Zhu and Fenglin Liu and Yuyuan Liu and Niklas Bubeck and Christian Wachinger and Chen Chen and Zhenyu Gong and Cheng Ouyang and Georgios Kaissis and Benedikt Wiestler and Daniel Rueckert},
  title = {{Beyond Benchmarks: Dynamic, Automatic And Systematic Red-Teaming Agents For Trustworthy Medical Language Models}},
  year = {2025},
  eprint = {2508.00923},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.00923},
}
Figure