Plan Rag
Plan Rag
Accuracy (%)
40 37.31
retrieval-augmented generation (RAG) through 34.09
test-time reasoning plan generation. While exist- 35 33.15
31.12
ing approaches such as ReAct maintain reason- 30
25.51
ing chains within the language model’s context 25
window, we observe that this often leads to plan
fragmentation and execution failures. Our key 20
insight is that by isolating the reasoning plan as
a directed acyclic graph (DAG) outside the LM’s RAG Self-RAG ReAct
working memory, we can enable (1) systematic
Figure 1. Plan∗ RAG improves performance on the HotpotQA
exploration of reasoning paths, (2) atomic sub-
benchmark substantially compared to various existing RAG meth-
queries enabling precise retrievals and ground- ods, demonstrating the value of externalizing planning as a directed
ing, and (3) efficiency through parallel execution acyclic graph (DAG) outside of the LLM’s context.
and bounded context window utilization. More-
over, Plan∗ RAG’s modular design allows it to mental barrier to reliable AI systems, particularly given the
be integrated with existing RAG methods, thus widespread deployment of large language models (Brown
providing a practical solution to improve current et al., 2020) across critical domains. Consider the query:
RAG systems. On standard multi-hop reasoning “Rumble Fish was a novel by the author of the coming-of-age
benchmarks, Plan∗ RAG consistently achieves im- novel published in what year by Viking Press?” Answering
provements over recently proposed methods such this requires an iterative retrieval process: identifying the
as RQ-RAG and Self-RAG, while maintaining Rumble Fish’s author, connecting to their coming-of-age
comparable computational costs. novel, and determining its publication year. Single-step
retrieval in RAG systems often fails in such cases, as it
may retrieve documents about Rumble Fish’s author and
1. Introduction Viking Press without recognizing the intermediate fact—
the author’s coming-of-age novel—must first be established.
Retrieval-Augmented Generation (RAG, Lewis et al., 2020;
Furthermore, Leng et al. (2024); Shuster et al. (2021) demon-
Petroni et al., 2020; Guu et al., 2020) has emerged as a
strate that even when relevant documents are retrieved, LMs
promising approach for grounding language model (LM)
struggle to reason across them due to fixed context win-
responses in external knowledge. However, RAG systems
dows, leading to information loss and broken reasoning
struggle with multi-hop queries that require reasoning across
chain. These limitations pose risks in critical domains such
multiple retrieved documents (Tang & Yang, 2024; Wei
as healthcare and finance (Pal et al., 2023; Zhao et al., 2024),
et al., 2022). A key challenge lies in the initial retrieval step,
where accurate multi-step reasoning is essential.
which often fails to retrieve sufficient relevant documents
due to the query’s lack of full contextual information (Ma Recent research has attempted to address these limita-
et al., 2023). This limitation has been highlighted in recent tions through structured reasoning frameworks. Chain-of-
surveys (Torfi et al., 2020; Zhao et al., 2023) as a funda- Thought (CoT) prompting (Wei et al., 2022) and systematic
†
query decomposition (Patel et al., 2022) have introduced
Work done during an internship with Microsoft Research. explicit reasoning steps, enabling more granular thought
1
Aalto University, Finland 2 Microsoft Research. Correspondence
to: <[Link]@[Link]>, <amshar@[Link]>. processes and targeted retrievals. Building upon these foun-
dations, Yao et al. (2023) proposed ReAct—a framework
that creates a reasoning chain inside the LM’s context and
1
Efficient Test-Time Planning for Retrieval Augmented Generation
dynamically coordinates between thoughts, retrieval opera- intended plan). This prevents context overflow and ensures
tions (actions), and information processing (observations). that only relevant information is processed at each stage.
However, a fundamental limitation of ReAct is that the rea- Second, nodes at the same depth in the DAG can be pro-
soning and retrieval plan exists entirely within the LLM’s cessed in parallel, significantly reducing latency compared
context window, leading to context overflow as reasoning to sequential approaches. Third, nodes are dynamic, con-
chains grow, plan fragmentation, and high latency from se- taining tags that allow them to adapt based on their parent’s
quential execution. While recently proposed frameworks generation, resulting in more targeted sub-queries. Fur-
like Self-RAG (Asai et al., 2023), RA-ISF (Liu et al., 2024), thermore, the DAG structure enables explicit verification at
and RQ-RAG (Chan et al., 2024) have advanced the field each node, facilitating error correction and backtracking. As
through innovations in dynamic reasoning and adaptive re- generation involves traversing through the reasoning DAG,
trieval mechanisms, the core problem still remains. These Plan∗ RAG can be incorporated with both traditional RAG
methods often struggle to balance reasoning depth and com- frameworks and recent approaches like Self-RAG (Asai
putational efficiency (see Sec. 3 for an example). This et al., 2023), enhancing their multi-hop reasoning capabili-
trade-off results in either shallow analysis that misses criti- ties (Fig. 1) while maintaining comparable computational
cal reasoning steps, or impractical latency that limits their efficiency in terms of input-output tokens (cf. Fig. 4).
deployment in real-time applications.
Contributions We summarize our contributions as follows.
To address these challenges, we propose Plan∗ RAG, a novel (i) We introduce a test-time reasoning approach that external-
approach that externalizes the reasoning process as a di- izes the reasoning process as a DAG, fundamentally altering
rected acyclic graph (DAG). Unlike existing methods that how multi-hop queries are processed in RAG systems.
maintain reasoning chains within the LM’s context or gener- (ii) We propose a novel DAG-based reasoning structure
ate isolated sequential sub-queries, Plan∗ RAG decomposes that decomposes complex queries into atomic and dynamic
the main query into interrelated atomic and dynamic sub- sub-queries, enabling parallel processing while maintaining
queries, where nodes represent atomic reasoning steps and conditional dependencies. (iii) We demonstrate that our
edges capture the conditional dependencies between them. approach can enhance both traditional RAG frameworks and
Atomic sub-queries can be answered by a single retrieval, modern approaches like Self-RAG, improving multi-hop
and further decomposition does not provide additional use- reasoning capabilities with comparable computation.
ful granularity. Additionally, sub-queries are tagged with
special tags ⟨AI.J⟩, allowing them to adapt based on updated 2. Related Work
knowledge during generation. This external representation
addresses core limitations of existing approaches in several We review two key areas relevant to our work: (1) reasoning
ways. First, by following the DAG structure for generation, in LLMs, which focuses on methods that enhance multi-step
only the parent nodes need to be included in the context reasoning, and (2) retrieval-augmented generation (RAG),
window for any given step (and that the system follows the which integrates external information to improve LLM per-
2
Efficient Test-Time Planning for Retrieval Augmented Generation
formance in knowledge-intensive tasks. complex queries. Hsu et al. (2024) also focus on multi-hop
query performance of RAG but take an orthogonal approach.
Reasoning in LLMs Recent advancements in LLMs have
significantly enhanced their reasoning capabilities through Recent work by Ranaldi et al. (2024), explores reasoning in
various approaches. Chain-of-Thought (CoT) prompting RAGs through C-RAG which generates explanations explic-
(Wei et al., 2022) improves model performance by guid- itly contrasting the relevance of retrieved passages to support
ing LLMs through intermediate reasoning steps. Build- the final answer. Plan∗ RAG takes a different approach by
ing on this, the Tree of Thoughts (ToT) framework (Yao proposing a novel framework that performs reasoning at
et al., 2024) enables LLMs to explore and evaluate multiple test-time outside the LM’s working memory, and performs
reasoning paths simultaneously. Wang et al. (2023) pro- generation in a computationally efficient manner, enabling
posed self-consistency, a technique that samples multiple LLMs to tackle complex multi-hop queries with greater
reasoning chains and selects the most likely answer through accuracy while producing a verifiable reasoning trace.
majority voting. Similarly, least-to-most prompting (Zhou
et al., 2023) decomposes complex questions into simpler 3. Motivation
subquestions, addressing them sequentially. Recently, Hao
et al. (2023) propose Reasoning via Planning (RAP), where Multi-hop reasoning queries, requiring information from
LLMs act as both world models and reasoning agents. Addi- multiple documents, pose significant challenges for cur-
tionally, Sun et al. (2024) introduced Think-on-Graph (ToG), rent Retrieval-Augmented Generation (RAG) systems. Con-
incorporating knowledge graphs into multi-hop reasoning sider an example query from HotPotQA (Yang et al., 2018):
for deeper and more interpretable reasoning processes. Re- “Rumble Fish was a novel by the author of the coming-of-age
cent works from Welleck et al. (2024); Chen et al. (2024) novel published in what year by Viking Press?”. The query
also analyzed tree search for reasoning. While these meth- demands multiple reasoning steps: identifying the Rumble
ods have demonstrated impressive results, they still rely on Fish’s author, connecting to their coming-of-age novel, and
implicit LM reasoning capability or on sequential reason- determining its publication year. In this section, we will
ing steps, which can lead to increased context usage and use this query as a running example a) to articulate the fail-
computational costs. In contrast, Plan∗ RAG externalizes the ure modes of standard as well as recently-proposed RAG
reasoning process as a DAG, mitigating these inefficiencies. approaches on such multi-hop reasoning queries (Fig. 2);
and b) motivate the core idea of our proposed solution. For
Retrieval Augmented Generation RAG enhances large
this analysis, we fix the model to be Llama-3.1-instruct8B
language models (LLMs) by integrating relevant external
and the retriever to be Contriever (Izacard et al., 2022). In
documents, leading to notable performance improvements,
the remainder of the paper, Q denotes queries, D denotes
particularly in knowledge-intensive tasks (Lewis et al., 2020;
documents, and G denotes generations (responses).
Guu et al., 2020). Retrieval strategies in RAG models
can be categorized into three paradigms based on the fre- Standard Baselines A straight-forward RAG approach
quency of retrievals: (1) one-time retrieval, (2) retrieval is to issue the given query Q to a retriever, retrieve docu-
every k tokens, and (3) adaptive retrieval. Models employ- ments D, and prompt a language model (LM) with Q and
ing one-time retrieval include DrQA (Chen et al., 2017), D to generate an answer. For the running example, this ap-
REALM (Guu et al., 2020), and ATLAS (Izacard et al., proach produces an incorrect answer (1975), because a) the
2023). Retrieval at fixed intervals (every k tokens) is used by retrievals are incomplete; it fails to get the ground-truth cor-
RALM (Ram et al., 2023), RETRO (Borgeaud et al., 2022), rect document on the coming-of-age novel The Outsiders,
and InstructRetro (Wang et al., 2024a). In contrast, adap- which is not surprising as the query makes only an indi-
tive retrieval approaches—such as Self-RAG (Asai et al., rect reference to the novel, and b) in turn, LM generates an
2023), SPALM (Yogatama et al., 2021), Adaptive kNN incorrect answer without any reasoning.
(Drozdov et al., 2022), and Active-Retriever (Jiang et al.,
This motivates using better reasoning at inference time. A
2023)—dynamically adjust the frequency and nature of doc-
natural idea is to prompt the same LM with Q and D, but
ument retrieval based on task requirements and input context.
also elicit a reasoning for the answer in a chain-of-thought
FLARE (Jiang et al., 2023) uses token probability distribu-
(CoT) manner (Wei et al., 2022). However, for our example,
tions to trigger retrievals, while RETRO (Borgeaud et al.,
RAG with CoT generates incorrect reasoning: [S.E. Hinton
2022) employs a specialized architecture for fixed-interval
wrote Rumble Fish → Rumble Fish was published in 1975
document retrieval. Wang et al. (2024b) proposed RAFT,
→ The author of The Outsiders also published in 1975],
combining chain-of-thought reasoning with RAG through
leading to the incorrect answer 1975. Here, we see the
iterative thought refinement. Other approaches include RA-
reason for failure is that the model hallucinated (third step of
ISF (Liu et al., 2024), which combines dataset-specific spe-
the chain) as it was trying to break down the complex query.
cialized models, and RQ-RAG (Chan et al., 2024), which
Thus, the multi-hop query requires careful reasoning. Next,
enables query rewriting and decomposition for handling
3
Efficient Test-Time Planning for Retrieval Augmented Generation
Query:
we turn to approaches that use more test-time compute. What is the distance between the locations that
hosted the last two Men’s Cricket World Cup finals?
Reason & Act (ReAct) ReAct (Yao et al., 2023) extends Q1.2: Where was
Q1.1: Where was the
traditional RAG frameworks by implementing a structured last Men’s Cricket Parallelizable subqueries
the second last
Men’s Cricket
World Cup final held?
interaction loop between reasoning and retrieval. The frame- World Cup final held?
4
Efficient Test-Time Planning for Retrieval Augmented Generation
Table 1. Reasoning DAG depth (percentage/count) for multi-hop (HotpotQA, StrategyQA, MuSiQue) and single-hop (PopQA) data sets.
For single-hop queries, the DAG primarily has depth 0, which is desirable, while multi-hop queries require deeper reasoning paths.
Dataset Depth 0 Depth 1 Depth 2 Depth 3 Depth≥4
HotpotQA (Multi-hop) 0.5% (35) 12.8% (945) 79.5% (5884) 6.8% (507) 0.4% (34)
StrategyQA (Multi-hop) 0.9% (22) 42.9% (978) 51.2% (1175) 4.5% (103) 0.3% (6)
MuSiQue (Multi-hop) 0.0% (0) 2.11% (51) 66.4% (1604) 25.5% (617) 5.9% (145)
PopQA (Single-hop) 77.9% (1090) 0.8% (11) 18.9% (264) 2.4% (34) 0.0% (0)
use Directed Acyclic Graphs (Fig. 3) that are appropriate its parent nodes’ answers, and retrieved documents. When
to represent complex plans. applied recursively, this formulation enables systematic
2. DAG structure allows executing any node conditioned reasoning from root nodes to leaves, with document
only on the necessary context along its path, unlike state- retrieval potentially interleaved at each step.
of-the-art approaches that accumulate the entire trace To facilitate dynamic reasoning, we introduce a simple node
(plan and retrievals) in the LM’s in-context memory. This indexing scheme. Each node is uniquely identified as ⟨i.j⟩,
also helps make the LM calls more economical in terms where i denotes the node’s depth from the root and j indi-
of the number of tokens. cates its position among nodes at depth i. Furthermore, we
3. DAG structure allows processing nodes independently, introduce a special tag ⟨AI.J⟩ that enables dynamic depen-
conditioned on the execution of parent nodes, helping dency tracking between subqueries. In this notation, I and J
with efficiency and end-to-end latency of RAG system. are integer values representing the Question IDs required to
complete a subquery. For instance, as illustrated in Fig. 3,
At a high level, Plan∗ RAG operates in two phases: (1) de- when subquery Q2.1 depends on the answer to Q1.1, the tag
composing complex queries into a DAG structure, and ⟨A1.1⟩ enables dynamic answer propagation at inference
(2) executing the DAG while preserving dependencies. Be- time, allowing the system to adapt to updated knowledge.
sides the merits of serializing the query plan as a data
structure—such as control and efficiency listed above, 4.2. Generating a Reasoning Plan as a DAG
Plan∗ RAG is complementary to state-of-the-art approaches
like Self-RAG in the following sense. We can seamlessly The first step during inference involves generating a reason-
integrate Plan∗ RAG with methods like Self-RAG, to solve ing plan by prompting the LLM with a specialized prompt,
the sub-queries in its internal nodes (see Sec. 5.1). as detailed in App. D.1. While this initial plan is static, it can
be dynamically instantiated, and refined, given the indexing
We formalize the reasoning plan DAG in Sec. 4.1, followed scheme ⟨AI.J⟩ as discussed in Sec. 4.1. The plan therefore
by detailed analysis on properties and benefits of Plan∗ RAG is a template initially which during generation dynamically
in Sec. 4.3. The full algorithm is showcased in Alg. 1. materializes as the LM traverses through the DAG.
4.1. Reasoning Plan: Directed Acyclic Graph To ensure reliable plan generation, we explore two ap-
proaches: (1) fine-tuning a language model specifically
At test-time, Plan∗ RAG generates a reasoning plan as a for this structured output, and (2) leveraging more capa-
Directed Acyclic Graph (DAG) G(V, E), where V repre- ble language models that can follow complex prompting
sents the set of generated subqueries and E denotes the instructions. Our experiments show both approaches are
directed edges between them. The root nodes of G cor- effective, with a fine-tuned Llama3.1-instruct8B achieving
respond to independently answerable atomic subqueries, comparable performance to GPT-4o (Sec. 5.4).
while subsequent nodes represent dependent queries that
build upon their parent nodes’ answers. This hierarchical 4.3. Reasoning Plan: Properties & Benefits
structure follows the Markov assumption, ensuring that each
node’s answer depends only on its direct predecessors, thus The effectiveness of Plan∗ RAG stems from its structured
enabling efficient parallel computation. reasoning process, which offers several key advantages
over traditional RAG-based methods. By leveraging a Di-
Formally, for any subquery q∈V, its answer is computed as: rected Acyclic Graph (DAG) to represent reasoning plans,
G(q) = fLLM (G(Pa(q)), q, Dq ) ; G = fLLM (Q) , (1) Plan∗ RAG ensures efficient information flow, reduces com-
putational overhead, and improves query formulation. The
where Pa(q) denotes the set of parent nodes of q in the DAG structure naturally enables systematic verification and
DAG, Dq represents the retrieved documents relevant to granular control at the subquery level—errors can be iso-
q, and Q is the main query. The language model fLLM lated to specific nodes and automated interventions (like
generates responses by jointly considering the subquery, additional retrievals or alternative decompositions) can be
5
Efficient Test-Time Planning for Retrieval Augmented Generation
6
Efficient Test-Time Planning for Retrieval Augmented Generation
80
100 20
50
Input 0
Output 0 1 2 3 ≥4
Reasoning depth
Figure 4. Efficiency analysis: (a) Token utilization comparison showing that Plan∗ RAG maintains comparable computational efficiency
with baseline methods. (b) Analysis of reasoning depth on HotpotQA demonstrates that Plan∗ RAG naturally adapts to the dataset’s 2-hop
nature, achieving optimal depth for 80% of queries while other methods show inconsistent reasoning depths.
multi-hop reasoning (>2 hops), and PopQA (Mallen et al., 5 documents retrieved via Contriever-MS MARCO from
2022) for single-hop queries. This diverse selection enables the original query. As shown in Table 2, we compare
comprehensive evaluation of Plan∗ RAG’s adaptability to against vanilla LLMs and three RAG variants (standard
varying reasoning depths. We consider an answer correct if retrieval, chain-of-thought prompting, and query decompo-
the predicted answer contains the ground truth, providing a sition) using GPT-3.5turbo , Llama2-chat13B , and Llama3.1-
relaxed version of exact-match to account for variations in instruct8B . Plan∗ RAG demonstrates consistent performance
answer phrasing. Dataset details are provided in App. A. gains across all datasets and baseline models.
Retriever For all experiments, we use the Contriever-MS For state-of-the-art methods that employ iterative retrieval,
MARCO (Izacard et al., 2022) retriever with embeddings we evaluate Plan∗ RAG SubQ . As shown in Table 3,
based on the 2018 English Wikipedia. The Wikipedia arti- Plan∗ RAG SubQ achieves significant improvements over
cles are segmented into non-overlapping 100-word chunks, recent frameworks like Self-RAG, ReAct, and RQ-RAG
and we retrieve the top-5 documents for each query. across respective base models. Additionally, integrating
Self-RAG to Plan∗ RAG’s reasoning DAG (Plan∗ -Self-RAG)
Baselines and Methods We evaluate Plan∗ RAG against
yields substantial performance gains, validating the effec-
several baselines as discussed in Sec. 3: LM with no re-
tiveness of the test-time, external planning approach.
trieval (Vanilla-LLM), standard retrieval with direct prompt-
ing (Vanilla-RAG), chain-of-thought prompting with re- These results establish that Plan∗ RAG’s test-time planning
trievals (CoT-RAG), query decomposition with retrievals provides clear advantages over existing reasoning frame-
(QD-RAG), and state-of-the-art RAG methods, like Self- works, including those designed for multi-hop reasoning.
RAG (Asai et al., 2023), ReAct (Yao et al., 2023), and RQ-
RAG (Chan et al., 2024). These methods have outperformed 5.2. Reasoning DAG Depth
methods like SAIL (Luo et al., 2023), Toolformer (Schick
et al., 2024), and commercial systems like [Link] and Table 1 shows the reasoning DAG depths for all the datasets.
ChatGPT. We conduct experiments using three base models: As expected, the multi-hop query datasets exhibit a DAG
GPT-3.5turbo , Llama2-chat13B , and Llama3.1-instruct8B . depth greater than 1, indicating multiple atomic queries must
be answered at different depths to answer the main query. In
We implement two variants of Plan∗ RAG: (1) a base ver- contrast, the single-hop dataset typically shows a reasoning
sion that uses documents retrieved from the original query; depth of 0, which is both expected and desired, as simpler
(2) Plan∗ RAG SubQ that performs iterative retrievals for each queries do not require further decomposition into subqueries.
subquery in the DAG, enabling precise retrievals. Given This showcases that the reasoning DAG effectively adapts
Plan∗ RAG’s agnostic design discussed in Sec. 4, we also its complexity based on the query complexity.
evaluate its integration with Self-RAG (Plan∗ -Self-RAG).
On HotpotQA (a 2-hop dataset), we compare depth distri-
butions for sequential methods like Query-Decomposition
5.1. Accuracy Performance
RAG (QD-RAG) and ReAct in Fig. 4. Both the methods
We evaluate Plan∗ RAG against both standard prompting exceed the ideal reasoning depth, with a significant pro-
techniques and state-of-the-art RAG frameworks in Ta- portion of samples having depths greater than 3, indicating
ble 2 and Table 3. For fair comparison with standard suboptimal reasoning paths.
prompting methods, all approaches use the same set of top-
Information Gain (IG) We introduce cumulative informa-
7
Efficient Test-Time Planning for Retrieval Augmented Generation
Table 3. Comparison with state-of-the-art methods: Performance of Table 4. Retrieval effectiveness: Evaluation of re-
Plan∗ RAG against recent advanced RAG methods (RQ-RAG, Self-RAG) and trieval quality on HotpotQA distractor setting.
their Plan∗ -augmented variants. Plan∗ RAG SubQ achieves consistent improve- Plan∗ RAG achieves higher precision and recall com-
ments across both single-hop and multi-hop reasoning tasks. pared to ReAct and query decomposition.
Base Method HotpotQA StrategyQA MuSiQue PopQA Method Precision Recall Accuracy
ReAct 0.04 34.61 25.68
RQ-RAG 33.78 47.46 13.43 32.66
Llama27B
ReAct 33.15 54.67 13.36 35.81 Vanilla-RAG CoT-RAG QD-RAG Plan4o Plan8B
Plan∗ RAG SubQ 40.44 65.45 14.88 41.98 24.83 30.11 28.25 31.97 31.28
tion gain (IG) to measure information aggregation across questions and their corresponding reasoning DAGs in the
reasoning depths. Formally, at depth d, required JSON format as training data. Experiments on a
HotpotQA-dev subset (1300 samples) demonstrate compa-
IG(Q, G, d) = IG(Q, {qi }di=0 ) , (6)
rable performance to GPT-4o, achieving [31.28] accuracy
where Q represents the main query and {qi }di=0 denotes versus [31.97] with GPT-4o (Table 5). These results indicate
the set of subqueries up to depth d. A higher IG indicates that the success of our test-time planning approach does not
substantial new information contribution toward the final hinge on specific LLMs; and that modest training data is
answer, while a similar value as the previous depth suggest sufficient to fine-tune LMs to generate structured output.
redundant or unnecessary reasoning steps. We experiment
with the HotpotQA dataset and employ GPT-3.5turbo model 6. Discussion and Conclusion
to score the information gain between 1-10 across the rea-
soning plan. Table 6 showcases the average IG score over In this paper, we presented Plan∗ RAG, a framework that
reasoning depth, demonstrating consistent incremental in- transforms multi-hop reasoning in RAG through test-time
formation gain as the DAG is traversed. planning. Our key insight—externalizing the reasoning
structure as a DAG outside the LM’s context—addresses
5.3. Targeted Subqueries and Retrievals fundamental limitations of existing approaches. Empirical
results validate three core benefits: systematic exploration
A key feature of Plan∗ RAG’s reasoning plan is the atomic, of reasoning paths, efficient parallel execution, and im-
dynamic subqueries. As discussed in Sec. 4.3, the sub- proved performance on multi-hop datasets. Significant im-
queries in the reasoning plan are more targetted and help provements in retrieval precision demonstrates that atomic
improve retrievals. We evaluate retrieval effectiveness with subqueries enable more focused document retrieval, while
the HopotQA Distractor setting, which provides ground bounded context windows overcome the overflow chal-
truth labels for supporting documents. As shown in Table 4, lenges faced by sequential approaches. A key strength of
Plan∗ RAG significantly outperforms both ReAct and Query- Plan∗ RAG is its modular design, demonstrated by success-
Decomposition (QD-RAGSubQ ) in both precision and recall, ful integration with existing RAG methods like Self-RAG.
contributing to improved accuracy. This flexibility, combined with comparable computational
High precision is particularly crucial for multi-hop reason- costs, establishes Plan∗ RAG as a practical solution for real-
ing, as it minimizes the introduction of irrelevant informa- world multi-hop reasoning tasks
tion that could propagate errors through the reasoning chain. A key limitation in Plan∗ RAG is reliance on a static plan
generated a priori. While the plan may need updates as
5.4. Reasoning Plan Generation more information is collected, the DAG structure facilitates
subquery updates and backtracking since it is a formal ob-
So far in the experiments we have utilized the more capable
ject outside the LLM’s context window. Future work can
GPT-4o model for generating reasoning plans. However,
explore: (1) verification and backtracking using the reason-
to demonstrate that Plan∗ RAG framework is not depen-
ing DAG, (2) feedback loops between reasoning steps for
dent on powerful LLMs, we finetune a Llama3.1-instruct8B
dynamic plan refinement, and (3) extending the framework
reasoning planner with LoRA adapters on a small subset
to tasks like fact verification and mathematical deduction.
of HotpotQA-train dataset. We use input-output pairs of
8
Efficient Test-Time Planning for Retrieval Augmented Generation
References Hao, S., Gu, Y., Ma, H., Hong, J. J., Wang, Z., Wang, D. Z.,
and Hu, Z. Reasoning with language model is planning
Asai, A., Wu, Z., Wang, Y., Sil, A., and Hajishirzi, H. Self-
with world model. In Proceedings of the 2023 Conference
RAG: Learning to retrieve, generate, and critique through
on Empirical Methods in Natural Language Processing,
self-reflection. In The Twelfth International Conference
2023.
on Learning Representations, 2023.
Borgeaud, S., Mensch, A., Hoffmann, J., Cai, T., Ruther- Hsu, S., Khattab, O., Finn, C., and Sharma, A. Grounding
ford, E., Millican, K., Van Den Driessche, G. B., Lespiau, by trying: LLMs with reinforcement learning-enhanced
J.-B., Damoc, B., Clark, A., De Las Casas, D., Guy, A., retrieval. arXiv preprint arXiv:2410.23214, 2024.
Menick, J., Ring, R., Hennigan, T., Huang, S., Maggiore,
L., Jones, C., Cassirer, A., Brock, A., Paganini, M., Irv- Izacard, G., Caron, M., Hosseini, L., Riedel, S., Bojanowski,
ing, G., Vinyals, O., Osindero, S., Simonyan, K., Rae, J., P., Joulin, A., and Grave, E. Unsupervised dense infor-
Elsen, E., and Sifre, L. Improving language models by mation retrieval with contrastive learning. Transactions
retrieving from trillions of tokens. In Proceedings of the on Machine Learning Research, 2022.
39th International Conference on Machine Learning, vol-
ume 162 of Proceedings of Machine Learning Research, Izacard, G., Lewis, P., Lomeli, M., Hosseini, L., Petroni,
pp. 2206–2240. PMLR, 2022. F., Schick, T., Dwivedi-Yu, J., Joulin, A., Riedel, S., and
Grave, E. Atlas: Few-shot learning with retrieval aug-
Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., mented language models. Journal of Machine Learning
Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Research, 24(251):1–43, 2023.
Askell, A., et al. Language models are few-shot learners.
In Advances in Neural Information Processing Systems,
Jiang, Z., Xu, F. F., Gao, L., Sun, Z., Liu, Q., Dwivedi-
volume 33, pp. 1877–1901. Curran Associates, Inc., 2020.
Yu, J., Yang, Y., Callan, J., and Neubig, G. Active re-
Chan, C.-M., Xu, C., Yuan, R., Luo, H., Xue, W., Guo, trieval augmented generation. In Proceedings of the 2023
Y., and Fu, J. RQ-RAG: Learning to refine queries for Conference on Empirical Methods in Natural Language
retrieval augmented generation. In First Conference on Processing, pp. 7969–7992, 2023.
Language Modeling, 2024.
Leng, Q., Portes, J., Havens, S., Zaharia, M., and Carbin, M.
Chen, D., Fisch, A., Weston, J., and Bordes, A. Reading Long context rag performance of large language models.
Wikipedia to answer open-domain questions. In Proceed- arXiv preprint arXiv:2411.03538, 2024.
ings of the 55th Annual Meeting of the Association for
Computational Linguistics (Volume 1: Long Papers), pp. Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V.,
1870–1879. Association for Computational Linguistics, Goyal, N., Küttler, H., Lewis, M., Yih, W.-t., Rocktäschel,
2017. T., Riedel, S., and Kiela, D. Retrieval-augmented genera-
Chen, Z., White, M., Mooney, R., Payani, A., Su, Y., tion for knowledge-intensive NLP tasks. In Advances in
and Sun, H. When is tree search useful for llm plan- Neural Information Processing Systems, volume 33, pp.
ning? it depends on the discriminator. arXiv preprint 9459–9474. Curran Associates, Inc., 2020.
arXiv:2402.10890, 2024.
Liu, Y., Peng, X., Zhang, X., Liu, W., Yin, J., Cao, J., and
Drozdov, A., Wang, S., Rahimi, R., Mccallum, A., Zamani, Du, T. Ra-isf: Learning to answer and understand from
H., and Iyyer, M. You can’t pick your neighbors, or can retrieval augmentation via iterative self-feedback. arXiv
you? When and how to rely on retrieval in the kNN- preprint arXiv:2403.06840, 2024.
LM. In Findings of the Association for Computational
Linguistics (EMNLP), pp. 2997–3007, 2022. Luo, H., Zhang, T., Chuang, Y.-S., Gong, Y., Kim, Y., Wu,
X., Meng, H. M., and Glass, J. R. Search augmented in-
Geva, M., Khashabi, D., Segal, E., Khot, T., Roth, D., and
struction learning. In Proceedings of the 2023 Conference
Berant, J. Did Aristotle use a laptop? A question an-
on Empirical Methods in Natural Language Processing,
swering benchmark with implicit reasoning strategies.
2023.
Transactions of the Association for Computational Lin-
guistics, 9:346–361, 2021.
Ma, X., Gong, Y., He, P., Zhao, H., and Duan, N. Query
Guu, K., Lee, K., Tung, Z., Pasupat, P., and Chang, M. rewriting in retrieval-augmented large language mod-
Retrieval augmented language model pre-training. In els. In Proceedings of the 2023 Conference on Empiri-
Proceedings of the International Conference on Machine cal Methods in Natural Language Processing, pp. 5303–
Learning, pp. 3929–3938. PMLR, 2020. 5315, 2023.
9
Efficient Test-Time Planning for Retrieval Augmented Generation
Mallen, A., Asai, A., Zhong, V., Das, R., Hajishirzi, H., and Torfi, A., Shirvani, R. A., Keneshloo, Y., Tavaf, N., and Fox,
Khashabi, D. When not to trust language models: Investi- E. A. Natural language processing advancements by deep
gating effectiveness and limitations of parametric and non- learning: A survey. arXiv preprint arXiv:2003.01200,
parametric memories. arXiv preprint arXiv:2212.10511, 2020.
2022.
Trivedi, H., Balasubramanian, N., Khot, T., and Sabharwal,
Mihaylov, T., Clark, P., Khot, T., and Sabharwal, A. Can A. Musique: Multihop questions via single-hop ques-
a suit of armor conduct electricity? A new dataset tion composition. Transactions of the Association for
for open book question answering. arXiv preprint Computational Linguistics, 10:539–554, 2022.
arXiv:1809.02789, 2018.
Wang, B., Ping, W., Mcafee, L., Xu, P., Li, B., Shoeybi, M.,
Pal, A., Umapathi, L. K., and Sankarasubbu, M. Med- and Catanzaro, B. InstructRetro: Instruction tuning post
halt: Medical domain hallucination test for large lan- retrieval-augmented pretraining. In Proceedings of the
guage models. In Proceedings of the 27th Conference on 41st International Conference on Machine Learning, vol-
Computational Natural Language Learning (CoNLL), pp. ume 235 of Proceedings of Machine Learning Research,
314–334, 2023. pp. 51255–51272. PMLR, 2024a.
Patel, P., Mishra, S., Parmar, M., and Baral, C. Is a ques-
Wang, X., Wei, J., Schuurmans, D., Le, Q. V., Chi,
tion decomposition unit all we need? In Proceedings of
E. H., Narang, S., Chowdhery, A., and Zhou, D. Self-
the 2022 Conference on Empirical Methods in Natural
consistency improves chain of thought reasoning in lan-
Language Processing, pp. 4553–4569, 2022.
guage models. In The Eleventh International Conference
Petroni, F., Lewis, P., Piktus, A., Rocktäschel, T., Wu, Y., on Learning Representations, 2023.
Miller, A. H., and Riedel, S. How context affects language
models’ factual predictions. In Automated Knowledge Wang, Z., Liu, A., Lin, H., Li, J., Ma, X., and Liang, Y.
Base Construction, 2020. RAT: Retrieval augmented thoughts elicit context-aware
reasoning in long-horizon generation. arXiv preprint
Ram, O., Levine, Y., Dalmedigos, I., Muhlgay, D., Shashua, arXiv:2403.05313, 2024b.
A., Leyton-Brown, K., and Shoham, Y. In-context
retrieval-augmented language models. Transactions of Wei, J., Wang, X., Schuurmans, D., Bosma, M., Xia, F., Chi,
the Association for Computational Linguistics, 11:1316– E., Le, Q. V., Zhou, D., et al. Chain-of-thought prompting
1331, 2023. elicits reasoning in large language models. In Advances
in Neural Information Processing Systems, volume 35,
Ranaldi, L., Valentino, M., and Freitas, A. Elicit- pp. 24824–24837. Curran Associates, Inc., 2022.
ing critical reasoning in retrieval-augmented language
models via contrastive explanations. arXiv preprint Welleck, S., Bertsch, A., Finlayson, M., Schoelkopf, H., Xie,
arXiv:2410.22874, 2024. A., Neubig, G., Kulikov, I., and Harchaoui, Z. From de-
coding to meta-generation: Inference-time algorithms for
Schick, T., Dwivedi-Yu, J., Dessı̀, R., Raileanu, R., Lomeli,
large language models. arXiv preprint arXiv:2406.16838,
M., Hambro, E., Zettlemoyer, L., Cancedda, N., and
2024.
Scialom, T. Toolformer: Language models can teach
themselves to use tools. In Advances in Neural Informa- Yang, Z., Qi, P., Zhang, S., Bengio, Y., Cohen, W. W.,
tion Processing Systems, volume 36. Curran Associates, Salakhutdinov, R., and Manning, C. D. HotpotQA: A
Inc., 2024. dataset for diverse, explainable multi-hop question an-
Shuster, K., Poff, S., Chen, M., Kiela, D., and Weston, J. swering. In Proceedings of the 2018 Conference on Em-
Retrieval augmentation reduces hallucination in conver- pirical Methods in Natural Language Processing, 2018.
sation. arXiv preprint arXiv:2104.07567, 2021.
Yao, S., Zhao, J., Yu, D., Du, N., Shafran, I., Narasimhan,
Sun, J., Xu, C., Tang, L., Wang, S., Lin, C., Gong, Y., Ni, K., and Cao, Y. ReAct: Synergizing reasoning and act-
L., Shum, H.-Y., and Guo, J. Think-on-graph: Deep and ing in language models. In International Conference on
responsible reasoning of large language model on knowl- Learning Representations, 2023.
edge graph. In The Twelfth International Conference on
Learning Representations, 2024. Yao, S., Yu, D., Zhao, J., Shafran, I., Griffiths, T., Cao,
Y., and Narasimhan, K. Tree of thoughts: Deliberate
Tang, Y. and Yang, Y. Multihop-RAG: Benchmarking problem solving with large language models. In Advances
retrieval-augmented generation for multi-hop queries. In in Neural Information Processing Systems, volume 36.
First Conference on Language Modeling, 2024. Curran Associates, Inc., 2024.
10
Efficient Test-Time Planning for Retrieval Augmented Generation
Zhou, D., Schärli, N., Hou, L., Wei, J., Scales, N., Wang,
X., Schuurmans, D., Cui, C., Bousquet, O., Le, Q. V.,
and Chi, E. H. Least-to-most prompting enables complex
reasoning in large language models. In The Eleventh
International Conference on Learning Representations,
2023.
11
Efficient Test-Time Planning for Retrieval Augmented Generation
Appendices
The supplementary document is organized as follows: App. A presents the characteristics and specifications of datasets used
in the evaluations. App. B details baseline models employing traditional prompting approaches, their implementation and
specific prompts. App. C describes the state-of-the-art RAG methods evaluated in the experiments. App. D elaborates on
the proposed Plan∗ RAG framework, encompassing reasoning plan generation, dynamic subquery generation, and answer
generation through DAG traversal. Finally, App. E provides details on the experiment setup.
A. Dataset details
In this section, we discuss the datasets used in the experiments. The datasets are particularly characterized into multi-hop
and single-hop depending on the nature of the queries they contain.
A.1. Multi-Hop QA
For multi-hop queries, we focus on three datasets: HotpotQA (Yang et al., 2018), StrategyQA (Geva et al., 2021), and
MuSiQue-Ans (Trivedi et al., 2022)
HotpotQA HotpotQA is a multi-hop dataset collected from English Wikipedia. The questions are diverse and not
constrained to any pre-existing knowledge bases or knowledge schemas. The dataset contains 7,405 queries in the dev-
fullwiki split. Although, each question in the dataset comes with two gold paragraphs, as well as a list of sentences in these
paragraphs that crowd workers identify as supporting facts necessary to answer the question, we do not use these in our
experiments and use contriever to fetch the relevant documents from the Wikipedia embeddings.
StrategyQA StrategyQA is a question-answering benchmark requiring multiple reasoning steps to answer each question.
Questions are short, topic-diverse, and require specific reasoning strategies for answers. We use the dataset that is available
on the Self-RAG repository Asai et al. (2023). The dataset consists of 2,234 question-answer pairs. The dataset covers a
broad range of topics including science, history, and common sense reasoning.
MuSiQue-Ans MuSiQue-Ans is a multi-hop question answering dataset comprising 2,417 questions spanning 2 to 4
reasoning hops. Compared to existing QA datasets, MuSiQue-Ans presents a higher level of difficulty, evidenced by a
threefold increase in the gap between human and machine performance. It is specifically designed to be resilient against
models that rely on disconnected or shallow reasoning patterns.
A.2. Single-Hop QA
To evaluate model performance on single-hop queries, we use PopQA (Mihaylov et al., 2018).
PopQA PopQA is an open-domain question-answering dataset designed to assess a model’s ability to retrieve and generate
answers based on factual knowledge. The dataset consists of factual questions, many of which require specific knowledge of
popular culture, history, and general world facts. In total the size of the dataset is 1,399 question-answer pairs.
Be precise and give answer to the query. Response should be a valid JSON, that can be
passed to [Link] directly, with a key as Response which only has 2-3 words. Do not
use complete sentences or punctuation. In JSON, put every value as a string always,
not float.
12
Efficient Test-Time Planning for Retrieval Augmented Generation
Example:
Vanilla-RAG We experiment with the standard RAG method, i.e. retrieving top-k relevant documents for each query and
providing them as context to the LLM. For our experiments, we use Contriever (Izacard et al., 2022) as the retriever with
k=5. Similar to Vanilla-LLM, we experiment with 3 models: GPT-3.5turbo , Llama2-chat13b , and Llama3.1-instruct8b . Below
is the prompt that we use:
You are a concise answering assistant. Use the Retrievals while generating the answer
and keep the answer grounded in the retrievals. Generate a JSON with a single key "
Response" and a value that is a short phrase or a few words. In JSON, put every value
as a string always, not float.
Note: Generate only JSON and no explanation or repeating the query or retrievals.
Example:
Query: Who was the PM of India when India performed its first nuclear test?
Retrievals: [["Indira Gandhi was the PM of India in 1974"], ["Indira Gandhi was the
first woman PM of India."]]
Generation: {
"Response": "Indira Gandhi"
}
CoT-RAG We combine chain-of-thought (CoT) prompting with RAG, using Contriever as the retriever with k=5. We
experiment with the three models: GPT-3.5turbo , Llama2-chat13b , and Llama3.1-instruct8b . Below is the prompt that we use:
You are a highly intelligent assistant skilled at solving problems by reasoning step-
by-step. For each query, explain your reasoning clearly and logically in multiple
steps, and then provide the final answer (Response). Use retrievals and keep your
generation grounded in the retrievals. Produce a list of reasoning steps along with
the Answer (Response) (precise and max 3-4 words).
Note: Generate only reasoning steps and response. no explanation or repeating the
query or retrievals. Strictly follow the below template and only return the JSON with
no explanation.
Example:
Query: Who was the PM of India when India performed its first nuclear test?
Retrievals:[["Indira Gandhi was the PM of India in 1974"], ["Indira Gandhi was the
first woman PM of India."]]
Generation:{
"Reasoning_steps" : ["India performed its first nuclear test in 1974", "Indira
Gandhi was the PM of India in 1974."],
"Response": "Indira Gandhi"
}
13
Efficient Test-Time Planning for Retrieval Augmented Generation
QD-RAG We experiment with query decomposition (QD) based RAG, where the original query is first broken down into
simpler sub-queries. We use Contriever as the retriever with k=5 and evaluate three models: GPT-3.5turbo , Llama2-chat13b ,
and Llama3.1-instruct8b . Below is the prompt used for query decomposition:
You are a helpful assistant that breaks complex queries into simpler ones that are
easy to answer. Therefore, your job is to simplify complex queries into multiple
queries that can be answered in isolation to eachother. If the query is simple, then
keep it as it is.
NOTE: Always return a python list of subqueries that be passed to eval() directly.
Examples:
Query: Who has the highest score in the last two ODI cricket world cups?
Subqueries: [‘Who has the highest score in the last ODI cricket world cup?’, ‘Who has
the highest score in the second last ODI cricket world cup?’, ‘Who scored the highest
score among these two?’]
After decomposing the query into sub-queries, we solve each sub-query sequentially. The answers to previous sub-queries
are provided as “Known answers” to help maintain consistency and build upon intermediate findings. Below is the prompt
used for answering each sub-query:
You are a concise answering assistant. Use the Retrievals while generating the answer
and keep the answer grounded in the retrievals. If Known answers are given, use them
while generating the response. Generate a JSON with a single key "Response" and a
value that is a short phrase or a few words. In JSON, put every value as a string
always, not float.
Strictly follow the format below, and provide only the "Generation" part.
Example:
Query: Who was the PM of India when India performed its first nuclear test?
Retrievals: [["Indira Gandhi was the PM of India in 1974"], ["Indira Gandhi was the
first woman PM of India."]]
Known answers: Q=When did India perform the first nuclear test? A=India conducted its
first nuclear test on May 18, 1974, at the Pokhran Test Range in Rajasthan, India.
Generation: {
"Response": "Indira Gandhi was the PM of India when India performed its first
nuclear test in 1974."
}
14
Efficient Test-Time Planning for Retrieval Augmented Generation
relevance of the retrieved documents and the accuracy of the output. We tested Self-RAG7b and Self-RAG13b on both single
and multi-hop datasets. As a retriever, we use contriever and set k=5. The temperature for both the models was set to 0 to
maintain non-stochasticity. We use the official codebase released by the authors for all the experiments.
RQ-RAG Chan et al. (2024) proposed RQ-RAG, a framework where the base Llama2 model is trained to enable it to
dynamically refine search queries through rewriting, decomposing, and clarifying ambiguities. Further, control tokens are
used to direct the generation process. In addition, the authors use three different sampling methods which includes selection
based on perplexity (PPL), confidence, and an ensemble approach, in order to select the final answer. In our experiments,
total of k=5 documents are retrieved at each depth for any given query and the maximum depth is set to 2. The ensemble
answer is used in all the experiments as that gave the best results. Similar to Self-RAG, temperature was set to 0 to remove
any stochasticity. We use the official codebase released by the authors for all the experiments.
ReAct ReAct (Yao et al., 2023) combines reasoning and acting with language models to solve diverse language reasoning
and decision-making tasks. The model uses an interleaved sequence of Thought, Action, and Observation steps to answer
questions. For the experiment, we use Contreiver as a retriever, and the actions are limited to two options: ‘search’ and
‘finish’. Therefore, the prompt for the models were changed accordingly. We experimented using both Llama3.1-instruct8b
and GPT-3.5turbo models, with the temperature set to 0 in both cases. We used only one retrieval (k=1) per thought as setting
k=5 documents per thought gave poor results due to exploding contexts. The prompt used is as follows:
You are a question answering agent, you need to solve the given question with
interleaving Thought, Action, Observation steps. You need to do this one step at a
time, given some previous steps. Thought can reason about the current situation, and
Action can be of two types:
Search[entity], which searches and returns the top 1 relevant article.
Finish[answer], which returns the answer and finishes the task.
Action can be only of the above two forms. They need to either include Search or
Finish with the entity or answer enclosed in the bracket respectively.
Question: Musician and satirist Allie Goertz wrote a song about the "The Simpsons"
character Milhouse, who Matt Groening named after who?
Thought 1: I only need to search Milhouse and find who it is named after.
Action 1: Search[Who was Milhouse named after?]
Observation 1: [Lisa kisses Milhouse. Lisa told Milhouse he should not give up
searching for other girls and that life has unexpected things to offer. She told him
he is cute in the moonlight, which caused him to fall off a cliff nearly to his death,
but a bald eagle caught him, which left him saying "everything is coming up Milhouse
!" Milhouse was designed by Matt Groening for a "Butterfinger" commercial, and it was
decided to use the character in the series. Milhouse was named after U.S. President
Richard Nixon, whose middle name was Milhous. The name was the most "unfortunate name
"]
Thought 2: Milhouse was named after U.S. president Richard Nixon, so the answer is
Richard Nixon.
Action 2: Finish[Richard Nixon]
D. Plan∗ RAG
We present the prompts and details of Plan∗ RAG, including its reasoning plan, tag replacement, and answer generation LM.
For all the models, we set temperature=0. Note that for the Llama2 model, we wrap the prompts with the required system
tags: <s> [INST] <<SYS>> and <</SYS>>.
15
Efficient Test-Time Planning for Retrieval Augmented Generation
You are a reasoning DAG generator expert. The goal is to make a reasoning DAG with
minimum nodes. Given a query, if it is complex and requires a reasoning plan, split it
into smaller, independent, and individual subqueries. The query and subqueries are
used to construct a rooted DAG so make sure there are NO cycles and all nodes are
connected, there is only one leaf node with a single root and one sink. DAG
incorporates Markov property i.e. you only need the answer of the parent to answer the
subquery. The main query should be the parent node of the initial set of subatomic
queries such that the DAG starts with it. Return a Python list of tuples of parent
query and the subatomic query which can be directly given to eval().
For the subquery generation, input a tag <AI.J> where the answer of the parent query
should come to make the query complete.
NOTE: Make the DAG connected and for simple queries return the original query only
without any reasoning DAG.
Example:
Query:What is the tallest mountain in the world and how tall is it?
DAG: [
("Q: What is the tallest mountain in the world and how tall is it?", "Q1.1:
What is the tallest mountain in the world?"),
("Q1.1: What is the tallest mountain in the world?", "Q2.1: How tall is <A1
.1>?")
]
You are provided a question with tags where the corresponding tag answers need to be
replaced. Replace tags with answers of the previous question in such a way that the
final question is coherent and logical.
Just replace all parts of the answers in the main question. Do not reason or answer
the question. Your role is just to replace tags with all parts of the answer.
NOTE: Only output the question with no explanation or any other details.
Example:
16
Efficient Test-Time Planning for Retrieval Augmented Generation
Query: Q2.1: Who was the president of India when the captain of the Indian cricket
team was <A1.1> and vice-captain was <A1.2> in 2018?
Q1.1: Who was the captain of India cricket team in 2018?
A1.1: The captain of Indian cricket team in 2018 was [Link].
Q1.2: Who was the vice-captain of India cricket team in 2018?
A1.2: The vice-captain of Indian cricket team in 2018 was Virat Kohli.
Output: Q2.1: Who was the president of India when the captain of the Indian cricket
team was [Link] and vice-captain was Virat Kohli?
Example:
Query: Who was the PM of India when India performed its first nuclear test?
Retrievals: [["Indira Gandhi was the PM of India in 1974"], ["Indira Gandhi was the
first woman PM of India."]]
Known answers: Q=When did India perform the first nuclear test? A=India conducted its
first nuclear test on May 18, 1974, at the Pokhran Test Range in Rajasthan, India.
Generation: {
"Response": "Indira Gandhi was the PM of India when India performed its first
nuclear test in 1974."
}
E. Experiments
This section presents comprehensive details of our experimental evaluations. We begin with an analysis of a HotpotQA
example query (Fig. 2), demonstrating comparative method outputs in App. E.1. We then evaluate performance on multi-hop
and single-hop datasets in App. E.2, presenting results in Table 2 and Table 3. Following this, we analyze Plan∗ RAG’s
retrieval effectiveness in App. E.3 and information gain results in App. E.4. Finally, we describe the reasoning plan
generation experiments using a finetuned Llama3.1-instruct8b model in App. E.5.
17
Efficient Test-Time Planning for Retrieval Augmented Generation
18
Efficient Test-Time Planning for Retrieval Augmented Generation
Example:
19