Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Optimizing Multi-Hop Document Retrieval Through Intermediate Representations

About

Retrieval-augmented generation (RAG) encounters challenges when addressing complex queries, particularly multi-hop questions. While several methods tackle multi-hop queries by iteratively generating internal queries and retrieving external documents, these approaches are computationally expensive. In this paper, we identify a three-stage information processing pattern in LLMs during layer-by-layer reasoning, consisting of extraction, processing, and subsequent extraction steps. This observation suggests that the representations in intermediate layers contain richer information compared to those in other layers. Building on this insight, we propose Layer-wise RAG (L-RAG). Unlike prior methods that focus on generating new internal queries, L-RAG leverages intermediate representations from the middle layers, which capture next-hop information, to retrieve external knowledge. L-RAG achieves performance comparable to multi-step approaches while maintaining inference overhead similar to that of standard RAG. Experimental results show that L-RAG outperforms existing RAG methods on open-domain multi-hop question-answering datasets, including MuSiQue, HotpotQA, and 2WikiMultiHopQA. The code is available in https://github.com/Olive-2019/L-RAG

Jiaen Lin, Jingyu Liu, Yingbo Liu• 2025

Related benchmarks

TaskDatasetResultRank
Multi-hop Question Answering2WikiMQA--
154
Question AnsweringMuSiQue
Accuracy (ACC)35.2
36
Question AnsweringHotpotQA
Accuracy64.1
14
Multi-hop Question Answering2WikiMultiHopQA v1.0 (test)
Task Latency (s)2.76
9
Multi-hop Question AnsweringMuSiQue v1.0 (test)
Task latency (s)2.62
9
Multi-hop Question AnsweringHotpotQA v1.0 (test)
Latency (s)2.8
9
Multi-hop document retrievalMuSiQue (test)
Recall@K0.764
8
Retrieval2WikiMQA (test)
Recall@K48
8
Multi-hop document retrievalHotpotQA (test)
Recall@K61.3
8
Showing 9 of 9 rows

Other info

Code

Follow for update