arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.14915cs.CL
收藏

调和多样模型:一种用于一致性生成的逐层合并策略

Harmonizing Diverse Models: A Layer-wise Merging Strategy for Consistent Generation

AI Foundations, Capital One McLean, VA, USA(AI基础研究,Capital One麦莱恩,美国弗吉尼亚州)

Xujun Peng, Anoop Kumar, Jingyu Wu, Parker Glenn, Daben Liu

AI总结:

针对RAG系统中LLM对语义等价输入生成不一致输出的问题,提出结合合成数据生成、三元组损失和逐层模型合并的新方法,利用中间层激活的一致性感知权重整合知识,使响应相似性较基线提升约47.5%,提升工业级RAG系统可靠性。

摘要:

检索增强生成(RAG)系统利用大型语言模型(LLMs)生成基于检索上下文的准确且可靠的响应。然而,LLMs 对于语义等价的输入常常生成不一致的输出,这一问题因缺乏以一致性为重点的训练数据以及当前微调技术在增强输出一致性方面的局限性而加剧。我们提出了一种新方法,结合了系统性合成数据生成、用于更好嵌入的三元组损失,以及一种新颖的逐层模型合并方法。利用从中间层激活导出的、具有一致性感知的权重,我们的方法有效地整合了来自专门模型的知识。实验结果表明,我们的合并模型显著提升了输出一致性,在响应相似性上比基线提高了约 47.5%,从而为提升工业级 RAG 系统的可靠性提供了一种实用解决方案。

英文摘要:

Retrieval-Augmented Generation (RAG) systems leverage Large Language Models (LLMs) to generate accurate and reliable responses that are grounded in retrieved context. However, LLMs often generate inconsistent outputs for semantically equivalent inputs, a problem compounded by the scarcity of consistency-focused training data and the limitations of current fine-tuning techniques in enhancing output consistency. We propose a new approach combining systematic synthetic data generation, triplet loss for better embeddings, and a novel layer-wise model merging approach. Using consistency-aware weights derived from intermediate layer activations, our method effectively integrates knowledge from specialized models. Experimental results how that our merged model significantly enhances output consistency, achieving a ~47.5\% improvement in response similarity over the baseline, thus offering a practical solution for increasing the reliability of an industrial RAG system.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑