Optimizing Knowledge Integration in Retrieval-Augmented Generation with Self-Selection
Yan Weng, Fengbin Zhu, Tong Ye, Haoyan Liu, Fuli Feng, Tat-Seng Chua
TL;DR
This work tackles the challenge of integrating internal parametric knowledge with external retrieved knowledge in retrieval-augmented generation (RAG) by introducing Self-Selection RAG, where an LLM selects between an internal-answer and an external-answer. To strengthen selection and generation, it adds Self-Selection-RGP, training LLMs with Direct Preference Optimization on a curated Retrieval-Generation Preference dataset. Experiments on Natural Questions and TriviaQA using Mistral-7B and Llama2-13B-Chat show that Self-Selection-RGP yields robust gains across retrieval settings and tasks, and ablation analyses corroborate the importance of data augmentation and preference alignment. The approach advances robust, less-noisy knowledge integration in LLMs, with practical impact for improving accuracy and reliability in RAG-driven QA systems.
Abstract
Retrieval-Augmented Generation (RAG), which integrates external knowledge into Large Language Models (LLMs), has proven effective in enabling LLMs to produce more accurate and reliable responses. However, it remains a significant challenge how to effectively integrate external retrieved knowledge with internal parametric knowledge in LLMs. In this work, we propose a novel Self-Selection RAG framework, where the LLM is made to select from pairwise responses generated with internal parametric knowledge solely and with external retrieved knowledge together to achieve enhanced accuracy. To this end, we devise a Self-Selection-RGP method to enhance the capabilities of the LLM in both generating and selecting the correct answer, by training the LLM with Direct Preference Optimization (DPO) over a curated Retrieval Generation Preference (RGP) dataset. Experimental results with two open-source LLMs (i.e., Llama2-13B-Chat and Mistral-7B) well demonstrate the superiority of our approach over other baseline methods on Natural Questions (NQ) and TrivialQA datasets.
