A Simple yet Effective Retrieval-Augmented Generation Framework for the Meta KDD Cup 2024

Liyang He, Rui Li, Shuanghong Shen, Junyu Lu, Linbo Zhu, Yu Su, Zhenya HuangKDD Cup CRAG @ KDD 2024

TL;DR

This paper presents a winning solution for the Meta KDD Cup 2024's Retrieval Summarization task, detailing a simple yet effective Retrieval-Augmented Generation (RAG) framework. The authors highlight the importance of careful data processing, retrieval strategy, and generation prompting, ultimately achieving top performance on specific question types by focusing on a robust pipeline rather than overly complex techniques.

What Problem Does This Paper Address?

The paper tackles the challenge of building effective Retrieval-Augmented Generation (RAG) systems, which aim to ground Large Language Models (LLMs) in external knowledge to combat hallucinations and improve factual accuracy. While RAG is a promising approach, the field is rapidly evolving with numerous techniques for query enhancement, retrieval, and generation. The Meta KDD Cup 2024's CRAG benchmark was designed to provide a standardized evaluation for these RAG systems, allowing researchers to assess the practical effectiveness of various methods. The authors specifically focus on Task 1: Retrieval Summarization, where the goal is to answer questions using provided web pages, even if some are irrelevant.

Methods

The team's winning framework is a three-stage pipeline:

  1. Data Processing: Web pages are parsed from HTML to natural language text using BeautifulSoup to make them digestible for LLMs.
  2. Retrieval: The core of the RAG system. The authors experimented with several approaches:
  3. Recall-then-ranking: Using the bge-m3 model for initial retrieval and bge-m3-reranker for re-ranking the top results. This proved to be a strong baseline.
  4. Individual Ranking Model: Directly using a ranking model on provided candidates, which was effective but limited by the initial candidate set.
  5. Hierarchical Indexing: Experimented with different chunk sizes for indexing, but found it didn't consistently improve performance and sometimes degraded it.
  6. Query Augmentation: Techniques like HYDE (Hypothetical Document Embeddings) and Step-Back prompting were explored. While HYDE showed promise for specific question types, the increased time overhead led the authors to exclude most query augmentation methods from their final solution.
  7. Generation: The final step involves generating the answer using the retrieved information. The authors explored:
  8. Direct Prompting: A straightforward approach of adding retrieved context to the prompt.
  9. Chain-of-Thought (CoT) Prompting: Encouraging step-by-step reasoning, which significantly improved performance.
  10. ReAct (Reasoning and Acting): A more complex approach involving tool use, which showed potential for multi-hop questions but suffered from significant timeout issues.
  11. Self-RAG: An adaptive RAG technique that combines self-reflection and retrieval.

Ultimately, the team settled on Chain-of-Thought prompting for their final submission due to its balance of performance and efficiency.

Datasets

The primary dataset used is the CRAG (Comprehensive RAG Benchmark) dataset, introduced by Meta for the KDD Cup 2024. This dataset contains 4,409 question-answer pairs across five domains (Finance, Sports, Music, Movies, Open-domain Encyclopedia) and features a variety of question types, including factual, conditional, comparative, aggregation, multi-hop, and set queries. It also includes questions with varying dynamics, from real-time to static.

Key Insights and Ideas

  • Simplicity Wins: The authors found that a well-structured, simple RAG pipeline often outperforms more complex, experimental techniques, especially when considering efficiency constraints like timeouts.
  • CoT is King for Generation: Chain-of-Thought prompting proved to be a highly effective method for guiding the LLM to generate accurate and well-reasoned answers, significantly boosting performance over direct prompting.
  • Query Augmentation Trade-offs: While techniques like HYDE can improve retrieval for specific question types, the associated time overhead can be prohibitive in competitive settings, leading to a decision to omit them in the final solution.
  • Hierarchical Indexing Limitations: The assumption that hierarchical indexing would universally improve retrieval was not borne out; it sometimes led to performance degradation.
  • ReAct's Timeout Problem: The power of ReAct for complex reasoning was hampered by its tendency to exceed time limits, highlighting a practical challenge in deploying advanced RAG methods.

Key Results

The team's RAG framework achieved victory in the Simple_w_condition, Set, and Aggregation question types in Task 1 of the Meta KDD Cup 2024. While specific accuracy scores for the winning submission are not detailed in the main text, Table 3 shows the performance of their final pipeline on a validation set. Notably, their pipeline achieved accuracies of:

  • simple_w_condition: 0.34
  • set: 0.38
  • aggregation: 0.35

The results also indicate that multi-hop questions were the most challenging to answer correctly, with an accuracy of only 0.13.

Limitations and Future Work

  • Timeout Issues: The paper explicitly mentions that advanced methods like ReAct suffered from significant timeout issues, limiting their practical application.
  • Model Scaling: The bge-m3-reranker model, while effective, led to memory overflow or inference timeouts when scaled up to the 70B parameter model, forcing a reliance on the recall-then-ranking approach.
  • Generalizability of Techniques: The authors found that not all advanced RAG techniques are universally effective; some, like hierarchical indexing, did not yield consistent improvements.
  • Future Work: Not explicitly discussed in the paper, but the success of CoT prompting and the challenges with more complex methods suggest future work could focus on optimizing these advanced techniques for efficiency or exploring hybrid approaches. The diversity of question types and the need for efficient RAG systems remain open areas for research.

Summary updated

BibTeX
@inproceedings{he2024simple,
  author = {Liyang He and Rui Li and Shuanghong Shen and Junyu Lu and Linbo Zhu and Yu Su and Zhenya Huang},
  title = {{A Simple yet Effective Retrieval-Augmented Generation Framework for the Meta KDD Cup 2024}},
  booktitle = {KDD Cup CRAG @ KDD},
  year = {2024},
  url = {https://openreview.net/forum?id=s9QAadOn6H},
}
Figure