Papers › Teaching LLMs to Recommend and Defer in Underrepresented Epilepsy Care

Teaching LLMs to Recommend and Defer in Underrepresented Epilepsy Care

30 Jun 2026arXiv:2606.31036added by Syntology

Shreyas Rajesh, Kartik Sharma, Tonmoy Monsoor, Mehmet Yigit Turali, Richard Idro, Juliana Kayaga, Robert Sebunya, Tracy Tushabe Namata, Jessica Nichole Pasqua, Vwani Roychowdhury, Rajarshi Mazumder

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Specialist epilepsy expertise is scarce in resource-constrained settings, making LLM-based decision support attractive for frontline clinicians managing longitudinal treatment. Such systems must adapt to local prescribing practice and know when to defer. We study this problem in Ugandan pediatric epilepsy care, predicting anti-seizure medication regimens from longitudinal unstructured clinic notes. Standard prompting achieves non-trivial agreement with physician prescriptions, but neurologist review shows that many errors reflect distribution-miscalibrated prescribing defaults rather than failures to parse the local record. We introduce MANANA, a non-parametric prompt-learning framework that learns local prescribing guidance from a small patient-level training set. MANANA converts observed prescription errors into auditable prompt memories, instantiated in single-agent and multi-agent variants, and improves over classical ML models, direct LLM prompting, and prompt-optimization baselines across two independently collected Ugandan cohorts. We further propose Bayesian prompt averaging, which converts the learned prompt trajectory into prescription likelihoods and an uncertainty-based deferral signal. On the independently collected held-out cohort, this improves visit-level top-3 prescription accuracy by 4-8 percentage points over prompt-optimization baselines and enables 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.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2606.31036")

Code

Syntology Ran 16 of 18 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 16 ran with no contract checked.

By repository: found in paper text by Syntology: 18 samples from 1 repository, 16 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

roychowdhuryresearch/Manana found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 16 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

16ran
2unverified

Licence: 18 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from roychowdhuryresearch/Manana. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

coverage_precision roychowdhuryresearch/Manana/manana/bpa/aggregate.py found in paper text by Syntology ran no licence file found · pointer only · 7e43c4229f4b1b4c · report
detect_model roychowdhuryresearch/Manana/manana/evaluate.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 85b0b3fe07bddf05 · report
detect_seed roychowdhuryresearch/Manana/manana/evaluate.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · ad3bb1b5e8bbec2a · report
detect_system roychowdhuryresearch/Manana/manana/evaluate.py found in paper text by Syntology ran no licence file found · pointer only · 70b9aea396807fae · report
drugs_from_regimen roychowdhuryresearch/Manana/manana/multi/run_loop.py found in paper text by Syntology ran no licence file found · pointer only · 93d0a916934d847b · report
get_visit_num roychowdhuryresearch/Manana/manana/multi/run_loop.py found in paper text by Syntology ran no licence file found · pointer only · 87aa595d0e7cd113 · report
import_object roychowdhuryresearch/Manana/manana/config.py found in paper text by Syntology ran no licence file found · pointer only · cf8dd17b2c02fbbf · report
load_config roychowdhuryresearch/Manana/manana/config.py found in paper text by Syntology ran no licence file found · pointer only · 47d1194427ab72e4 · report
load_text roychowdhuryresearch/Manana/manana/ablations/common.py found in paper text by Syntology ran no licence file found · pointer only · 1556f3b2bda9b493 · report
normalize_drugs roychowdhuryresearch/Manana/lib/grader.py found in paper text by Syntology ran no licence file found · pointer only · 0e55f29e4c24898a · report
record_key roychowdhuryresearch/Manana/lib/grader.py found in paper text by Syntology ran no licence file found · pointer only · 768ada3ca578e5fa · report
resolve_config_path roychowdhuryresearch/Manana/manana/config.py found in paper text by Syntology ran no licence file found · pointer only · 44442b79111a8b11 · report
safe_name roychowdhuryresearch/Manana/manana/datasets.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 498d16712e3d8898 · report
sanitize_model_name roychowdhuryresearch/Manana/manana/multi/run_loop.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 56edd3b8f9c8a676 · report
select_rounds roychowdhuryresearch/Manana/manana/bpa/aggregate.py found in paper text by Syntology ran no licence file found · pointer only · f7e6ae602f713e69 · report
visit_num_from_record roychowdhuryresearch/Manana/lib/grader.py found in paper text by Syntology ran no licence file found · pointer only · 9fbf7993a09a894b · report
load_ablation_prompt roychowdhuryresearch/Manana/manana/ablations/common.py found in paper text by Syntology unverified no licence file found · pointer only · 79411a82c5eb9d50 · report
load_rewrite_prompt roychowdhuryresearch/Manana/manana/ablations/common.py found in paper text by Syntology unverified no licence file found · pointer only · 008b4b4c7be0cc84 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2606.31036, was issued in June 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections