arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.06399cs.CLcs.AI
收藏

我们应该微调还是RAG?评估使LLM适配对话的不同技术

Should We Fine-Tune or RAG? Evaluating Different Techniques to Adapt LLMs for Dialogue

University of Trento(特伦托大学)

Simone Alghisi, Massimo Rizzoli, Gabriel Roccabruna, Seyed Mahed Mousavi, Giuseppe Riccardi

AI总结:

本文系统比较上下文学习、微调及RAG等LLM对话适配技术,发现最佳方案取决于基础模型与对话类型,且人工评估不可或缺。

摘要:

我们研究了大型语言模型(LLM)在人机对话中用于回复生成任务的局限性。文献中已经针对不同对话类型(例如开放域)提出了若干技术。然而,这些技术的评估在基础LLM、对话类型和评估指标方面都存在局限。在本工作中,我们广泛分析了不同LLM适配技术应用于不同对话类型时的表现。我们选择了两个基础LLM,即Llama-2和Mistral,以及四种对话类型:开放域、知识 grounding、任务导向和问答。我们在为每种对话类型选择的数据集上评估了上下文学习和微调技术的性能。我们还在检索增强生成(RAG)和黄金知识两种场景下,评估了引入外部知识以支撑生成所产生的影响。我们对自动指标和人工评估协议采用一致的评估与可解释性标准。分析表明,并不存在适配大型语言模型的通用最佳技术,因为每种技术的有效性同时取决于基础LLM和具体对话类型。最后同样重要的是,对最佳适配技术的评估应包含人工评估,以避免由自动指标产生的错误预期和结果。

英文摘要:

We study the limitations of Large Language Models (LLMs) for the task of response generation in human-machine dialogue. Several techniques have been proposed in the literature for different dialogue types (e.g., Open-Domain). However, the evaluations of these techniques have been limited in terms of base LLMs, dialogue types and evaluation metrics. In this work, we extensively analyze different LLM adaptation techniques when applied to different dialogue types. We have selected two base LLMs, Llama-2 and Mistral, and four dialogue types Open-Domain, Knowledge-Grounded, Task-Oriented, and Question Answering. We evaluate the performance of in-context learning and fine-tuning techniques across datasets selected for each dialogue type. We assess the impact of incorporating external knowledge to ground the generation in both scenarios of Retrieval-Augmented Generation (RAG) and gold knowledge. We adopt consistent evaluation and explainability criteria for automatic metrics and human evaluation protocols. Our analysis shows that there is no universal best-technique for adapting large language models as the efficacy of each technique depends on both the base LLM and the specific type of dialogue. Last but not least, the assessment of the best adaptation technique should include human evaluation to avoid false expectations and outcomes derived from automatic metrics.

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

↑