TL;DR
Standard text retrievers compress a search query into a single vector, which inherently fails when a query requires a diverse, multi-modal set of answers. To overcome this bottleneck, the authors introduce the Autoregressive Multi-Embedding Retriever (AMER), a novel architecture that sequentially generates multiple query vectors to capture distinct target documents. AMER achieves perfect recall on synthetic multi-target datasets and delivers up to a 144% relative performance gain on real-world datasets when target documents are highly diverse.
What Problem Does This Paper Address?
Modern Retrieval-Augmented Generation (RAG) systems rely on dense retrievers to fetch relevant context for Large Language Models (LLMs). Most state-of-the-art retrievers use a bi-encoder architecture, mapping a query to a single vector and finding the closest document vectors in a shared embedding space.
However, this single-vector approach breaks down when a query is ambiguous or requires a list of distinct answers (e.g., "From which country did Seattle Storm make draft selections?"). In these scenarios, the ideal distribution of relevant documents is multi-modal. As the distance between these diverse target documents increases in the embedding space, a single query vector is forced to "average" them out, often landing in an irrelevant region. The authors empirically demonstrate this failure mode across several top-performing retrievers (like NV-Embed and Stella), showing a clear performance degradation as target document diversity increases.
Methods
To capture multi-modal target distributions, the authors propose AMER (Autoregressive Multi-Embedding Retriever). Instead of producing one vector, AMER leverages an autoregressive language model to generate a sequence of continuous query embeddings.
Key components of the AMER pipeline include:
- Frozen Document Encoder: To avoid the massive computational cost of re-indexing a 25-million-passage corpus during training, the document encoder remains frozen, while only the query encoder is optimized.
- Hungarian Matching Loss: Because the set of target documents is unordered, forcing the model to learn a specific sequence would introduce artificial noise. AMER uses the Hungarian matching algorithm to optimally pair each generated query vector with its closest ground-truth document vector before calculating the InfoNCE contrastive loss.
- Scheduled Sampling: During training, the model transitions from feeding ground-truth target embeddings as context to feeding its own previous predictions, bridging the gap between training and inference.
- Round-Robin Aggregation: During inference, AMER generates a fixed number of query vectors, executes a separate search for each, and merges the resulting document lists using a simple round-robin heuristic to ensure diversity.
Datasets
The architecture was validated using both synthetic and real-world datasets:
- Synthetic Vector Dataset: Created by applying five distinct mathematical transformations (Linear or MLP) to standard Gaussian input vectors, generating five highly diverse target vectors per query.
- AmbigQA: A dataset containing ambiguous open-domain questions that map to multiple distinct, disambiguated answers (averaging 2.58 targets per query).
- QAMPARI: A dataset explicitly designed for list-type questions, filtered by the authors to focus on queries requiring 5 to 8 distinct target documents (averaging 6.09 targets per query).
- Low Similarity Subset: A curated subset representing the top 33% most diverse queries (where target document embeddings have the lowest cosine similarity) to evaluate performance under extreme multi-modality.
Key Insights and Ideas
- The Single-Vector "Dead Zone": On synthetic linear data, single-query baselines failed completely (0% recall). This happens because the average of opposing target vectors is zero, forcing a single-vector retriever to look in the exact center of the space where no valid documents exist.
- Real-World Data is Surprisingly Homogeneous: The authors discovered that in standard multi-answer datasets like AmbigQA, target documents are actually highly similar to one another (average cosine similarity of 0.90) compared to random documents. This homogeneity masks the limitations of single-vector retrievers in average benchmarks.
- Scale Drives Diversity: Analysis of the generated embeddings showed that larger base language models (e.g., Llama-3-8B vs. Llama-1B) naturally learn to output more distinct, diverse query vectors, effectively mapping out broader target distributions.
Key Results
- Synthetic Benchmarks: AMER achieved a flawless 100% MRecall@10/100 across all input distributions, whereas the single-query baseline maxed out at 21.1% recall on MLP transformations and failed entirely on linear ones.
- Real-World Benchmarks: On the full test sets, AMER achieved macro-averaged relative gains of 4.18% on AmbigQA and 21.35% on QAMPARI over the single-query baseline.
- Hard Diversity Gains: When evaluated strictly on the Low Similarity Set, AMER's advantages exploded, yielding a 144.74% relative gain on QAMPARI, proving its capability to hunt down highly disparate pieces of information.
Limitations and Future Work
While AMER establishes a strong proof-of-concept for multi-query retrieval, a few limitations remain:
- Fixed Prediction Steps: The model currently generates a predetermined, fixed number of query vectors ($m_{pred}$) rather than dynamically stopping when a query's intent is fully satisfied.
- Heuristic Aggregation: Merging document lists via round-robin selection is straightforward but potentially suboptimal compared to a learned, cross-vector reranking mechanism.
- Frozen Document Index: Keeping the document encoder frozen accelerates training but prevents the system from learning joint query-document representations that could further optimize retrieval spaces.
Summary updated