Summarization and retrieval-grounded training data contain many reference outputs with facts that the source document never states. In Gigaword, roughly 35% of reference summaries contain hallucinated facts (Kang et al.). A model fine-tuned to imitate these references learns to make things up. The standard defence, loss truncation, drops the training tokens the model finds hardest to predict. But "hard to predict" describes two very different kinds of token. Some are unsupported inventions. Others are rare names, numbers, and technical terms that the source does contain. Dropping both removes exactly the facts the model most needs to learn to copy.
We propose a cheap way to separate the two. For each reference token, compare how well the model predicts it with the source document present and with the document removed. If adding the document makes the token much more likely, the token is grounded, even when it is rare. If the token stays unlikely with the document present, it is unsupported. We then train in three ways according to this signal. Grounded tokens train a lightweight copy head, a small output component that lets the model reproduce a word directly from the input. Unsupported tokens are dropped. Ordinary tokens are trained normally. At inference the model decodes in a single forward pass. The comparison with and without context happens only during training, so its cost is paid once rather than at every generated token.
Core Claim
The claim has two parts. First, a contrastive "context gain" score is a better filter for noisy references than raw token loss. Raw loss tells you how surprising a token is. Context gain tells you whether the source explains it. Second, the same score can supervise a pointer-generator copy gate. A pointer-generator mixes "generate from the vocabulary" with "copy a token from the input" using a learned probability. Supervising that probability with context gain moves the benefit of context-aware decoding into the trained weights, so it no longer needs a second forward pass at test time.
The underlying logic comes from data selection. Moore and Lewis showed that scoring text by one model's cross-entropy favours generic text. Scoring by the difference between an in-domain model and a background model isolates text that is specific to the domain. We apply the same reasoning to individual target tokens in grounded generation, with one change. The "background model" is the same network with the source document deleted from its input. This means no separately curated reference model is needed.
Method
Let $c$ be the source document, $x$ the instruction, and $y_{<t}$ the reference prefix. Two quantities are computed for each reference token $y_t$. The first is its loss with context:
$$\ell_t = -\log p_\theta(y_t \mid c, x, y_{<t}).$$
The second is its context gain, the improvement in log-probability from adding the document:
$$g_t = \log p_\theta(y_t \mid c, x, y_{<t}) - \log p_\theta(y_t \mid x, y_{<t}).$$
Both use a model $\theta$ that has been warm-started on the task for a short period.
The warm-start length is chosen deliberately. Goyal et al. find that summarizers learn to copy within the first 10–30% of fine-tuning and only later absorb reference hallucinations. A model scored at the end of that early window should therefore already reward grounded tokens, while not yet having memorized the unsupported ones.
The two quantities sort tokens into four regions:
- Low $\ell_t$: easy tokens, mostly function words and generic phrasing. They are trained normally through the vocabulary path.
- High $\ell_t$, high $g_t$: hard tokens that the source explains, such as rare entities, numbers, and domain terms. They are kept, and the copy gate is pushed towards copying them whenever they appear in $c$.
- High $\ell_t$, $g_t \le 0$: tokens that the source does not explain. Their loss is set to zero.
- High $\ell_t$, $0 < g_t <$ threshold: tokens the source explains only weakly. They receive a down-weighted loss.
Thresholds are set as running quantiles, following Kang et al..
The copy head follows the mixture of See et al., retrofitted onto a decoder-only model. The gate is a small projection of the final hidden state. The copy distribution comes from a learned attention over source positions. Liu et al. show that a copy layer can be added with fewer than 1,600 parameters, so the added capacity is negligible. The gate receives an auxiliary binary cross-entropy target equal to a squashed $g_t$ for tokens that appear in the source.
Gate labels can be smoothed across adjacent tokens that come from the same contiguous source span. This is our response to span fragmentation, the problem of copying only part of a multi-word entity. It is a soft alternative to the hard tag masks of BioCopy and the parser pipeline of EDUCopy.
Research Program
We build three things and analyse each.
The first is the scoring pass. It requires one extra context-free forward pass per training example, computed once after warm-up and refreshed at one or two checkpoints. The analysis question is whether $g_t$ actually separates annotated hallucinated reference spans from grounded rare tokens better than $\ell_t$ does. We will test this on XSum and Gigaword references that we annotate at the span level.
The second is the training recipe on decoder-only 7B models (LLaMA2-7B and Qwen1.5-7B, the families used by LargePiG). We fine-tune on XSum, CNN/DailyMail, and Gigaword, and compare against the baselines below.
The third is a stress test under knowledge conflict. Here the source deliberately contradicts what the model memorized during pretraining. This tests whether a gate trained to copy carries over to cases where copying fights the model's prior. Such cases are the "stubbornness" failure documented by CAD.
Baselines
Plain fine-tuning. The naive reference point is standard maximum-likelihood fine-tuning of the same 7B model on the same data, without a copy head or filtering. It shows how much hallucination the references themselves teach.
Token-level loss truncation. The strongest training-time competitor is the +Factuality method of Goyal et al.. It drops high-loss tokens late in training. On XSum it reduced Sentence Error Rate from 0.67 to 0.59 without significant ROUGE loss. This baseline directly tests our main claim, because the only difference is raw loss versus context gain as the selection signal. We run it on the same model, data, warm-up schedule, and number of optimizer steps. The drop fraction is matched to ours, so both methods discard the same number of tokens. Its threshold is tuned with the same search budget we use. Beating it means a lower sentence error rate at equal or better ROUGE on XSum, plus a higher rate of correct rare-entity reproduction.
Sequence-level loss truncation. We also report the method of Kang et al.. It reported human factuality of 3.79 against 3.51 for beam search on Gigaword.
Context-aware decoding. The strongest inference-time competitor is CAD (Shi et al.). It subtracts context-free logits from context-conditioned logits at every step. With LLaMA-30B it reported a 21% ROUGE-L improvement and a 14.3% FactKB improvement on CNN/DailyMail, and nearly 3x accuracy on NQ-Swap. We apply CAD on top of the plain fine-tuned model and tune its contrast strength on the same validation set. We report quality together with measured latency. Beating CAD means matching its FactKB within noise while running a single forward pass. Exceeding it, without matching latency, would be a stronger result.
LargePiG. We include LargePiG as the training-free pointer baseline. It reported roughly 6% added latency on LLaMA2-7B. No reported result was found on Lacuna for it on XSum, CNN/DailyMail, or NQ-Swap, so we run it ourselves.
Ablations. Two ablations isolate the key ingredient. The first keeps context-gain filtering but removes the copy head. The second keeps the copy head with ordinary gate training, without context-gain labels. If neither ablation loses ground relative to the full method, the combination is not doing work.
Why not just…?
Why not just keep raw loss truncation? It already works: SER fell from 0.67 to 0.59 on XSum (Goyal et al.). The Moore–Lewis argument predicts that raw loss also drops correct rare tokens, but that is a prediction, not evidence, for grounded generation. Our matched-drop-fraction comparison tests it directly. We will also measure how many dropped tokens are source-supported entities under each method. If raw truncation drops few grounded entities, the advantage of context gain will be small, and we will report that.
Why not just drop reference tokens whose entity string is absent from the source? This is the most serious threat. A lexical-overlap filter costs nothing and probably catches most extrinsic entities in XSum. We include it as a baseline, applied to named entities and numbers. Context gain has two possible advantages. It can keep tokens supported by paraphrase or inference rather than exact overlap. It can also catch unsupported non-entity content, such as overconfident hedging changes like those described by Tang et al.. If the lexical filter ties with context gain on factuality metrics, then the value of context gain lies only in supervising the copy gate. The ablation that combines the lexical filter with the context-gain-supervised gate settles this question.
Why not just use CAD at inference and skip training changes? CAD needs no retraining. Its costs are a second forward pass per token and access to the context-free logits. Our hypothesis is that much of its benefit can be distilled into the copy gate. If CAD on a plain fine-tuned model clearly beats our single-pass model on FactKB and NQ-Swap, we will conclude that the distillation is lossy. We then test whether our model combined with CAD improves further.
Why not just use a separate clean reference model, as in RHO-1? The excess-loss approach of RHO-1 requires a curated, high-quality reference corpus. Grounded summarization lacks such a corpus, because the noise sits in the references themselves. Using the context-free version of the model as the "background" removes that dependency. We will still run a variant that scores with a model trained on a small, manually verified reference subset, to check whether the choice of contrast model matters.
Proposed Experiments
Separation of hallucinated and grounded tokens. On roughly 500 XSum and Gigaword references annotated at the span level, we measure how well $g_t$ distinguishes hallucinated spans from source-supported rare tokens, using AUROC. We compare against $\ell_t$ alone. The decisive check is whether context gain produces clearly higher AUROC specifically on rare, high-loss tokens. Without that, the method has no basis.
Generation quality. We evaluate on XSum, CNN/DailyMail, and Gigaword using ROUGE and factuality metrics from the SummEval toolkit, plus FactKB and sentence error rate. Following BioCopy, whose baseline long-span entity error rate was 49.1%, we also measure long-span entity error rate on NYT to test fragmentation.
Knowledge conflict and abstractiveness. On NQ-Swap and MemoTrap, we test whether the trained gate copies context that conflicts with memorized priors. Finally, we track n-gram novelty against human references. This checks that the copy head has not collapsed the model into extraction, the failure that Goyal et al. and Hua et al. describe from opposite directions.
References
- Improved Natural Language Generation via Loss Truncation
- Intelligent Selection of Language Model Training Data
- Training Dynamics for Text Summarization Models
- Get To The Point: Summarization with Pointer-Generator Networks
- A Copy-Augmented Generative Model for Open-Domain Question Answering
- BioCopy: A Plug-And-Play Span Copy Mechanism in Seq2Seq Models
- Improving Copy-oriented Text Generation via EDU Copy Mechanism
- LargePiG: Your Large Language Model is Secretly a Pointer Generator
- Trusting Your Evidence: Hallucinate Less with Context-aware Decoding
- Evaluating large language models on medical evidence summarization
- Not All Tokens Are What You Need for Pretraining
- A Pilot Study of Domain Adaptation Effect for Neural Abstractive Summarization