Introduction
While medical foundation models (FMs) demonstrate remarkable performance on standardized benchmarks, such as medical licensing exams, they often struggle in the messy reality of clinical practice. This "benchmark-to-bedside" gap is frequently caused by a lack of contextual intelligence. Patients rarely present as textbook cases; they bring unique comorbidities, social barriers, and geographic constraints that general models may overlook.
The Problem: Contextual Collapse
Current AI approaches typically rely on two paradigms: zero-shot prompting of general models or fine-tuning on specialized datasets. However, these methods often lead to "contextual errors"—outputs that are medically plausible but dangerously incorrect for a specific situation. For instance, a model might recommend a follow-up appointment without considering a patient's lack of transportation. Fine-tuning for every possible clinical scenario is computationally expensive and data-hungry, making it difficult to scale across the infinite variety of medical contexts.
The Solution: Context-Switching
Researchers from Harvard Medical School and the Clalit Research Institute propose "context-switching" as a new paradigm. Rather than retraining models for every new environment, context-switching allows a model to dynamically adjust its reasoning at inference time based on the specific "Who, Where, and What" of a clinical encounter.
Dimensions of Context
The framework defines context across three primary dimensions:
- Specialty: Adjusting reasoning for specific fields like neurology or pulmonology.
- Geography and Population: Incorporating local epidemiology, healthcare infrastructure, and social determinants of health.
- Healthcare Role: Tailoring outputs for different users, such as surgeons, triage nurses, or patients.
Implementation Strategies
To realize this vision, the authors outline three pillars:
- Data Strategies: Capturing "context-specific signals" through prompt libraries and human-annotated reasoning traces that demonstrate how clinicians reach decisions.
- Model Architectures: Developing agentic systems that route tasks to specialized sub-agents and multimodal models that can switch their reliance between data types (e.g., prioritizing lab values when imaging is unavailable).
- Evaluation Frameworks: Moving beyond static accuracy to benchmarks that test model behavior across real-world variability.
Future Outlook
Transitioning to context-switching requires addressing challenges in data privacy, bias reinforcement, and "reward hacking." The authors advocate for "test-time scaling"—allocating more computation during inference for deeper reasoning—and the development of "executive agents" to manage complex, multi-step clinical workflows. By embracing contextual intelligence, AI can evolve from a rigid tool into a flexible, situational-aware clinical partner.
Summary updated