Manuscript Offprint

arXiv:2610.29727

Accept or Repair: Preserving Passage-Supported Answers in Contrastive Decoding

Jungseob Lee, Seungyoon Lee, Hyeonseok Moon, Seongtae Hong, Suhyune Son, Sugyeong Eo, Minhyuk Kim, Chanjun Park, Jaehyung Seo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models often answer from knowledge learned during training, even when a provided passage contradicts that knowledge. To address this problem, contrastive decoding contrasts the predictions under the full and a modified prompt at every token, but it also alters correct answers that the passage supports. We show that checking answers against the passage removes this trade-off. Based on this observation, we propose Accept-or-Repair (AoR), a training-free procedure. AoR keeps a sampled answer if the passage supports it. Otherwise, it tries up to two replacements with contrastive decoding, returning one as soon as it passes this check. It rejects replacements that repeat the answer generated without the passage when the passage favors another answer. Our experiments show that AoR raises the score over sampling by 12.5 points on counterfactual passages and 2.3 on ordinary ones, surpassing eight contrastive and prompting baselines on both, including when each receives the same rejection rule. Replacing only initial answers that the passage does not support improves the average score of every decoder. These results suggest that models can follow passages that contradict their knowledge while preserving accuracy on passages that agree with it. Code will be released at https://github.com/js-lee-AI/AoR.

1 Introduction

Large language models (LLMs) often prioritize knowledge learned during training over the information in a provided passage, even when the two conflict (Longpre et al., 2021; Xie et al., 2024). However, models should base their answers on the

Figure

Figure 1: Gain over plain sampling on counterfactual and ordinary passages, at the setting that each method chose on the development split. Test split, averaged over six models.

passage, whether it provides updated or private information or conflicts with their learned knowledge (Ram et al., 2023; Zyskind et al., 2024; Shi et al., 2024; Lee et al., 2025).

To address this problem, contrastive decoding encourages models to follow the passage without additional training (Shi et al., 2024; Wang et al., 2025a). At each decoding step, it contrasts token predictions under the full and a modified prompt to favor information from the passage. Context-aware decoding (CAD), for instance, removes the passage from the contrasting prompt (Shi et al., 2024). Methods also use signals from the model to adjust the contrast strength or decide when to apply it (Wang et al., 2025a; Yuan et al., 2024; Tao and Agrawal, 2026). These methods control answer generation without first checking whether a plain answer already follows the passage. On ordinary passages, which agree with the model's parametric knowledge, CAD turns correct answers into errors more often than plain resampling. The baselines that gain most on counterfactual passages reduce scores on ordinary passages, whereas the others leave ordinary scores nearly unchanged, as Figure 1 shows.

For extractive questions, checking whether an answer occurs in the passage provides a cue for deciding whether to keep it. On ordinary passages, most plain answers occur in the passage, and these answers are more accurate than those that do not. We find that contrastive decoders lower the scores of these answers, with larger F1 losses for CAD when the model assigns the answer a higher probability without the passage.

Based on this observation, we propose Acceptor-Repair (AoR), a training-free procedure that checks an initial answer before deciding whether to repair it. AoR samples a plain answer and accepts it when the passage supports it. For an unsupported initial answer, AoR draws an answer without the passage and uses it to screen replacements. The memory veto of AoR rejects replacements that repeat this answer when the passage favors another answer. AoR tries up to two replacements with contrastive decoding at the baselines' selected strengths and returns the first that passes both the support check and the veto. Figure 2 illustrates these decisions on two test questions. CAD changes the correct answer 111 to two, whereas AoR keeps 111 and replaces the memorized 1922 with 1971 from the passage.

Our experiments show that AoR improves average scores over plain sampling on both counterfactual and ordinary passages and outperforms contrastive and prompting baselines. The lead remains when baselines receive the same memory veto, and LLM judges also rank AoR highest on average.

Replacing only unsupported plain answers improves the average score of each baseline. The support test selects answers to repair more effectively than using the model’s confidence, asking it to check its own answer or applying an entailment model. These alternatives often accept answers from the model’s memory even when the passage states a different answer.

We make three contributions.

• We show that contrastive decoders improve scores on unsupported initial answers but reduce scores on supported answers in ordinary passages, identifying a source of the trade-off between the two passage types.

• We propose Accept-or-Repair, a training-free procedure that keeps supported answers and tries up to two contrastive repairs for the others, subject to the memory veto.

• We show that AoR retains its lead on held-out benchmarks and across model families and sizes, and improves scores on both passage types when answers are given as one sentence.

References (60)