TL;DR
Searching hospital databases for similar patient cases is tough because clinical notes are messy, multi-dimensional, and almost always missing critical details—like a mystery novel with torn-out pages. PatientSearch-SE solves this by treating clinical search like an experienced medical detective: it separates solid facts from missing info, forms educated hypotheses to fill in the blanks, and remembers which search strategies worked for past patients. Best of all, it continuously improves its search game using external memory, without ever needing expensive model weight updates.
What Problem Does This Paper Address?
Imagine a doctor querying an Electronic Health Record (EHR) database with a brief note: "45-year-old female, persistent cough for two weeks, taking an ACE inhibitor, no fever." Finding prior patients with the same underlying disease can guide diagnosis and treatment.
Standard search engines—even modern dense retrievers and biomedical language models—typically flatten this query into a single vector or bag of words. That creates three headaches:
- Apples-to-oranges data: Lab numbers, timelines, medication names, and narrative outcomes shouldn't all be matched the exact same way.
- Missing pieces: Real queries are underspecified. The doctor might omit lab results or the diagnosis itself. Literal matching penalizes records that fill in those blanks rather than just echoing the query's gaps.
- Search amnesia: Traditional systems treat every search like Groundhog Day. If a particular combination of symptom-matching and lab-filtering worked brilliantly five minutes ago, a static pipeline forgets that lesson immediately.
Methods
The authors introduce PatientSearch-SE (built on Qwen3 backbones), a self-evolving agentic framework divided into three tightly coupled modules:
- Sufficiency-Aware Planner: Instead of blindly encoding text, the planner parses a query into seven clinical dimensions: demographics, symptoms, labs, diagnosis, treatment, outcome, and timeline. Crucially, it scores each dimension as information-sufficient or insufficient. Sufficient fields get matched directly. Insufficient fields trigger targeted hypothesis generation—using the solid facts to guess plausible missing pieces (e.g., inferring candidate diagnoses from symptoms and meds).
- Hierarchical Tool Orchestration (Searcher): Different data types get matched with specialized tools—numeric matchers for labs/timelines, medical-concept matchers for symptoms/diagnoses, and text matchers for treatments/outcomes. The searcher builds a two-stage execution graph: gathering candidate cases per dimension, then re-ranking the pooled candidates by dynamically weighing direct evidence against hypothesized cross-field compatibility.
- Trajectory Memory Consolidation: How does the agent learn without gradient descent? After a search finishes, an evaluator scores the trajectory based on disease-level accuracy and six process probes (like planning completeness). Winning trajectories are stripped of patient-identifying details or leaked answers and distilled into long-term external memory as disease cards (priors for future hypotheses) and strategy templates (priors for tool selection).
Datasets
The authors evaluate their system on subsets of two established clinical benchmarks (no new datasets are introduced, though queries are formatted as fixed retrospective descriptions):
- PMC-Patients: Curated clinical case reports from biomedical literature, grounded in MeSH disease categories.
- MIMIC-IV: Real-world, noisier retrospective hospital EHR discharge summaries, grounded in ICD diagnosis codes.
Key Insights and Ideas
- Know what you don't know: Explicitly modeling information sufficiency as a binary control switch prevents the retrieval engine from treating missing fields as hard negative constraints or hallucinating wildly when facts are already clear.
- Experience without backpropagation: By consolidating search histories into "disease cards" and "strategy templates" with strict merge/delete rules, the system adapts across cases while keeping memory growth sublinear and lookup latency tiny.
- Bad retrieval is worse than no retrieval: In downstream diagnosis prediction, feeding an LLM weak retrieved cases (like standard BM25 results on noisy hospital records) actually dropped accuracy below zero-shot guessing—highlighting why precision clinical retrieval matters.
Key Results
- Beating the Baselines: Across both datasets, the 30B PatientSearch-SE model outperforms sparse (BM25), biomedical dense (ClinicalBERT, PubMedBERT), reasoning-enhanced (DeepSeek 671B + dense), and agentic baselines (Search-o1, Deep-DxSearch). Relative to the strongest external baseline (Search-o1), it boosts Mean Reciprocal Rank (MRR) by 0.071 on PMC-Patients (to 0.895) and 0.009 on MIMIC-IV (to 0.928), while improving Recall@1000 by 0.077 and 0.046.
- Every Module Pulls Its Weight: As shown in the ablation study above, stripping away trajectory memory causes the steepest drop (Recall@10 falls by 0.053), followed closely by removing tool orchestration (-0.047) and sufficiency planning (-0.042).
- Memory Scales Gracefully: Over 1,000 processed cases, the primary retrieval score ($R_{final}$) climbs from 0.783 (cold start) to 0.895. Memory settles at a compact 403 disease cards and 128 templates, adding less than 50 ms of lookup overhead per query.
- Downstream RAG Boost: When Explicit diagnoses are masked out and a frozen Qwen3-8B model must predict the disease using the top-3 retrieved cases, PatientSearch-SE reaches 89.3% accuracy on PMC-Patients and 86.3% on MIMIC-IV—outperforming the next-best Reasoning-RAG baseline by 5.6 and 8.1 percentage points, respectively.
Limitations and Future Work
The authors are admirably candid about what this system doesn't do yet:
- Disease-level ≠ Full Clinical Equivalence: Matching ICD or MeSH disease families doesn't guarantee two patients had identical longitudinal management, treatment responses, or outcomes.
- Heuristic Process Probes: The six trajectory quality indicators are author-designed engineering rubrics, not clinically validated reasoning scores.
- Memory & Backbone Scope: All tests used Qwen3 models, so seamless transfer to other LLMs remains a design goal rather than an empirically proven fact. Dealing with cold-start hiccups, noisy knowledge distillation, and deployment-scale memory compression are prime targets for future work.
Summary updated