{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2606-31036","title":"Teaching LLMs to Recommend and Defer in Underrepresented Epilepsy Care","arxiv_id":"2606.31036","date":"2026-06-30","proceeding":null,"authors":["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"],"abstract":"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.","url_abs":"https://arxiv.org/abs/2606.31036","url_pdf":"https://arxiv.org/pdf/2606.31036","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2606.31036","atlas_url":"https://app.syntology.ai/?focus=2606.31036","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2606.31036"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/roychowdhuryresearch/Manana","reach":null}],"summary":{"ran":16,"unverified":2},"by_repo_kind":{"found_in_text":{"samples":18,"ran":16,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":18,"samples":[{"code_sha256_prefix":"7e43c4229f4b1b4c","entry":"coverage_precision","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"manana/bpa/aggregate.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/manana/bpa/aggregate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7e43c4229f4b1b4c"}},{"code_sha256_prefix":"85b0b3fe07bddf05","entry":"detect_model","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"manana/evaluate.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/manana/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"85b0b3fe07bddf05"}},{"code_sha256_prefix":"ad3bb1b5e8bbec2a","entry":"detect_seed","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"manana/evaluate.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/manana/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ad3bb1b5e8bbec2a"}},{"code_sha256_prefix":"70b9aea396807fae","entry":"detect_system","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"manana/evaluate.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/manana/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"70b9aea396807fae"}},{"code_sha256_prefix":"93d0a916934d847b","entry":"drugs_from_regimen","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"manana/multi/run_loop.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/manana/multi/run_loop.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"93d0a916934d847b"}},{"code_sha256_prefix":"87aa595d0e7cd113","entry":"get_visit_num","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"manana/multi/run_loop.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/manana/multi/run_loop.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"87aa595d0e7cd113"}},{"code_sha256_prefix":"cf8dd17b2c02fbbf","entry":"import_object","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"manana/config.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/manana/config.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cf8dd17b2c02fbbf"}},{"code_sha256_prefix":"47d1194427ab72e4","entry":"load_config","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"manana/config.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/manana/config.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"47d1194427ab72e4"}},{"code_sha256_prefix":"1556f3b2bda9b493","entry":"load_text","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"manana/ablations/common.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/manana/ablations/common.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1556f3b2bda9b493"}},{"code_sha256_prefix":"0e55f29e4c24898a","entry":"normalize_drugs","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"lib/grader.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/lib/grader.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0e55f29e4c24898a"}},{"code_sha256_prefix":"768ada3ca578e5fa","entry":"record_key","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"lib/grader.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/lib/grader.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"768ada3ca578e5fa"}},{"code_sha256_prefix":"44442b79111a8b11","entry":"resolve_config_path","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"manana/config.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/manana/config.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"44442b79111a8b11"}},{"code_sha256_prefix":"498d16712e3d8898","entry":"safe_name","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"manana/datasets.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/manana/datasets.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"498d16712e3d8898"}},{"code_sha256_prefix":"56edd3b8f9c8a676","entry":"sanitize_model_name","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"manana/multi/run_loop.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/manana/multi/run_loop.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"56edd3b8f9c8a676"}},{"code_sha256_prefix":"f7e6ae602f713e69","entry":"select_rounds","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"manana/bpa/aggregate.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/manana/bpa/aggregate.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f7e6ae602f713e69"}},{"code_sha256_prefix":"9fbf7993a09a894b","entry":"visit_num_from_record","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"lib/grader.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/lib/grader.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9fbf7993a09a894b"}},{"code_sha256_prefix":"79411a82c5eb9d50","entry":"load_ablation_prompt","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"manana/ablations/common.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/manana/ablations/common.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"79411a82c5eb9d50"}},{"code_sha256_prefix":"008b4b4c7be0cc84","entry":"load_rewrite_prompt","repo":"roychowdhuryresearch/Manana","repo_kind":"found_in_text","path":"manana/ablations/common.py","file_url":"https://github.com/roychowdhuryresearch/Manana/blob/HEAD/manana/ablations/common.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"008b4b4c7be0cc84"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,885 of the 9,623 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9623,"papers_checked":6885},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}