用自动生成数据让小模型高效判断大模型是否胡说
Auto-GDA: Automatic Domain Adaptation for Efficient Grounding Verification in Retrieval-Augmented Generation
- 用迭代生成+弱标签优化合成数据,无须人工标注
- 合成数据训练后的小模型性能超教师模型,仅需10%算力
- 适合需要低成本验证大模型输出真实性的研究者
尽管检索增强生成(RAG)能提升大语言模型(LLM)输出的事实性,但模型仍会幻觉生成错误或无关信息。常用检测策略是再次提示LLM自我评估是否基于检索证据,但代价高昂。替代方案是使用轻量级自然语言推理(NLI)模型进行高效接地验证,但现有预训练NLI模型在真实RAG输入上的表现仍逊于大型模型。因为RAG输入比多数NLI训练数据更复杂,且具有底层知识库的特定特征,需对NLI模型进行特定目标域适应。然而目标域缺乏标注样本,使监督微调不可行。为此,我们提出自动生成式域适应(Auto-GDA)。该框架通过合成数据生成实现无监督域适应。不同于以往依赖手工过滤与增强的方法,Auto-GDA采用迭代过程,利用效率较低的教师模型提供的弱标签持续优化生成样本质量,并通过离散优化选择最具潜力的增强样本。实验表明,使用Auto-GDA生成数据微调后的模型常超越教师模型性能,达到大型语言模型水平,计算成本仅为10%。
原文摘要 · Abstract (English)
While retrieval-augmented generation (RAG) has been shown to enhance factuality of large language model (LLM) outputs, LLMs still suffer from hallucination, generating incorrect or irrelevant information. A common detection strategy involves prompting the LLM again to assess whether its response is grounded in the retrieved evidence, but this approach is costly. Alternatively, lightweight natural language inference (NLI) models for efficient grounding verification can be used at inference time. While existing pre-trained NLI models offer potential solutions, their performance remains subpar compared to larger models on realistic RAG inputs. RAG inputs are more complex than most datasets used for training NLI models and have characteristics specific to the underlying knowledge base, requiring adaptation of the NLI models to a specific target domain. Additionally, the lack of labeled instances in the target domain makes supervised domain adaptation, e.g., through fine-tuning, infeasible. To address these challenges, we introduce Automatic Generative Domain Adaptation (Auto-GDA). Our framework enables unsupervised domain adaptation through synthetic data generation. Unlike previous methods that rely on handcrafted filtering and augmentation strategies, Auto-GDA employs an iterative process to continuously improve the quality of generated samples using weak labels from less efficient teacher models and discrete optimization to select the most promising augmented samples. Experimental results demonstrate the effectiveness of our approach, with models fine-tuned on synthetic data using Auto-GDA often surpassing the performance of the teacher model and reaching the performance level of LLMs at 10% of their computational cost.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。