Hindsight: Posterior-guided training of retrievers for improved open-ended generation

Ashwin Paranjape, Omar Khattab, Christopher Potts, Matei Zaharia, Christopher D. Manning

TL;DR

Training retrieval-augmented generation (RAG) models for open-ended tasks like conversation is notoriously difficult. While many different knowledge snippets can be "relevant" to a conversational topic, typically only one specific snippet explains the actual response found in the training data. This paper introduces Hindsight, a training framework that uses a "guide-retriever" to look at the target answer during training, identifying the exact passage needed. By optimizing the Evidence Lower Bound (ELBO), Hindsight significantly improves how well models find relevant information and ground their responses in that knowledge.

What Problem Does This Paper Address?

In standard retrieval-augmented generation (like the RAG-Sequence model), a retriever finds a set of passages based on a query, and a generator produces an answer based on those passages. This works well for "one-to-one" tasks like Fact-Checking or Short-Answer QA, where there is usually one clear piece of evidence for one clear answer.

However, for "one-to-many" tasks like open-ended dialogue, the relationship is much messier. For a given conversational context, hundreds of Wikipedia passages might be context-relevant (on-topic), but only one is label-relevant (the one the human actually used to write their response).

In open-ended tasks, a single context can map to multiple valid knowledge passages, but only one aligns with the target response.

Existing methods struggle with this ambiguity. If the retriever doesn't happen to put the "label-relevant" passage in the top-k results during training, the generator never learns to rely on retrieved text. It essentially ignores the knowledge and "hallucinates" from its own internal memory. The authors identify that the standard training objective (marginalized log-likelihood) provides a "flat" and weak signal that fails to distinguish between being broadly on-topic and being specifically useful for the target output.

Methods

The core innovation of this paper is the introduction of a guide-retriever $Q(z|x, y)$. Unlike the standard retriever, which only sees the input context $x$, the guide-retriever has the benefit of "hindsight"—it sees both the input $x$ and the target output $y$.

The Hindsight training framework utilizes an outer loop for index refreshing and a fast inner loop where the guide-retriever assists the standard retriever.

The Hindsight framework implements this through several key mechanisms:

  1. Posterior-Guided Training: During training, the guide-retriever identifies the passages that best explain the target output $y$.
  2. ELBO Objective: The authors replace the standard marginalization loss with the Evidence Lower Bound (ELBO). This objective does two things:
  3. It forces the generator to produce the target $y$ specifically using the passages identified by the guide-retriever.
  4. It forces the standard retriever to match the guide-retriever’s selections (using a mode-seeking reverse-KL divergence).
  5. Iterative Closed-Set Training: To make training efficient across millions of documents, they use an "outer loop" to refresh a high-recall "closed-set" of passages and a "fast inner loop" to train the model parameters on that subset.
  6. Distributional Repositioning: To prevent the model from becoming too dependent on the guide-retriever (which isn't available at test time), they use an $\alpha$-mixture of passages from both the standard and guide retrievers during training.

Datasets and Key Results

The authors evaluate Hindsight on two knowledge-intensive generation tasks: Wizard of Wikipedia (WoW) (a classic "one-to-many" dialogue task) and MS MARCO NLGen (a "one-to-one" search query task).

Hindsight outperformed the standard marginalized loss baseline across several critical dimensions:

  • Retrieval Relevance: On Wizard of Wikipedia, the retriever saw a 23% relative improvement in Success@10 (finding the gold passage in the top 10).
  • Generator Grounding: The generator's responses showed a 19% relative improvement in Novel-F1 overlap with the retrieved passage, indicating it was actually using the provided knowledge rather than just reciting memorized facts.
  • End-to-End Quality: The overall system produced better responses, achieving a 6.4% relative improvement in Novel-F1@1 on the WoW dataset.
  • Leaderboard Performance: The model achieved State-of-the-Art (at the time of publication) on the generation metrics of the KILT benchmark for Wizard of Wikipedia.

Key Insights and Future Work

  • The "Flat Signal" Problem: In open-ended tasks, the generator's probability distribution over many plausible answers is naturally "flat." When used as a proxy for retrieval supervision, this flatness fails to teach the retriever how to pick the best passage. Hindsight solves this by explicitly guiding the retriever.
  • Reverse-KL as a Mode-Seeker: By using the reverse-KL divergence in the ELBO, the retriever is encouraged to "pick a mode"—to find at least one label-relevant passage—rather than trying to assign low probability to everything that isn't perfectly relevant.
  • Grounding $\neq$ Correctness: While the model is better at using the retrieved passage, the authors note that "grounding" doesn't strictly guarantee "correctness." A model could ground its response in a passage that is factually wrong or slightly off-topic. Future work could use the $\alpha$-mixture parameter as a "knob" to control how much the generator trusts the retriever versus its own internal knowledge.

Summary updated

BibTeX
@inproceedings{paranjape2022hindsight,
  author = {Ashwin Paranjape and Omar Khattab and Christopher Potts and Matei Zaharia and Christopher D. Manning},
  title = {{Hindsight: Posterior-guided training of retrievers for improved open-ended generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=uvFmwKDZiVj},
}
Figure