Query Decomposition for RAG: Balancing Exploration-Exploitation

Roxana Petcu, Kenton Murray, Daniel Khashabi, Evangelos Kanoulas, Maarten de Rijke, Dawn J. Lawrie, Kevin Duh

TL;DR

This paper tackles the challenge of efficiently retrieving relevant documents for complex queries in Retrieval-Augmented Generation (RAG) systems. They propose framing query decomposition and document selection as a multi-armed bandit problem, effectively balancing the need to explore new information sources with exploiting promising ones. This approach leads to significant improvements in document retrieval precision and downstream generation tasks.

What Problem Does This Paper Address?

Retrieval-Augmented Generation (RAG) systems are powerful tools for generating answers grounded in external knowledge. However, when faced with complex user requests, these systems often need to decompose the query into smaller sub-queries to retrieve relevant information from multiple documents. The core challenge lies in efficiently selecting which sub-queries to pursue and how many documents to retrieve for each. Simply retrieving a fixed number of documents for every sub-query can lead to two major issues: (1) exceeding the context window of Large Language Models (LLMs) with too much information, and (2) introducing noise and irrelevant content that degrades generation quality. This paper addresses this by proposing a principled method to dynamically balance exploration (finding new, potentially relevant sub-queries or documents) and exploitation (gathering more information from already promising sources) within a constrained retrieval budget.

Methods

The authors frame the problem of query decomposition and document retrieval as a multi-armed bandit (MAB) problem. In this setting:

  • Arms: Each sub-query is treated as an "arm" of the bandit.
  • Pulling an Arm: Retrieving a document from the ranked list of a specific sub-query.
  • Reward: The relevance of the retrieved document.

They employ Thompson Sampling, a popular MAB algorithm, to adaptively decide which sub-query to "pull" next. This involves maintaining a belief (posterior distribution) about the utility of each sub-query and updating it with each observed document's relevance.

Key novelties in their approach include:

  • Rank Information: Incorporating the ranking of documents within a sub-query's results as a signal for relevance.
  • Diversity: Encouraging the retrieval of documents that offer new information, rather than those with high content overlap with already retrieved documents.
  • Hierarchical Decomposition: Extending the MAB framework to handle nested sub-queries, where child sub-queries inherit posterior beliefs from their parents, allowing for more efficient exploration in complex query structures.

They propose a Bernoulli top-k UCB diversity-aware reward policy that combines these factors to guide the bandit's decisions.

Datasets

The paper evaluates their approach on two datasets:

  • NeuCLIR: This dataset features decomposable user requests and is designed for evaluating information retrieval models across multiple languages. For this study, documents were translated to English.
  • ResearchyQuestions: This dataset consists of complex, non-factoid, multi-perspective questions that inherently require decomposition. The authors aggregated documents relevant to these questions to form their corpus.

Key Insights and Ideas

  • Bandits for RAG is a natural fit: The sequential and budget-constrained nature of document retrieval for complex queries aligns perfectly with the exploration-exploitation paradigm of multi-armed bandits.
  • Rank matters: Simply exploring documents sequentially without considering their rank is suboptimal. Incorporating rank information significantly boosts retrieval performance.
  • Diversity is crucial: Retrieving diverse documents, not just relevant ones, is important for comprehensive information gathering and avoiding redundancy.
  • Hierarchy helps: For complex queries that can be broken down hierarchically, modeling correlations between sub-queries (e.g., a child query inheriting information from its parent) leads to more efficient exploration, especially under tight budgets.
  • Bernoulli distributions are effective: When dealing with binary relevance labels, Bernoulli distributions with appropriate reward functions (especially those incorporating rank and diversity) outperform other modeling choices.

Key Results

  • Document-level precision: The proposed bandit approach, particularly with rank information, yielded a 35% gain in document-level precision compared to baselines.
  • α-nDCG: A 15% increase in α-nDCG was observed, indicating improved ranking of relevant documents.
  • Long-form generation: The bandit-selected document subsets led to better performance in downstream report generation tasks, with improvements of 6.0–9.9% in citation support, 6.7–8.5% in nugget coverage, and 7.3–9.6% in sentence support.
  • Hierarchical decomposition: For small budgets, hierarchical bandit approaches showed significant performance boosts (e.g., 21.6% for Bernoulli, 32.3% for top-k=5) compared to treating sub-queries as flat.

Limitations and Future Work

  • Retriever dependency: The performance of the bandit approach is inherently tied to the quality of the underlying retriever. If the retriever is poor, the bandit's ability to learn relevance is limited.
  • Dynamic sub-query generation: In some settings (like NeuCLIR), sub-queries are regenerated dynamically, introducing noise. The paper acknowledges that sub-queries can also be sampled from an unbounded search space.
  • Future Work: The authors suggest exploring correlated and contextualized bandits where correlations are not explicit but emerge from the data. They also propose training retrieval models optimized for relevance, diversity, exploration, or long-form generation within a policy-learning framework.

Summary updated

BibTeX
@inproceedings{petcu2026query,
  author = {Roxana Petcu and Kenton Murray and Daniel Khashabi and Evangelos Kanoulas and Maarten de Rijke and Dawn J. Lawrie and Kevin Duh},
  title = {{Query Decomposition for RAG: Balancing Exploration-Exploitation}},
  booktitle = {EACL (Volume 1: Long Papers)},
  year = {2026},
  doi = {10.18653/v1/2026.eacl-long.322},
}
Figure