cs.CLAug 17, 2026

When Context Misleads: Intent-Guided Decoding for Robust Retrieval-Augmented Generation

Authors: Haolin Jin, Pengyue Yang, Huaming Chen

Organizations: School of Electrical and Computer Engineering The University of Sydney Sydney, NSW, Australia

Abstract

Retrieval-augmented generation (RAG) improves large language models by grounding generation in external evidence, but it also introduces a source trust problem: retrieved context may be useful, irrelevant, or even misleading. Existing RAG systems often apply a fixed trust policy toward retrieved evidence, which can either over-trust incorrect context or underuse context when the user explicitly asks for context-following behavior. Therefore, we propose Intent-Guided Decoding (IGD), a framework that arbitrates between retrieved context and parametric memory according to user intent. IGD uses answer-level filtering and token-level correction to steer the final decoding trajectory between retrieved context and parametric memory. We evaluate IGD on three faithful QA benchmarks and three factual-conflict benchmarks across five LLMs, IGD substantially improves factual recovery, achieving gains of up to 65.4 percentage points on factual-conflict benchmarks over Direct RAG, while preserving or improving strict context-following behavior, this findings highlight the importance of balancing factuality and faithfulness in RAG.

Figures & tables

Explore similar work

CardsList
  1. Grounded Decoding: Retrieval-Anchored Probability Fusion for Faithful RAG

    May 29, 2026Ibne Farabi Shihab, Fariya Afrin, Sanjeda Akter +1Retrieval-Augmented GenerationLanguage Model Decoding

  2. Guaranteeing Knowledge Integration with Joint Decoding for Retrieval-Augmented Generation

    Apr 9, 2026Zhengyi Zhao, Shubo Zhang, Zezhong Wang +7Hallucination in RAGRetrieval-Augmented Generation

  3. Towards Dependable Retrieval-Augmented Generation Using Factual Confidence Prediction

    May 4, 2026Florian Geissler, Francesco Carella, Laura Fieback +1Retrieval-Augmented GenerationFactual Consistency Evaluation