Skip to main content
LawSphereX

Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMs

Subject: Information Retrieval and Summarisation

Author or source: Oded Ovadia, Menachem Brief, Moshik Mishaeli, Oren Elisha

Updated:

In this study, we compare two common approaches: unsupervised fine-tuning and retrieval-augmented generation (RAG).

Oded Ovadia, Menachem Brief, Moshik Mishaeli, Oren Elisha. 2024. Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMs. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics. DOI 10.18653/v1/2024.emnlp-main.15. CC BY 4.0. Original PDF and author abstract are reproduced unchanged apart from whitespace in the abstract. LawSphereX prepared the reading prompt and cover. No endorsement implied.

Publication sources

Authors’ abstract

Source page 1–14

Large language models (LLMs) encapsulate a vast amount of factual information within their pre-trained weights, as evidenced by their ability to answer diverse questions across different domains. However, this knowledge is inherently limited, relying heavily on the characteristics of the training data. Consequently, using external datasets to incorporate new information or refine the capabilities of LLMs on previously seen information poses a significant challenge. In this study, we compare two common approaches: unsupervised fine-tuning and retrieval-augmented generation (RAG). We evaluate both approaches on a variety of knowledge-intensive tasks across different topics. Our findings reveal that while unsupervised fine-tuning offers some improvement, RAG consistently outperforms it, both for existing knowledge encountered during training and entirely new knowledge. Moreover, we find that LLMs struggle to learn new factual information through unsupervised fine-tuning, and that exposing them to numerous variations of the same fact during training could alleviate this problem.

Reading guide for information retrieval and summarisation

Source page 1–14

Trace a reported result back to the source documents, retrieval or summary task, and scoring method. Spot-check a paper example against its evidence.