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

Simone Alghisi, Massimo Rizzoli, Gabriel Roccabruna, Seyed Mahed Mousavi, Giuseppe Riccardi
6/10/2024
cs.CLcs.AI

No official code found. Best implementation: sislab-unitn/Fine-Tune-or-Rag (1 star, MIT, last commit 2025-06-06).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Repository for the paper "Should We Fine-Tune or RAG? Evaluating Different Techniques to Adapt LLMs for Dialogue" accepted at INLG 2024

10Python, Jupyter NotebookJul 31, 20241 years agoMIT

Similar Papers

Cite this paper

@article{alghisi2024should,
  title  = {Should We Fine-Tune or RAG? Evaluating Different Techniques to Adapt LLMs for Dialogue},
  author = {Simone Alghisi and Massimo Rizzoli and Gabriel Roccabruna and Seyed Mahed Mousavi and Giuseppe Riccardi},
  year   = {2024},
  eprint = {2406.06399},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.06399v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.06399.svg)](https://codeofpaper.com/paper/2406.06399)

Discussion