When a general language model is turned into a medical or legal assistant, practitioners fine-tune it in stages. They tune first on general instructions, then on domain conversations, then on the target task, and they paste retrieved reference documents into the prompt. Each stage rewrites the same weights that hold the model's general skills. The pasted evidence competes for attention with the user's request in one long sequence. The predictable results are forgetting and confident, unsupported claims. This proposal tests a different arrangement. The pretrained decoder stays frozen, and every domain stage trains only an added side pathway: a gated cross-attention layer, meaning a layer that lets the decoder look up a separately encoded evidence sequence and decide at each generated token how much of that lookup to mix in. Domain specialization then lives in a module that can be removed or inspected. The evidence never shares a sequence with the instruction. The per-token gate value becomes a free signal of whether a token was driven by evidence or by the model's own memory.
In two sentences: train the domain curriculum into a separate evidence-reading pathway instead of into the base model, keeping instruction and evidence in separate input streams. Then test whether this cuts forgetting and unsupported medical claims compared with the standard paste-it-into-the-prompt pipeline, and whether the pathway's mixing gate flags hallucinated spans better than token probabilities do.
Core Claim
Our claim has three parts, each falsifiable. First, a staged curriculum trained only into a gated evidence pathway forgets general ability less than the same curriculum trained with low-rank adapters (LoRA) on the base weights. Second, at equal trainable parameters, keeping the evidence in its own stream produces fewer factual errors than concatenating it into the prompt, especially as the evidence grows longer. Third, the gate's value over a claim span predicts whether that claim is supported by the evidence better than the model's own token confidence. The third part is the one no existing design offers. It is also the part most likely to fail, because a gate trained only for next-token prediction has no obligation to be interpretable.
How This Relates to Prior Work
The evidence-pathway idea comes from dual-source decoders. Enhancing Neural Data-To-Text Generation Models with External Background Knowledge (KBAtt) gives a recurrent decoder two attention heads, one over an infobox table and one over one-hop Wikidata facts. This roughly doubled accuracy on rare-entity nationality inference, from 42% to 80%. That work motivates the stream separation and supplies the basic design. It was trained once, from scratch, on recurrent networks, and never had to survive staged adaptation of a pretrained model. QuickEdit and Enhanced Neural Machine Translation by Learning from Draft show the same parallel cross-attention pattern for drafts. Contextualized Translation of Automatically Segmented Speech argues that parallel combination balances sources more flexibly than chained combination. We follow that choice. Know Thyself, Know Thy User (KSKT) shows that dual streams with token-level fusion weights can work inside a 4B-parameter transformer, outperforming a 72B model on persona benchmarks. That result establishes scale feasibility. KSKT rewrites self-attention, trains on one mixture, and targets persona fidelity rather than facts. We leave self-attention untouched and train in stages.
The nearest hallucination-focused design is MALM. It inserts a graph-attention adapter between the last transformer block and the output layer of a frozen model, routing input, retrieved knowledge, and generated context. It reports relative gains on TruthfulQA and HaluEval and beats SELF-RAG and RECOMP by 17.57% to 37.49% ROUGE-1. MALM is our strongest architectural competitor, and it differs in three ways. It acts at a single point after the final layer rather than inside the decoder. It is trained once on general data, with no domain curriculum and no forgetting measurements. It reports overlap metrics rather than any per-claim grounding signal.
Several papers on staged adaptation supply the training recipe. QCRI's IWSLT'16 systems and Neural Machine Translation Training in a Multi-Domain Scenario show that ordering stages from general to specific beats pooling. Don't Stop Pretraining shows that combining domain-level and task-level continued pretraining works best. ChatDoctor, MoZIP and TALLRec apply this recipe to large models with a single-stream decoder and prompt-pasted context. ChatDoctor's pipeline is the one we copy as our main baseline. One paper constrains the design. LoRA vs Full Fine-tuning: An Illusion of Equivalence finds that LoRA introduces "intruder" singular directions unrelated to the pretrained weights, and that these directions accumulate across sequential tasks and drive forgetting. This finding is why we keep the base frozen. It also gives us a diagnostic to measure.
Two papers motivate the evaluation. Evaluating large language models on medical evidence summarization finds that giving ChatGPT the full abstract instead of only the main results increased factual errors (the "more is less" effect). It also finds that models turn tentative findings into definitive ones, and that ROUGE tracks clinical quality poorly. Error Detection for PET/CT Radiology Reports shows that a 15M-parameter staged-trained BERT detects report contradictions as well as a fine-tuned 70B model, at 94.4% balanced accuracy. That result cuts against our third claim, because a cheap separate detector may beat any built-in gate. We treat it as a baseline rather than ignoring it.
Research Program
The model uses a 7B-class pretrained decoder, kept frozen. In every k-th layer we insert a block that attends from the decoder state $h_t$ (hidden state at generation step $t$) to an evidence memory $E$. The memory is produced by a small trainable encoder over the retrieved documents. The block is combined through a learned scalar gate per token and layer:
$$h'_t = h_t + g_t \cdot \mathrm{CrossAttn}(h_t, E), \qquad g_t = \sigma(w^\top h_t + b),$$
where $\sigma$ is the logistic function and $w, b$ are trained. The gate starts near zero, so the model begins identical to the base. The grounding score of a generated claim is the mean of $g_t$ over the claim's tokens and the selected layers.
The curriculum mirrors ChatDoctor's. Stage one tunes on 52k general Alpaca instructions, with retrieved Wikipedia passages fed to the evidence stream when available and an empty memory otherwise. Stage two tunes on HealthCareMagic-100k dialogues, with retrieved MedlinePlus and Wikipedia evidence in the stream. Stage three tunes on evidence-to-summary pairs, where the source text goes to the evidence stream and the instruction goes to the main stream. Only the cross-attention blocks, gates and evidence encoder are trained. A secondary run repeats stages two and three for intellectual property. On PatentMatch, the query patent goes in the main stream and the candidate patents go in the evidence stream. This tests whether the benefit extends to long technical inputs, where single-stream 7B models are near chance.
We will analyze three things. We measure forgetting after each stage. We compute the intruder-direction spectrum of every adapted weight, following the singular-vector comparison of the LoRA paper. And, as the central check, we compute how well the grounding score separates supported from unsupported claims in generated summaries.
Baselines
The naive reference point is the frozen base model with retrieved evidence pasted into the prompt and no tuning. It shows how much any training buys. The strongest existing pipeline is ChatDoctor's recipe reproduced on the same base: general instructions, then HealthCareMagic dialogues, then the summarization stage, with LoRA on the base weights and evidence concatenated into the prompt. On HealthCareMagic, ChatDoctor reports BERTScore F1 of 0.8446 against 0.8406 for ChatGPT. We will reproduce this pipeline ourselves rather than compare to the published number, because base model and retrieval differ. Beating it means equal or better task quality with fewer clinician-judged factual errors and less forgetting. A BERTScore gain alone will not count, given the weak link between overlap metrics and clinical quality noted by Tang et al..
The strongest architectural competitor is MALM, retrained on the same retrieved evidence. MALM reports only relative gains, such as 5.10% ROUGE-2 over base LLaMA-2 on HaluEval. No absolute number was found on Lacuna for MALM on the medical tasks here, so it must be rerun. On the IP side, MoZIP reports PatentMatch accuracy of 27.4% for MoZi and 38.8% for ChatGPT, against a 25% random-guess baseline. A 7B model clearly above 27.4% under the evidence-stream layout would be meaningful. For hallucination detection, the reference figure is the HaluEval report that ChatGPT's QA detection accuracy rises from 62.59% to 76.83% with retrieved knowledge (HaluEval).
All trained systems get the same data, the same retrieval outputs, the same number of trainable parameters (LoRA rank chosen to match the added pathway), and the same hyperparameter search budget. Three ablations isolate the ingredients. The first is the evidence pathway trained on one pooled mixture rather than in stages, to test the curriculum. The second is the gate replaced by a constant, to test whether a learned gate matters for either accuracy or detection. The third is the evidence pathway with the base also unfrozen via LoRA, to test whether freezing is what prevents forgetting.
Why not just…?
Why not just use the same curriculum with evidence concatenated into the prompt, as ChatDoctor does? This is the most serious threat. Fine-tuning on pasted evidence may teach a single-stream model to use long contexts well enough. The "more is less" effect in Tang et al. was observed for an untuned commercial model, not for one trained on evidence-conditioned data. Our matched-parameter comparison settles this directly. We also vary evidence length on the Cochrane reviews, from main results only to the full abstract. If the concatenation baseline degrades as little as the evidence stream does, the second claim fails and we will say so.
Why not just freeze the base and train a fresh LoRA adapter per stage? That also avoids accumulating intruder directions in shared weights, so the forgetting benefit is not unique to our design. We include frozen-base stacked adapters with concatenated evidence as a second fair comparison. What it cannot provide is input separation or a per-token gate. If it matches us on forgetting and factuality, the remaining contribution reduces to the gate signal.
Why not just prompt with less, curated evidence? Tang et al. found their best configuration fed only objectives and main results, which produced the fewest harmful summaries (under 10%). Curation helps when someone knows which section matters. It fails on dialogue and patent matching, where relevant evidence is not pre-sectioned. We include a curated-prompt arm on Cochrane, where curation is possible, as an upper reference for the concatenation approach.
Why not just train a small separate detector to flag hallucinated claims? The PET/CT study shows that a 15M-parameter staged-trained classifier can rival a 70B model on contradiction detection. A similar detector, trained on synthetic perturbations of our summaries, may well beat the gate at flagging errors. We train exactly such a detector and compare detection quality. If it wins clearly, the gate claim fails. The evidence pathway would then be justified only by forgetting and accuracy, and that is an honest outcome.
Proposed Experiments
For general forgetting, we evaluate TruthfulQA (truthfulness judged by the benchmark's automated judge), where the best model in the original paper reached 58% against roughly 94% for humans (TruthfulQA). We also evaluate the HaluEval general-query split and held-out general instructions after each stage. For domain factuality, we generate summaries of the 53 Cochrane reviews and have clinicians annotate errors using Tang et al.'s categories: certainty inflation, contradiction, population/intervention/outcome attribute errors, and fabrication. We also report HealthCareMagic dialogue quality, plus PatentMatch accuracy for the IP run.
The decisive checks are three. Forgetting: after stage three, the evidence pathway should retain general-benchmark scores within noise of the base model while the LoRA pipeline drops, and its weight spectrum should show no intruder directions in the base weights by construction. Long-context robustness: the gap in error rate between full-abstract and main-results input on Cochrane should be smaller for the evidence stream than for matched concatenation. Gate validity: on annotated claims, the area under the ROC curve for the grounding score separating supported from unsupported claims should exceed both mean token log-probability and the constant-gate ablation, and should be competitive with the trained small detector. Claims marked certain by the model but low in gate value should be enriched for certainty-inflation errors. If gate validity fails while the first two checks pass, the result is a cleaner adaptation recipe. If all three fail, the separate stream offers nothing that tuning on pasted evidence does not.
References
- Enhancing Neural Data-To-Text Generation Models with External Background Knowledge
- QuickEdit: Editing Text & Translations by Crossing Words Out
- Enhanced neural machine translation by learning from draft
- Contextualized Translation of Automatically Segmented Speech
- Know Thyself, Know Thy User: Intrinsic Dual-Perspective Reasoning for Role-Playing LLMs
- MALM: A Multi-Information Adapter for Large Language Models to Mitigate Hallucination
- QCRI's Machine Translation Systems for IWSLT'16
- Neural Machine Translation Training in a Multi-Domain Scenario
- Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
- ChatDoctor: A Medical Chat Model Fine-Tuned on a Large Language Model Meta-AI (LLaMA) Using Medical Domain Knowledge
- MoZIP: A Multilingual Benchmark to Evaluate Large Language Models in Intellectual Property
- TALLRec: An Effective and Efficient Tuning Framework to Align Large Language Model with Recommendation
- LoRA vs Full Fine-tuning: An Illusion of Equivalence
- Evaluating large language models on medical evidence summarization
- Error Detection for PET/CT Radiology Reports: Domain-Specific vs Large Language Models
- HaluEval: A Large-Scale Hallucination Evaluation Benchmark for Large Language Models
- TruthfulQA: Measuring How Models Mimic Human Falsehoods