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 View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 18 code samples harvested from 1 repository linked to this paper: 16 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 3 honoured, 0 violated, 1 with no contract checked; 12 where Syntology's instrument failed) · 2 unverified. Where Syntology's instrument failed: 12 where our contract draft was wrong; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 18 samples from 1 repository, 16 ran (4 with no instrument failure; 12 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

roychowdhuryresearch/Manana found in paper text by SyntologySyntology: 18 samples, 16 ran (12 instrument-failed) · 2 unverified 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 (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 3 honoured, 0 violated, 1 with no contract checked; 12 where Syntology's instrument failed) · 2 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

3ran · honoured contract
12ran · our draft was wrong
1ran
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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

roychowdhuryresearch/Manana found in paper text by Syntology 18 samples, 16 ran (12 instrument-failed) · 2 unverified
coverage_precision manana/bpa/aggregate.py ran · our draft was wrong no licence file found · pointer only · 7e43c4229f4b1b4c · report fixture: signature cases:list/1/dict, confidence_key:str/0/str, correct_key:str/0/str · returned list · level recorded 2026-09-24
detect_model manana/evaluate.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 85b0b3fe07bddf05 · report fixture: signature run_dir:str/0/str · returned str · level recorded 2026-09-24
detect_seed manana/evaluate.py ran · honoured contract fingerprinted no licence file found · pointer only · ad3bb1b5e8bbec2a · report fixture: signature run_dir:str/0/str · returned int · level recorded 2026-09-24
detect_system manana/evaluate.py ran · our draft was wrong no licence file found · pointer only · 70b9aea396807fae · report fixture: signature run_dir:str/0/str · returned str · level recorded 2026-09-24
drugs_from_regimen manana/multi/run_loop.py ran · our draft was wrong no licence file found · pointer only · 93d0a916934d847b · report fixture: signature regimen:dict/0/?, option_key:str/0/str · returned set · level recorded 2026-09-24
get_visit_num manana/multi/run_loop.py ran · honoured contract no licence file found · pointer only · 87aa595d0e7cd113 · report fixture: signature case:MockCase/0/? · returned int · level recorded 2026-09-24
import_object manana/config.py ran · our draft was wrong no licence file found · pointer only · cf8dd17b2c02fbbf · report fixture: signature spec:str/0/str · returned function · level recorded 2026-09-24
load_config in 389 papers manana/config.py ran · our draft was wrong no licence file found · pointer only · 47d1194427ab72e4 · report fixture: signature path:str/0/str · returned dict · level recorded 2026-09-24
load_text in 17 papers manana/ablations/common.py ran · our draft was wrong no licence file found · pointer only · 1556f3b2bda9b493 · report fixture: signature path:str/0/str · returned str · level recorded 2026-09-24
normalize_drugs lib/grader.py ran · our draft was wrong no licence file found · pointer only · 0e55f29e4c24898a · report fixture: signature value:dict/0/? · returned list · level recorded 2026-09-24
record_key lib/grader.py ran · our draft was wrong no licence file found · pointer only · 768ada3ca578e5fa · report fixture: signature record:dict/0/? · returned str · level recorded 2026-09-24
resolve_config_path manana/config.py ran · our draft was wrong no licence file found · pointer only · 44442b79111a8b11 · report fixture: signature config:dict/0/?, path:str/0/str · returned str · level recorded 2026-09-24
safe_name in 8 papers manana/datasets.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 498d16712e3d8898 · report fixture: signature value:str/0/str · returned str · level recorded 2026-09-24
sanitize_model_name in 5 papers manana/multi/run_loop.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 56edd3b8f9c8a676 · report fixture: signature model:str/0/str · returned str · level recorded 2026-09-24
select_rounds manana/bpa/aggregate.py ran no licence file found · pointer only · f7e6ae602f713e69 · report fixture: signature progression:list/1/dict, num:int/0/int, weighting:str/0/str, tau:float/0/float · returned list · level recorded 2026-09-24
visit_num_from_record lib/grader.py ran · honoured contract no licence file found · pointer only · 9fbf7993a09a894b · report fixture: signature record:dict/0/? · returned int · level recorded 2026-09-24
load_ablation_prompt manana/ablations/common.py unverified no licence file found · pointer only · 79411a82c5eb9d50 · report
load_rewrite_prompt manana/ablations/common.py 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