Skip to main content
QUICK REVIEW

[論文レビュー] Searching for Best Practices in Retrieval-Augmented Generation

Xiaohua Wang, Zhenhua Wang|arXiv (Cornell University)|Jul 1, 2024
Recommender Systems and Techniques被引用数 6
ひとこと要約

この論文は、取得拡張生成(RAG)パイプライン構築のベストプラクティスを体系的に調査し、クエリ分類、チャンク化、埋め込みモデル、ベクトルデータベース、取得方法、リランキング、リパッキング、要約、ジェネレータ微調整を含むコンポーネントの選択を評価し、マルチモーダル取得と効率重視の構成を強調する。

ABSTRACT

Retrieval-augmented generation (RAG) techniques have proven to be effective in integrating up-to-date information, mitigating hallucinations, and enhancing response quality, particularly in specialized domains. While many RAG approaches have been proposed to enhance large language models through query-dependent retrievals, these approaches still suffer from their complex implementation and prolonged response times. Typically, a RAG workflow involves multiple processing steps, each of which can be executed in various ways. Here, we investigate existing RAG approaches and their potential combinations to identify optimal RAG practices. Through extensive experiments, we suggest several strategies for deploying RAG that balance both performance and efficiency. Moreover, we demonstrate that multimodal retrieval techniques can significantly enhance question-answering capabilities about visual inputs and accelerate the generation of multimodal content using a "retrieval as generation" strategy.

研究の動機と目的

  • 最適なRAGワークフローのコンポーネントとその組み合わせを大規模実験を通じて特定する。
  • RAGの性能を一般的なタスク・領域特化・マルチモーダルタスクで評価するための包括的な評価フレームワークとデータセットを提供する。
  • マルチモーダル取得が視覚入力のQAを改善し、取得を生成として扱うアプローチを用いてマルチモーダルコンテンツ生成を高速化できることを示す。

提案手法

  • 各RAGモジュールごとに代表的なタスクでの性能に基づく候補手法を三段階で選択する。
  • 一つずつのアブレーションで全体のRAG性能に対する各モジュールの寄与を測定する。
  • 異なるシナリオに対して性能または効率を優先する組み合わせを経験的に探求する。
  • 評価は多様なタスク群(常識、事実検証、オープンドメインQ&A、マルチホップQ&A、医療Q&A)を用い、指標には忠実性、文脈関連性、回答関連性、回答正確性を含む。
Figure 1: Retrieval-augmented generation workflow. This study investigates the contribution of each component and provides insights into optimal RAG practices through extensive experimentation. The optional methods considered for each component are indicated in bold fonts, while the methods underlin
Figure 1: Retrieval-augmented generation workflow. This study investigates the contribution of each component and provides insights into optimal RAG practices through extensive experimentation. The optional methods considered for each component are indicated in bold fonts, while the methods underlin

実験結果

リサーチクエスチョン

  • RQ1RAGパイプライン(クエリ分類、チャンク化、埋め込み、ベクトルストア、取得、リランキング、リパッキング、要約、ジェネレータ微調整)の各モジュールで最も性能の高い手法は何か。
  • RQ2各モジュールが全体のRAG性能にどのように寄与し、どの組み合わせが精度と効率の最良のトレードオフを生み出すのか。
  • RQ3マルチモーダル取得は視覚入力のQAを大幅に改善し、取得を生成としての戦略を介してマルチモーダルコンテンツ生成を加速できるのか。

主な発見

方法TREC DL19 mAPTREC DL19 nDCG@10TREC DL19 R@50TREC DL19 R@1k待機時間DL20 mAPDL20 nDCG@10DL20 R@50DL20 R@1k待機時間
BM2530.1350.5838.3275.010.0728.5647.9646.1878.630.29
Contriever23.9944.5437.5474.593.0623.9842.1343.8175.390.98
LLM-Embedder44.6670.2049.0684.482.6145.6068.7661.3684.410.71
+ Query Rewriting44.5667.8951.4585.357.8045.1665.6259.6383.452.06
+ Query Decomposition41.9366.1048.6682.6214.9843.3064.9557.7484.182.01
+ HyDE50.8775.4454.9388.767.2150.9473.9463.8088.032.14
+ Hybrid Search47.1472.5051.1389.083.2047.7269.8064.3288.040.77
+ HyDE + Hybrid Search52.1373.3455.3890.4211.1653.1372.7266.1490.672.95
  • スパース検索(BM25)と密接検索をHyDEベースのクエリ/ドキュメント変換と組み合わせたハイブリッド検索は、適度な遅延で強力な性能を発揮する。
  • 評価設定下では、クエリ書換えやクエリ分解はHyDEやハイブリッド戦略ほどの検索性能には寄与しなかった。
  • 標準ベンチマークでの総合的な最良RAG性能は、HyDEとHybrid Searchの組み合わせで実現され、LLM-Embedder埋め込みと強力なリランカー(monoT5)を使用。
  • ジェネレータ微調整時に関連ドキュメントとランダムドキュメントを適度に混ぜると、関連ドキュメントのみやランダムドキュメントのみを用いる場合よりロバスト性と有効性が向上する。
  • マルチモーダル取得は視覚入力のQAを大幅に強化し、取得を生成としてのアプローチによりマルチモーダルなコンテンツ生成を高速化する。
Figure 2: Classification of retrieval requirements for different tasks. In cases where information is not provided, we differentiate tasks based on the functions of the model.
Figure 2: Classification of retrieval requirements for different tasks. In cases where information is not provided, we differentiate tasks based on the functions of the model.

より良い研究を、今すぐ始めましょう

論文設計から論文執筆まで、研究時間を劇的に削減しましょう。

クレジットカード登録不要

このレビューはAIが作成し、人間の編集者が確認しました。