Preprint
Machine Learning

RAG and Beyond

Siyun Zhao, Yuqing Yang, Zilong Wang, Zhiyuan He, Luna K. Qiu, Lili Qiu
September 23, 2024arXiv.org138 citations

138

Citations

2

Influential Citations

arXiv.org

Venue

2024

Year

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.

Analysis

Why This Paper Matters

This survey addresses a critical gap in the rapidly evolving field of Retrieval-Augmented Generation (RAG) and data-augmented LLMs. As organizations increasingly deploy LLMs for specialized tasks, the lack of a systematic framework for matching data integration strategies to task types leads to frequent underperformance. The paper's core insight—that there is no one-size-fits-all solution—is timely and practical. By proposing a four-level query categorization, it helps practitioners diagnose whether failures stem from retrieval issues, intent misinterpretation, or insufficient reasoning, enabling more targeted improvements.

The paper also provides a clear comparison of three main integration forms: context (e.g., RAG), small model (e.g., adapter-based), and fine-tuning. This comparison is valuable for AI engineers who must choose between these approaches based on latency, data availability, and task complexity. The survey's emphasis on disentangling multiple capabilities within a task is a pragmatic contribution that can reduce trial-and-error in application development.

Technical Contributions

  • Four-level query taxonomy: Explicit fact (e.g., factual lookup), implicit fact (requires inference from retrieved data), interpretable rationale (needs reasoning with explainable steps), and hidden rationale (requires latent reasoning without explicit data).
  • Challenge mapping: For each level, the paper identifies key challenges (e.g., retrieval precision for explicit facts, multi-hop reasoning for implicit facts) and summarizes effective techniques from literature.
  • Integration form analysis: Compares context-based (RAG), small model (e.g., LoRA), and fine-tuning (full or partial) along dimensions like data efficiency, latency, and suitability for different query levels.
  • Practical guide: Provides a decision framework for selecting integration methods based on task requirements, such as using context for low-latency factual queries and fine-tuning for domain-specific reasoning.

Results

As a survey, the paper does not present new experimental results. Its value lies in synthesizing existing findings: for example, it notes that context-based methods excel at explicit fact queries but struggle with hidden rationale tasks, while fine-tuning can capture nuanced patterns but requires substantial labeled data. The paper references 138 citations, indicating a comprehensive review of the field up to September 2024.

Significance

This work serves as a practical roadmap for AI practitioners building data-augmented LLM applications. By clarifying the relationship between task type and integration strategy, it can reduce development time and improve application performance. The taxonomy also provides a common language for researchers and engineers to discuss and compare approaches. As LLMs are deployed in high-stakes domains like healthcare and finance, such structured guidance becomes essential for reliable and effective systems.