Multi-agent query reformulation: Challenges and the role of diversity

Rodrigo Nogueira, Jannis Bulian, Massimiliano CiaramitaDeepRLStructPred @ ICLR 2019

In the world of information retrieval, the biggest hurdle isn't always the search engine—it’s the query. Users often ask questions in ways that don't match how information is indexed. Query reformulation (rewriting a query to get better results) is a classic solution. However, training a single AI "generalist" to master every possible way to rewrite a query is computationally expensive and often leads to stagnant strategies.

In this paper, researchers propose a "divide and conquer" approach: instead of one master rewriter, why not use a committee of specialists?

TL;DR

The authors introduce a multi-agent reinforcement learning (RL) framework where multiple specialized sub-agents generate diverse query reformulations. By training these agents on disjoint subsets of data and using a meta-agent to aggregate the results, they achieved state-of-the-art performance on retrieval tasks while training up to 10x faster than traditional methods.

The Problem: Exploration and Bottlenecks

Reinforcement learning has been successful in NLP, but it suffers from an exploration problem. To find the "perfect" way to rewrite a query, an agent needs to explore a massive space of natural language. A single agent often converges too quickly on a mediocre strategy.

Furthermore, training large-scale RL models on massive datasets like Wikipedia is slow. Existing distributed methods require constant communication of weights and gradients between machines, creating a massive network bottleneck. The authors sought a way to achieve efficient, parallelized exploration that results in a diverse set of search strategies.

Methods: A Committee of Specialists

The researchers implemented a hierarchical structure to tackle these challenges:

Architectural comparison of search methods: (a) standard search, (b) single reformulator, and (c) the proposed multi-agent reformulator.
  1. The Sub-Agents (The Specialists): The training data is split into disjoint partitions. Each sub-agent (a sequence-to-sequence model) is trained only on its specific slice using the REINFORCE algorithm. Because they see different data, they naturally develop different "personalities" or strategies for rewriting queries.
  2. The Meta-Agent (The Aggregator): This agent is a "generalist" trained on the full dataset. It doesn't rewrite queries itself; instead, it evaluates all the answers returned by the sub-agents’ reformulations, scores them based on rank and relevance, and picks the best final result.
  3. The BERT Boost: In their most advanced variant, the standard aggregator was replaced with a BERT-based model. BERT was used to rank the documents returned by the various reformulations, acting as a high-powered judge for the sub-agents' work.

Datasets

The models were evaluated across two main domains:

  • Document Retrieval: TREC-CAR (Wikipedia article titles and section headers), Jeopardy (using clues to find Wikipedia articles), and MSA (Microsoft Academic papers).
  • Question Answering: SearchQA (Jeopardy! clues paired with Google search snippets).

Key Insights and Ideas

  • Diversity is the Secret Sauce: The performance gains weren't just from having "more" models; they were from having different models. The aggregator performs best when it has a wide variety of high-quality candidate documents to choose from.
  • Randomness Trumps Logic: Surprisingly, the authors found that randomly partitioning the data worked better than "semantic clustering" (grouping similar topics together). Semantic clustering made sub-agents too specialized, whereas random partitioning kept them robust while still encouraging distinct policies.
  • Zero-Communication Training: Because sub-agents are trained on disjoint data and don't need to share gradients, the system is "embarrassingly parallel." This removes the communication overhead that plagues most distributed RL.
  • Stability: The multi-agent approach showed much lower variance in performance compared to single-agent runs. If one sub-agent "diverges" (fails to learn), the aggregator can simply learn to ignore its suggestions.

Key Results

The multi-agent approach yielded significant improvements in both performance and efficiency.

Recall@40 performance on the TREC-CAR dataset as the number of sub-agents increases.
  • Massive Gains with BERT: Combining the multi-agent reformulators with a BERT aggregator led to a 50-100% improvement in Mean Average Precision (MAP) across all retrieval datasets compared to previous state-of-the-art methods.
  • Efficiency: The proposed model with 10 sub-agents achieved better performance than a standard ensemble while training 10 times faster. As seen in the TREC-CAR evaluation, performance scales with the number of sub-agents before plateauing.
  • Superiority over Ensembles: The specialized sub-agents outperformed a standard ensemble of agents trained on the full dataset, proving that data-level specialization is more effective than simple model averaging.

Limitations and Future Work

  • The "High-Performance" Ceiling: The authors noted that when the underlying retrieval system is already extremely good (like a well-tuned BERT model), RL-based reformulation only provides marginal gains. It is "hard to improve on perfection."
  • Defining Diversity: While they proved diversity is important, they admitted it’s still hard to characterize or "force" it. Their attempt to use clustering to create diversity failed, suggesting we need better metrics for what makes two search strategies "different."
  • Future Directions: The authors suggest exploring diversity directly within the beam search decoder or investigating more complex hierarchical RL structures where agents can communicate more nuanced information than just final answers.

Summary updated

Abstract

We investigate methods to efficiently learn diverse strategies in reinforcement learning for a generative structured prediction problem: query reformulation. In the proposed framework an agent consists of multiple specialized sub-agents and a meta-agent that learns to aggregate the answers from sub-agents to produce a final answer. Sub-agents are trained on disjoint partitions of the training data, while the meta-agent is trained on the full training set. Our method makes learning faster, because it is highly parallelizable, and has better generalization performance than strong baselines, such as an ensemble of agents trained on the full data. We evaluate on the tasks of document retrieval and question answering. The improved performance seems due to the increased diversity of reformulation strategies. This suggests that multi-agent, hierarchical approaches might play an important role in structured prediction tasks of this kind. However, we also find that it is not obvious how to characterize diversity in this context, and a first attempt based on clustering did not produce good results. Furthermore, reinforcement learning for the reformulation task is hard in high-performance regimes. At best, it only marginally improves over the state of the art, which highlights the complexity of training models in this framework for end-to-end language understanding problems.
BibTeX
@inproceedings{nogueira2019multi,
  author = {Rodrigo Nogueira and Jannis Bulian and Massimiliano Ciaramita},
  title = {{Multi-agent query reformulation: Challenges and the role of diversity}},
  booktitle = {DeepRLStructPred @ ICLR},
  year = {2019},
  url = {https://openreview.net/forum?id=MsZX9mzOqHh},
}
Figure