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

探索针对长上下文语言模型的微调以实现上下文检索和高效的KV缓存

Exploring Fine-Tuning for In-Context Retrieval and Efficient KV-Caching in Long-Context Language Models

Sapienza University of Rome(罗马萨皮恩扎大学);Amazon AGI(亚马逊人工智能研究院)

Francesco Maria Molfese, Momchil Hardalov, Rexhina Blloshmi, Bill Byrne, Adrià de Gispert

AI总结:

本文研究了长上下文语言模型在微调策略下的性能提升及KV缓存压缩下的鲁棒性,展示了领域内和跨领域任务中的不同表现。

摘要:

具有数百万个标记的长上下文语言模型(LCLMs)能够编码整个文档集合,为传统检索增强生成(RAG)提供了一个强有力的替代方案。然而,仍然不清楚微调策略是否能提高长上下文性能,并在KV缓存压缩技术下实现更高的鲁棒性。在本工作中,我们研究了哪些训练策略最有效地增强LCLMs识别和使用相关信息的能力,以及增强其在KV缓存压缩下的鲁棒性。我们的实验显示了显著的领域内改进,相对于基模型实现了高达+20分的提升。然而,跨领域泛化仍然取决于任务,存在较大差异——LCLMs在金融问题上表现优异(+9分),而RAG在多项选择问题上表现更强(+6分)相对于基线模型。最后,我们展示了我们的微调方法在KV缓存压缩下的鲁棒性带来中等改进,不同任务的提升幅度各不相同。

英文摘要:

With context windows of millions of tokens, Long-Context Language Models (LCLMs) can encode entire document collections, offering a strong alternative to conventional retrieval-augmented generation (RAG). However, it remains unclear whether fine-tuning strategies can improve long-context performance and translate to greater robustness under KV-cache compression techniques. In this work, we investigate which training strategies most effectively enhance LCLMs' ability to identify and use relevant information, as well as enhancing their robustness under KV-cache compression. Our experiments show substantial in-domain improvements, achieving gains of up to +20 points over the base model. However, out-of-domain generalization remains task dependent with large variance -- LCLMs excels on finance questions (+9 points), while RAG shows stronger performance on multiple-choice questions (+6 points) over the baseline models. Finally, we show that our fine-tuning approaches bring moderate improvements in robustness under KV-cache compression, with gains varying across tasks.

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

↑