Skip to main content
QUICK REVIEW

[Paper Review] Retrieval Augmented Generation (RAG) and Beyond: A Comprehensive Survey on How to Make your LLMs use External Data More Wisely

Shihua Zhao, Yuqing Yang|arXiv (Cornell University)|Sep 23, 2024
Library Science and Information SystemsComputer Science12 citations
TL;DR

A comprehensive survey that categorizes data-augmented LLM queries into four levels, discusses RAG enhancements, retrieval strategies, and integration forms.

ABSTRACT

Large language models (LLMs) augmented with external data have demonstrated remarkable capabilities in completing real-world tasks. Techniques for integrating external data into LLMs, such as Retrieval-Augmented Generation (RAG) and fine-tuning, are gaining increasing attention and widespread application. Nonetheless, the effective deployment of data-augmented LLMs across various specialized fields presents substantial challenges. These challenges encompass a wide range of issues, from retrieving relevant data and accurately interpreting user intent to fully harnessing the reasoning capabilities of LLMs for complex tasks. We believe that there is no one-size-fits-all solution for data-augmented LLM applications. In practice, underperformance often arises from a failure to correctly identify the core focus of a task or because the task inherently requires a blend of multiple capabilities that must be disentangled for better resolution. In this survey, we propose a RAG task categorization method, classifying user queries into four levels based on the type of external data required and primary focus of the task: explicit fact queries, implicit fact queries, interpretable rationale queries, and hidden rationale queries. We define these levels of queries, provide relevant datasets, and summarize the key challenges and most effective techniques for addressing these challenges. Finally, we discuss three main forms of integrating external data into LLMs: context, small model, and fine-tuning, highlighting their respective strengths, limitations, and the types of problems they are suited to solve. This work aims to help readers thoroughly understand and decompose the data requirements and key bottlenecks in building LLM applications, offering solutions to the different challenges and serving as a guide to systematically developing such applications.

Motivation & Objective

  • Define a structured view of data-augmented LLM applications and why external data improves LLM performance.
  • Propose a four-level query categorization (explicit facts, implicit facts, interpretable rationales, hidden rationales) for data-augmented tasks.
  • Survey challenges, datasets, and effective techniques for RAG and alternatives.
  • Discuss three main forms of external data integration: context, small models, and fine-tuning, with their trade-offs.

Proposed method

  • Present a formal problem definition for data-augmented LLM applications as f: Q -> A given data D.
  • Classify queries into four levels and map datasets to levels (Table 1 reference).
  • Detail RAG components: data processing, data retrieval (sparse, dense, hybrid), document/Query alignment, re-ranking, and iterative retrieval.
  • Describe response generation enhancements including handling noisy retrieval and joint retraining of retriever and generator.
  • Introduce iterative, graph/tree, and SQL-based approaches for higher-level (implicit) fact queries.
  • Discuss alternative data integration strategies beyond RAG, including knowledge graphs, graph-based reasoning, and chunk-based prompts.

Experimental results

Research questions

  • RQ1How can user queries be organized into levels based on external data needs and task focus?
  • RQ2What are the main challenges and effective solutions for retrieving and using external data in LLMs across the four levels?
  • RQ3What are the strengths and limitations of context, small model, and fine-tuning approaches for data-augmented LLMs?
  • RQ4What datasets illustrate explicit/implicit fact and rationale query levels, and how do they map to existing tasks?

Key findings

  • RAG remains a core solution for explicit fact queries with data processing and retrieval challenges across unstructured, multi-modal data.
  • Iterative and hierarchical retrieval strategies help address multi-hop and complex implicit fact queries.
  • Three data integration forms—context, small models, and fine-tuning—offer distinct trade-offs in control, efficiency, and domain adaptation.
  • Alignment strategies (traditional, document/domain, query-domain) and re-ranking are critical to retrieval quality, with methods like HyDE and SlimPLM contributing to improvements.
  • Handling noisy retrieval via fine-tuning and joint retraining can stabilize generation and reduce hallucinations in data-augmented LLMs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.