arXiv:2610.36100cs.AIOct 2026

Manuscript Offprint

arXiv:2610.36100

CohortFlow: A Steerable Clinical Cohort Curation Agent with Localized Semantic Correction

Neil Chen, Adrian Serapio, Hanxue Gu, Evan Lee, Kang Wang, Yang Yang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Language model agents for clinical cohort curation should accommodate evolving eligibility criteria without repeatedly processing unchanged requirements. We introduce CohortFlow, a steerable agent that represents natural language corrections as localized updates to a structured cohort specification and reconciles them with a persistent execution graph. Explicitly recorded semantic dependencies enable affected computations to be selectively invalidated while preserving valid prior results. On 100 scenarios derived from clinical-trial eligibility criteria, comprising 126 correction turns, localized steering achieves 77.0% requirement micro-F1 versus 76.4% for full regeneration using the same 8B model, a small numerical advantage that is not statistically significant (p = 0.493). It reduces mean correction latency by 64.8% after completion and 44.3% during execution, with 38.1% fewer model calls. In a separate proof-of-concept evaluation over MIMIC, all 13 cohort states execute successfully, while correction trajectories demonstrate selective preservation of unaffected computations and recomputation of changed or dependent nodes. Together, these results show that localized semantic steering can substantially reduce correction latency and model calls while maintaining strong requirement-level accuracy.

1 Introduction

Clinical cohort curation is often iterative: an initial set of eligibility criteria may be revised as clinicians inspect intermediate results, clarify intent, or refine the target population. Existing systems increasingly use language models to translate natural language criteria into computable cohort definitions or reason over electronic health records (EHRs) (Yuan et al., 2019; Park et al., 2024; Shi et al., 2024). However, conventional pipelines generally treat a revised request as a new task, potentially repeating interpretation and computation even when most of the existing cohort definition remains unchanged.

This limitation becomes particularly important when corrections arrive during execution. A clinician may add an exclusion criterion, modify a laboratory threshold, or revise a temporal relationship after other parts of the cohort have already been processed. Restarting from the revised request discards valid intermediate work, while modifying only the final result risks leaving the execution state inconsistent with the revised intent. Importantly, execution order does not determine semantic dependency: changing an earlier computation need not invalidate later computations that do not depend on it.

*neilchen@berkeley.edu

Preprint.

We introduce a steerable cohort-curation agent that incorporates natural language corrections without restarting the entire task. The agent maintains an explicit cohort specification alongside execution state, allowing revisions to propagate according to semantic dependencies rather than execution order. This enables corrections to be incorporated during execution while preserving computation that remains valid.

Our contributions are:

• We formulate semantic mid-run steering for clinical cohort curation and introduce an incremental Task Delta mechanism that interprets natural language corrections as localized changes to an existing cohort specification while preserving unchanged structured state.

• We introduce semantic validity-aware execution across cohort revisions, using stable requirement references and semantic fingerprints to selectively invalidate affected computation while retaining valid artifacts across structured database operations and unstructured clinical-note reasoning.

• We develop a stateful steering framework for heterogeneous EHR workflows that supports resumable execution, ordered interventions, and sequential or parallel correction scheduling, and evaluate its semantic correctness, computation reuse, and adaptation efficiency.

References (24)