OpenDecoder: Open Large Language Model Decoding to Incorporate Document Quality in RAG
Fengran Mo, Zhan Su, Yuchen Hui, Jinghan Zhang, Jia Ao Sun, Zheyuan Liu, Chao Zhang, Tetsuya Sakai, Jian-Yun Nie
TL;DR
OpenDecoder addresses robustness gaps in retrieval-augmented generation by injecting explicit document-quality indicators into the LLM decoding process. It constructs three signals—Retrieval relevance, Ranker relevance, and QPP score—from external information and integrates them through learnable attention-modulation parameters, aided by robustness training that exposes the model to noisy inputs. Across five QA benchmarks, OpenDecoder outperforms vanilla RAG and several strong baselines, with larger models yielding larger gains and normalization choices impacting performance. The method is flexible and plug-and-play with post-training and other external indicators, offering a practical path to more reliable, trust-worthy RAG systems.
Abstract
The development of large language models (LLMs) has achieved superior performance in a range of downstream tasks, including LLM-based retrieval-augmented generation (RAG). The quality of generated content heavily relies on the usefulness of the retrieved information and the capacity of LLMs' internal information processing mechanism to incorporate it in answer generation. It is generally assumed that the retrieved information is relevant to the question. However, the retrieved information may have a variable degree of relevance and usefulness, depending on the question and the document collection. It is important to take into account the relevance of the retrieved information in answer generation. In this paper, we propose OpenDecoder, a new approach that leverages explicit evaluation of the retrieved information as quality indicator features for generation. We aim to build a RAG model that is more robust to varying levels of noisy context. Three types of explicit evaluation information are considered: relevance score, ranking score, and QPP (query performance prediction) score. The experimental results on five benchmark datasets demonstrate the effectiveness and better robustness of OpenDecoder by outperforming various baseline methods. Importantly, this paradigm is flexible to be integrated with the post-training of LLMs for any purposes and incorporated with any type of external indicators.
