TL;DR
In high-stakes medical AI, dumping massive amounts of retrieved text into a prompt doesn’t make an LLM smarter—it often distracts the model and overwhelms busy doctors trying to verify the facts. This paper introduces MEGA, a framework that looks inside a frozen LLM's "brain" (its middle-layer hidden states) to measure how much new, decision-critical information a snippet actually provides, then solves a knapsack-style optimization problem to pick the smallest, punchiest set of evidence possible. Less text in, better clinical answers out.
What Problem Does This Paper Address?
When clinicians ask a medical question, a plausible-sounding AI answer isn't enough; they need verifiable, trustworthy citations from clinical guidelines. Standard Retrieval-Augmented Generation (RAG) tries to solve this by fetching the "top-$k$" text chunks that look most similar to the query.
Here is the catch: in dense medical literature, surface-level similarity is a trap. If you ask about first-line therapy for a specific colon cancer mutation, a standard reranker might grab snippets about second-line therapy, or snippets for a different mutation, simply because they share almost all the same medical buzzwords. Furthermore, grabbing a fixed number of chunks ignores redundancy and bloats the context window. As economist Herbert Simon put it, "a wealth of information creates a poverty of attention"—both for the LLM generating the answer and the human doctor reviewing the citations.
The authors reframe medical RAG from a simple ranking task into an NP-hard budgeted subset selection problem: given a strict token budget, how do we find a compact, non-redundant set of evidence that actually drives the clinical decision?
Methods
MEGA (MEdical Evidence Selection with Gain-Aware Subset Optimization) replaces naive top-$k$ retrieval with a four-stage pipeline:
- Sub-query Generation & Hybrid Retrieval (Standard foundation): Complex clinical questions have many moving parts (stage, biomarkers, prior treatments). An LLM breaks the query into targeted sub-queries and keywords, using both lexical (BM25) and dense vector search to build a high-recall candidate pool of atomic snippets.
- Hidden-State Information Gain Scoring / IGS (Novel): Instead of asking a cross-encoder "is this snippet relevant?", MEGA asks a frozen LLM (Qwen3-8B) "does this snippet change how you think about the query?" It compares the mean-pooled hidden states of the LLM's middle layers when reading the query alone ($q$) versus the query plus a candidate snippet ($q \oplus c_i$). No backpropagation is needed—just forward passes measuring four geometric signals:
- Cosine Shift: Does the snippet change the semantic direction of the representation?
- Representation Drift: How large is the Euclidean jump? (Separating brief drug mentions from rich clinical rules).
- Cross-Layer Coherence: Is the shift directionally consistent across adjacent layers, or just noisy local jitter?
- Cross-Layer Information Gradient: Does the angular shift grow stronger as it moves into deeper semantic layers?
- FPTAS Evidence Selector (Novel application): Armed with utility scores from IGS and token costs for each snippet, MEGA formulates a 0/1 Knapsack-style objective that penalizes set size and snippet length under a hard token budget. It solves this using a classic Fully Polynomial-Time Approximation Scheme (FPTAS)—a dynamic programming trick with value-scaling that guarantees a $(1-\epsilon)$-optimal subset efficiently.
- Answer Generation: The winning, compact evidence set is handed to the main LLM backbone to write a citation-grounded response.
Datasets
To evaluate both answer accuracy and whether the exact right sentences were cited, the authors introduce two benchmarks:
- CRC-EvidenceQA (New): Created with two colorectal cancer specialists, containing 200 open-ended clinical questions (100 English, 100 Chinese), split evenly between routine guideline lookups (low-difficulty) and multi-step reasoning cases (high-difficulty).
- Med-EvidenceQA (Adapted): A 2,973-example English benchmark adapted from PubMedQA (1,000 yes/no/maybe questions) and COVID-QA (1,973 extractive QA pairs), preserving sentence-level candidate pools and gold supporting evidence annotations.
Key Insights and Ideas
- Topical relevance $\neq$ decision utility: In tests comparing IGS against a strong 8B reranker, the reranker was slightly better at spotting general topical relevance (0.65 AUROC). Yet when tasked with finding snippets that cover essential clinical key points, the reranker plummeted (0.60 AUROC, 0.42 Spearman $\rho$), whereas hidden-state IGS thrived (0.77 AUROC, 0.66 Spearman $\rho$). Looking at how an LLM's internal representations shift is a remarkably good proxy for genuine knowledge integration.
- Less context yields better answers: Across all benchmarks, feeding the generator fewer tokens improved answer quality. Trimming away "almost-relevant" guideline fluff stops the generator from getting confused by rules meant for adjacent patient subgroups.
Key Results
Tested across three diverse LLM backbones (GPT-4.1, Qwen3.6-35B-A3B, and MiniMax-M2.5-230B) and five medical RAG baselines (including MedRAG and DoctorRAG):
- Big jumps in citation precision: MEGA improved Evidence F1 by 38.8% on average over the second-best baselines across all tasks.
- Higher answer quality with fewer tokens: Answer quality rose by 8.8% on average while using 35.6% fewer evidence tokens (e.g., on PubMedQA, hitting an 8.2 quality score with 644 tokens vs. DoctorRAG's 8.1 with 1,050 tokens).
- Doctor-approved: In a blinded review of 60 CRC cases, human specialists rated MEGA highest in answer quality (4.6/5), evidence sufficiency (4.7/5), and evidence minimality/non-redundancy (4.3/5 vs. $\le$3.6 for all baselines).
Limitations and Future Work
While the main text does not feature a dedicated limitations section, the authors explicitly note an important methodological boundary: hidden-state shifts are operational proxy signals for utility—a growing representation trajectory across layers is not, by itself, proof of factual correctness (which is why grounding in an authoritative corpus remains vital). Additionally, each candidate snippet is scored independently alongside the query before the knapsack solver selects the bundle, and computing IGS requires running forward passes through a separate frozen LLM over the candidate pool, introducing an inference-time trade-off alongside the FPTAS $\epsilon$ parameter. Future extensions are not explicitly discussed in the main text.
Summary updated