[論文レビュー] DRAGIN: Dynamic Retrieval Augmented Generation based on the Information Needs of Large Language Models
DRAGINはリアルタイム情報ニーズ検出(RIND)と自己注意に基づくクエリ形成(QFS)を導入し、取得の時期と内容を動的に決定します。追加の訓練なしで、4つの知識集約型ベンチマークで優れた結果を達成します。
Dynamic retrieval augmented generation (RAG) paradigm actively decides when and what to retrieve during the text generation process of Large Language Models (LLMs). There are two key elements of this paradigm: identifying the optimal moment to activate the retrieval module (deciding when to retrieve) and crafting the appropriate query once retrieval is triggered (determining what to retrieve). However, current dynamic RAG methods fall short in both aspects. Firstly, the strategies for deciding when to retrieve often rely on static rules. Moreover, the strategies for deciding what to retrieve typically limit themselves to the LLM's most recent sentence or the last few tokens, while the LLM's real-time information needs may span across the entire context. To overcome these limitations, we introduce a new framework, DRAGIN, i.e., Dynamic Retrieval Augmented Generation based on the real-time Information Needs of LLMs. Our framework is specifically designed to make decisions on when and what to retrieve based on the LLM's real-time information needs during the text generation process. We evaluate DRAGIN along with existing methods comprehensively over 4 knowledge-intensive generation datasets. Experimental results show that DRAGIN achieves superior performance on all tasks, demonstrating the effectiveness of our method. We have open-sourced all the code, data, and models in GitHub: https://github.com/oneal2000/DRAGIN/tree/main
研究の動機と目的
- 生成時に取得をより賢く呼び出すことでLLMの幻覚(ハルシネーション)を低減させる動機づけ。
- リアルタイム情報ニーズに基づいて取得時期を決定する動的RAGフレームワークの開発。
- LLMの自己注意を用いて跨-context情報ニーズを捉える取得クエリを形成。
- 追加の訓練やプロンプト設計なしでTransformerベースのLLMとの統合を実現。
- 複数の知識集約タスクにおいて、既存の動的RAGベースラインと比較してDRAGINを経験的に検証。
提案手法
- 不確実性、トークン重要度、意味的寄与度を用いて各生成トークンを評価し取得を引き起こすリアルタイム情報ニーズ検出(RIND)を提案。
- トリガー位置で最も高く注意された前方トークンからクエリを構築する自己注意ベースのクエリ形成(QFS)を導入。
- 生成中にトークンレベルで取得決定を行い、RINDスコアの閾値で取得時機を決定。
- 軽量な後処理統合を用いる:トリガーポイントで生成を切り詰め、外部知識を取得し、特別なプロンプトテンプレートで生成を再開。
- 複数のLLM(LLaMA-2-13B/7B-chatとVicuna-13B-v1.5)に渡る4つの知識集約データセットに対して、ベースライン動的RAG手法とDRAGINを評価。
- 注: BM25はデフォルトのリトリーバとして使用され、アブレーションにはSGPTを含む。
実験結果
リサーチクエスチョン
- RQ1リアルタイムのニーズベース取得トリガーは、静的または固定間隔アプローチよりRAGの性能を向上させることができるか?
- RQ2自己注意ベースのクエリ形成は、全文脈にわたる情報ニーズを、最後の文や最後のトークンのクエリよりもうまく捉えるか?
- RQ3DRAGINは、複数データセットと複数のLLMにおいて、精度(EM/F1/Accuracy)と効率の点で既存の動的RAG手法とどう比較されるか?
主な発見
- DRAGINは、複数のLLMに跨る4つの知識集約データセットで一貫してベースラインを上回り、リアルタイムニーズ検知と自己注意ベースのクエリの有効性を示している。
- DRAGINは評価対象の動的RAG手法の中で最先端の性能を達成し、特にマルチホップQAタスク(2WikiMultihopQA、HotpotQA)で顕著。
- アブレーション研究は、RINDとQFSが、異なるリトリーバとLLMに跨る既存のタイミング戦略およびクエリ戦略を上回ることを示す。
- DRAGINはBM25をリトリーバとして使用し、LLaMA-2-13B/7B-chatおよびVicuna-13B-v1.5に対する結果を示す。
- タイミング実験は、同等のクエリを使用した場合、IIRCデータセットでFLARE、FL-RAG、FS-RAGよりDRAGINのトリガーメカニズムがEM/F1/Accuracyを向上させることを示す。
- 全文脈を用いるクエリ形成は、前方文脈からトップの注視を得たトークンを選択するDRAGINのQFSアプローチほど効果的でない。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。