cs.AIFeb 17, 2026

Optimization Instability in Autonomous Agentic Workflows for Clinical Symptom Detection

Authors: Cameron Cagan, Pedram Fard, Jiazi Tian, Jingya Cheng, Shawn N. Murphy, Hossein Estiri

Organizations: Department of Medicine, Massachusetts General Hospital, Boston, MA, USA · Department of Neurology, Massachusetts General Hospital, Boston, MA, USA

Abstract

Autonomous agentic workflows that iteratively refine their own behavior hold considerable promise, yet their failure modes remain poorly characterized. We investigate optimization instability, a phenomenon in which continued autonomous improvement paradoxically degrades classifier performance, using Pythia, an open-source framework for automated prompt optimization. Evaluating three clinical symptoms with varying prevalence (shortness of breath at 23%, chest pain at 12%, and Long COVID brain fog at 3%), we observed that validation sensitivity oscillated between 1.0 and 0.0 across iterations, with severity inversely proportional to class prevalence. At 3% prevalence, the system achieved 95% accuracy while detecting zero positive cases, a failure mode obscured by standard evaluation metrics. We evaluated two interventions: a guiding agent that actively redirected optimization, amplifying overfitting rather than correcting it, and a selector agent that retrospectively identified the best-performing iteration successfully prevented catastrophic failure. With selector agent oversight, the system outperformed expert-curated lexicons on brain fog detection by 331% (F1) and chest pain by 7%, despite requiring only a single natural language term as input. These findings characterize a critical failure mode of autonomous AI systems and demonstrate that retrospective selection outperforms active intervention for stabilization in low-prevalence classification tasks.

Figures & tables

Explore similar work

CardsList
  1. A Multi-Agent System for Autonomous, Fine-Tuning-Free Clinical Symptom Detection: Development and Validation Study

    Jul 14, 2026Cameron Cagan, Pedram Fard, Jiazi Tian +3Multi-Agent LLM SystemsMedical Diagnosis

  2. Plausible but Wrong: A case study on Agentic Failures in Astrophysical Workflows

    Apr 28, 2026Shivam Rawat, Lucie FlekAgent Failure AnalysisAI for Science

  3. AgentFixer: From Failure Detection to Fix Recommendations in LLM Agentic Systems

    Feb 18, 2026Hadar Mulian, Sergey Zeltyn, Ido Levy +3LLM Agent ReliabilityLLM Agents