Learning to Rank for Multiple Retrieval-Augmented Models through Iterative Utility Maximization

Alireza Salemi, Hamed Zamani

TL;DR

This paper introduces Iterative Utility Maximization (IUM), a framework designed to optimize a single search engine to serve multiple, diverse Retrieval-Augmented Generation (RAG) agents. By treating LLM-based agents as the primary "users" and iteratively refining search rankings based on their specific task performance, the authors achieve significant gains in accuracy across 18 different RAG models.

What Problem Does This Paper Address?

Traditional search engines are optimized for human behavior (clicks, dwell time). However, the primary "users" of search today are increasingly RAG agents—LLMs that retrieve external data to answer questions or verify facts.

The authors identify three major challenges:

  1. Different "Tastes": LLMs have different information needs than humans and even other LLMs. A small model might need explicit facts, while a larger one can infer details from vague context.
  2. The Cold-Start Feedback Loop: Previous attempts to train "search engines for machines" relied on feedback from an initially untrained retriever. If the initial results are garbage, the feedback is low-quality, leading to a sub-optimal model.
  3. Static vs. Dynamic Needs: Offline training doesn't account for the unique, real-time preferences of an agent during an active session.

Methods

The core contribution is the Iterative Utility Maximization (IUM) framework, which uses an Expectation-Maximization (EM) approach to bridge the gap between retrieval and agent utility.

  • Offline IUM: The search engine retrieves documents for various agents. Each agent provides feedback based on whether a document helped it succeed at its specific task (e.g., achieving an "Exact Match" in QA). This feedback is used to iteratively update a BERT-based cross-encoder re-ranker.
  • Online IUM: During the serving phase, the retriever continues to learn. It processes a batch of queries, collects feedback from the specific agent it is currently serving, and updates its parameters in real-time to "personalize" the results for that agent.
  • Personalization Identifiers: To help the search engine distinguish between users, the authors feed a Task ID (tid) and a Model ID (mid) into the re-ranker. This allows the model to learn that "Agent A (T5 on NQ)" has different needs than "Agent B (BART on FEVER)."

Datasets

The authors evaluated their approach using the KILT (Knowledge-Intensive Language Tasks) benchmark, covering six diverse datasets:

  • Open-domain QA: Natural Questions (NQ), TriviaQA, and HotPotQA.
  • Fact Verification: FEVER.
  • Slot-filling/Relation Extraction: zsRE and T-REx.

They tested these against 18 unique RAG agents created by combining different LLM backbones (T5-small, BART-base) and different RAG strategies (In-Prompt Augmentation vs. Fusion-in-Decoder).

Key Insights and Ideas

  • The Personalization Paradox: Without the Task and Model IDs, the search engine's performance actually decreased with more iterations. It tried to find a "universal average" that satisfied no one. With IDs, the model successfully branched out to meet individual agent needs.
  • Low Overlap is Good: For the same query, different agents only shared about 20% of the same retrieved documents. This confirms that the "best" document for one LLM is often not the best for another.
  • LLM Families: Agents using the same backbone (e.g., both using T5) showed higher similarity in their rankings than agents using different backbones. The search engine effectively learned "architectural preferences."
  • Iterative Refinement: By updating the model over multiple rounds (iterations), the authors solved the "cold start" problem. Each round provided better documents, which led to more nuanced and useful feedback for the next round of training.

Key Results

  • Superiority over Baselines: Offline IUM outperformed state-of-the-art baselines (like uRAG and Contriever) for 14 out of 18 RAG agents.
  • Online Boost: Adding the online adaptation phase further improved performance, showing a strong trend toward better personalization (p-value = 0.061).
  • Significant Gains: On the NQ dataset, IUM improved the Exact Match (EM) score for a BART-based agent from 33.09 (BM25) to 45.11 (Online IUM)—a massive jump in task performance.

Limitations and Future Work

  • Re-ranking Focus: The current work focuses on the re-ranking stage. The authors suggest extending this iterative logic to the first-stage retriever (e.g., dense retrieval) to improve the initial candidate pool.
  • Computational Cost: Updating a model online every few hundred queries is computationally expensive. Future work could explore more efficient "lightweight" adaptation techniques.
  • Unseen Agents: The paper primarily focuses on agents seen during training. How the system generalizes to a completely new LLM architecture or a brand-new task remains an open question.
  • Utility Complexity: The study uses binary feedback (success/failure on a task). Real-world utility might involve multiple factors like response length, safety, or latency.

Summary updated

BibTeX
@inproceedings{salemi2025learning,
  author = {Alireza Salemi and Hamed Zamani},
  title = {{Learning to Rank for Multiple Retrieval-Augmented Models through Iterative Utility Maximization}},
  booktitle = {ICTIR},
  year = {2025},
  doi = {10.1145/3731120.3744584},
}
Figure