Manana Teaching LLMs to Recommend and Defer in Underrepresented Epilepsy Care

Accepted at NeurIPS 2026

Shreyas Rajesh1✱ Kartik Sharma1✱ Tonmoy Monsoor1 Mehmet Yigit Turali1 Richard Idro3 Juliana Kayaga3 Robert Sebunya4 Tracy Tushabe Namata3 Jessica Nichole Pasqua2 Vwani Roychowdhury1 Rajarshi Mazumder2

1Electrical and Computer Engineering, UCLA 2Neurology, UCLA 3Makerere University 4St. Francis Hospital Nsambya

✱Co-first authors

99%
top-1 agreement with physicians on the most confident 25% of visits (Cohort B)
95%
top-1 agreement on the most confident 50%; the rest are deferred (Cohort B)
+38.8pts
EM@3 over the unadapted base prompt (Cohort A, paired 95% CI [33.6, 44.0])
50
training patients. No weight updates; tested on 2 Ugandan cohorts (699 patients, 2,549 visits)

Abstract

Specialist epilepsy expertise is scarce in resource-constrained settings, creating a pressing need for decision-support tools that help frontline clinicians manage longitudinal treatment. Such systems must adapt to local prescribing practices and recognize when specialist review is needed. Most public medical AI benchmarks focus on high-income clinical settings, leaving prescribing practices, medication availability, and follow-up patterns in low-resource contexts largely unrepresented. We study this problem through a multidisciplinary collaboration focused on pediatric epilepsy care in Uganda. The task is to predict anti-seizure medication regimens from longitudinal unstructured notes collected by local clinicians across serial visits. General-purpose language models achieve non-trivial agreement with physician prescriptions, but neurologists' review of model reasoning traces shows that their errors reflect Western prescribing defaults that do not account for local clinical practices. We introduce Manana, a non-parametric prompt-learning framework that learns how to reason about local prescribing decisions from a small patient-level training set. Manana turns observed prescription errors into an auditable prompt memory, instantiated in single-agent and multi-agent variants, and outperforms classical ML models, direct LLM prompting, and prompt-optimization baselines across two independently collected Ugandan cohorts. The sequence of prompts produced during learning also provides a basis for estimating uncertainty. We exploit this through Bayesian prompt averaging (BPA), which combines predictions across the learned prompt trajectory to produce prescription likelihoods and a deferral signal. Using the same Manana-Multi trajectory, BPA improves top-1 physician-regimen agreement from 66% to 70% on Cohort A and from 73% to 75% on Cohort B while preserving top-3 coverage. More consequentially, it enables clinically meaningful selective prediction: the system can auto-handle the most confident half of cases at 95% precision, or the most confident quarter at 99% precision, while deferring lower-confidence cases for specialist review. These results suggest a path toward locally adapted clinical LLM systems that learn from limited site-specific data and reserve scarce specialist attention for the cases where uncertainty is highest.

How Manana learns. Commit only what recurs.

A Predictor, an Inspector, and an Architect turn prescription errors into readable memory, one recurring lesson at a time. It plays on its own; drag the timeline to move through it.

Manana: Predictor, Inspector, evidence buffer, Architect, memory, and Bayesian prompt averaging LEARNING · 50 patients, 15 rounds next round Clinic note+ visit history Predictoruses current memory regimen 1 regimen 2 regimen 3 physician's Rx Inspectorwrites one lesson Evidence buffer lesson · v12 lesson · v31 lesson · v7 lesson · v44 lesson · v58 lesson · v9 ✓ 2 visits agree → commit Architectcommits what recurs Memory rule 1 · rule 2+ rule 3 specialists DEPLOYMENT · new patient m₁ m₂ m₃ m₄ m₅ BPAweights by evidence regimen 10.80 regimen 20.15 regimen 30.05 Recommend Defer to specialist If confidence is high, recommend; otherwise defer to a specialist.
1 / 6
1

Read the visit

The Predictor reads the current clinic note together with earlier notes and earlier prescriptions.

2

Propose three regimens

It proposes three candidate regimens over the clinic's 10 anti-seizure medications, conditioned on the current memory.

3

Check against the physician

The Inspector sees what the physician actually prescribed, diagnoses the miss, and writes one candidate lesson grounded in the note.

4

Collect evidence

Lessons go into an append-only evidence buffer, tagged with the visit they came from. Nothing changes the prompt yet.

5

Commit only what recurs

The Architect adds a lesson to memory only when at least two different visits support it. Single adds one rule per round; Multi spawns, edits, or prunes specialist agents. 15 rounds, 50 patients, no weight updates.

6

Deploy with BPA

Every memory state from learning becomes a voter. Bayesian prompt averaging weights them by validation evidence and merges their candidates into regimen probabilities: confident cases are recommended, the rest are deferred.

From a clinic in Uganda to a recommendation.

Pediatric epilepsy care in Kampala, where specialist neurologists are scarce. Manana learns local prescribing from clinic notes, then decides when to recommend and when to ask a specialist.

Boundaries: Natural Earth
Kampala, Uganda
2independently collected cohorts
699pediatric patients
2,549clinic visits with notes
10anti-seizure medications in the action space

Clinical partners: Makerere University and St. Francis Hospital Nsambya. Notes are free text written by local clinicians across serial visits.

Watch one visit go through Manana

Illustrative walkthrough. Both visits are synthetic and written for this page. Specialist names come from Manana-Multi's learned memory; their outputs and the probabilities are hand-written to show the workflow.

What it learns

Same supervision, very different artifacts.

Real learned prompts from each method, copied verbatim from the repository.

Learned specialist population

Specialists, not prescribers

Five agents that each surface one clinical signal and never prescribe.

anti-seizure medication
Explicit_Drug_Directive_Agent

Identify every antiepileptic drug mentioned in the current or prior regimen. For each drug, determine whether the clinician explicitly states to continue, increase, decrease, stop, add, or start that drug. If the note contains an explicit continuation directive with no mention of new or discontinued drugs, state that the regimen should be maintained unchanged and do not suggest adjuncts or stops.

Formulary_Adjunct_Agent

Act as a clinical pharmacology specialist aware of the clinic's local formulary and cost considerations. When the note describes uncontrolled seizures despite a first-line antiepileptic and mentions formulary or affordability constraints, assess whether carbamazepine is listed as a recommended adjunct in this setting.

Seizure_Semiology_Agent

Identify whether the note describes focal, generalized, multifocal, or mixed seizures. Note focal components even when the overall diagnosis is multifocal or generalized, and state which seizure-type signals may influence antiepileptic selection.

Carbamazepine_Consideration_Agent

Evaluate carbamazepine or oxcarbazepine as a first-line or adjunct antiepileptic. Examine seizure type, prior drug exposure, local formulary or cost constraints, contraindications, and any statement that a new AED was initiated.

EEG_Broad_Spectrum_Agent

Scan EEG, neuroimaging, and cerebral dysfunction findings. If they indicate generalized, mixed, or diffuse seizure pathology, surface a signal that broad-spectrum antiepileptic coverage such as valproate should be considered.

Results

Trained on Cohort A. Holds up on Cohort B.

Two independently collected Ugandan pediatric epilepsy cohorts: 699 patients, 2,549 visits. EM@3 means one of the three proposed regimens exactly matches the physician's prescription.

EM@3 (%), mean of 5 seeds · selected baselines; full table in the paper
MonotherapyPolytherapy
MethodVisit 1Visit 3Visit 1Visit 3

Recommend or defer

Act on the confident cases. Defer the rest.

BPA gives every visit a confidence score. Pick how many cases the system handles; the rest go to a specialist.

Cohort
Operating point (precision · coverage)

From Table 3 of the paper (Manana-Multi, held-out test sets). Thresholds are retrospective.

95%
top-1 agreement with the physician on visits the system handles
50%
of visits handled; the rest go to specialist review

Manana-MultiManana-Singleselected operating point

Is the confidence honest?

Binned BPA confidence against how often the top regimen matched the physician. Points near the diagonal mean the score can be trusted.

Cohort A
Cohort B
Manana-MultiManana-Singleperfect calibration

More results

It holds beyond the main setting.

MIMIC-IV

Works on public US hospital data

Manana-Multi
47.3
Base Prompt
36.0
TextGrad
32.7
ExpeL
28.7
EM@3 (%), held-out test split
Medical LLMs

Beats medical-tuned models

Manana-Multi
72.6
OpenBio-70B
62.3
MedGemma-27B
54.5
HuatuoGPT-72B
42.9
EM@3 (%), Cohort A polytherapy, visit 3
120B → 20B

Learned memory transfers to a smaller model

Manana 120B→20B
72.5
TextGrad 120B→20B
68.3
Manana native 20B
66.1
EM@3 (%), Cohort A visit 1
vs. Consilium

Matches a doctor-designed council

Manana + BPA
92.8
Consilium
86.8
Single-agent
71.8
EM@3 (%), Cohort B visit 3

Results measure agreement with local physicians, not clinical outcomes. Not validated for autonomous prescribing.

Citation

BibTeX

@inproceedings{rajesh2026manana,
  title     = {Teaching {LLMs} to Recommend and Defer in Underrepresented Epilepsy Care},
  author    = {Rajesh, Shreyas and Sharma, Kartik and Monsoor, Tonmoy and
               Turali, Mehmet Yigit and Idro, Richard and Kayaga, Juliana and
               Sebunya, Robert and Namata, Tracy Tushabe and
               Pasqua, Jessica Nichole and Roychowdhury, Vwani and
               Mazumder, Rajarshi},
  booktitle = {Advances in Neural Information Processing Systems},
  year      = {2026},
  eprint    = {2606.31036},
  archivePrefix = {arXiv},
  url       = {https://arxiv.org/abs/2606.31036}
}