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

Jungseob Lee, Seungyoon Lee, Hyeonseok Moon, Seongtae Hong, Suhyune Son +4 more
10/21/2026
cs.CL

Official code: js-lee-AI/AoR (1 star, MIT, last commit 2026-10-21).

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.

View on arXivView PDF

Code Implementations(1)

js-lee-AI/AoROfficial100%
MIT

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

10PythonOct 21, 20263 days agoMIT
context-faithfulnesscontrastive-decodinghallucinationknowledge-conflictsllm-decoding+3 more

Similar Papers

Cite this paper

@article{lee2026accept,
  title  = {Accept or Repair: Preserving Passage-Supported Answers in Contrastive Decoding},
  author = {Jungseob Lee and Seungyoon Lee and Hyeonseok Moon and Seongtae Hong and Suhyune Son and Sugyeong Eo and Minhyuk Kim and Chanjun Park and Jaehyung Seo},
  year   = {2026},
  eprint = {2610.29727},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.29727v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.29727.svg)](https://codeofpaper.com/paper/2610.29727)

Discussion