Abstract
Traditional information retrieval (IR) systems rely heavily on bi-encoders that produce scalar similarity scores, often sacrificing interpretability and fine-grained precision. We present GeAR (Generation-Augmented Retrieval), a framework that integrates document retrieval with context generation. By jointly optimizing for global similarity and local text generation, GeAR enables a retriever to not only identify relevant documents but also generate the specific snippets that justify its selection. Our results demonstrate that GeAR achieves state-of-the-art retrieval performance, outperforming traditional rerankers in local precision by 12.9% while maintaining a 5x speed advantage.
Introduction
In modern Information Retrieval, the bi-encoder architecture is the standard for large-scale search. By encoding queries and documents into a shared vector space, these models allow for rapid similarity calculations. However, this approach suffers from three primary limitations: a lack of interpretability, coarse granularity that misses specific "needle-in-a-haystack" details, and significant performance degradation on long documents without expensive reranking stages.
GeAR addresses these challenges by asking a fundamental question: Can we build a retriever that understands both the global context and local details without sacrificing inference speed? The proposed solution involves a multi-task architecture that uses generation as a supervisory signal to sharpen the model's internal representations.
Methodology
GeAR utilizes a "one-for-all" architecture composed of three integrated modules:
- Bi-Encoder: A standard dual-encoder setup that facilitates fast global retrieval by mapping queries and documents into a latent vector space.
- Fusion Encoder: A lightweight module utilizing cross-attention mechanisms. This allows the query to interact directly with the document's internal features, identifying specific tokens and sentences of high relevance.
- Text Decoder: A 110M parameter generative head that consumes the fused representations to produce relevant snippets or direct answers.
Multi-Task Learning
The model is trained using a composite loss function that balances Contrastive Learning (CL) for global ranking and Language Modeling (LM) for local context generation. This dual objective ensures that the resulting embeddings are not only useful for broad similarity but are also grounded in the specific textual evidence within the document. A key finding in our research is that the generation task acts as a powerful regularizer; forcing the model to "explain" its choice through generation actually improves its ability to rank documents correctly.
Experimental Setup and Datasets
To evaluate GeAR's versatility, we tested the framework across several benchmarks:
- Standard QA: Benchmarks including SQuAD, Natural Questions (NQ), and TriviaQA.
- PAQ (Probably Asked Questions): A large-scale dataset featuring 65 million query-answer pairs.
- RIR (Relevant Information Retrieval): A novel synthetic dataset developed for this work. Using Llama-3.1-70B, we generated 5.8 million triples consisting of a query, a document, and the specific sentence containing the answer. This dataset was crucial for training the model’s fine-grained "local" understanding.
Key Insights
The Power of Generation as Supervision
Our experiments revealed that the generation task significantly boosts retrieval quality. We identified a "U-shaped" sweet spot for the generation loss weight ($\alpha$). Setting $\alpha \approx 0.25$ yielded the highest retrieval performance. If the weight is too low, the model loses fine-grained focus; if too high, the model over-prioritizes text synthesis at the expense of ranking accuracy.
Interpretable Retrieval via Attention
One of GeAR's most practical features is its built-in interpretability. While the full decoder can be used for high-fidelity extraction, the cross-attention weights in the fusion encoder naturally function as a heatmap. This allows the system to highlight relevant sentences for the user with minimal computational overhead, effectively providing "local retrieval" within a document.
Results and Discussion
GeAR demonstrates significant improvements over established baselines:
- Global Retrieval: GeAR achieved a 3.5% relative improvement in average Recall@5 compared to the BGE-RT baseline.
- Local Precision: In tasks requiring the identification of specific sentences, GeAR outperformed the much larger BGE-Reranker-L by 12.9%.
- Efficiency: Despite its generative capabilities, GeAR is approximately 5x faster than traditional cross-encoder rerankers on GPU hardware. This efficiency stems from the fact that it does not require a full query-document interaction from scratch for every pair in the candidate list.
Limitations and Future Work
While GeAR represents a step forward, it currently operates with a 512-token context window, which may be restrictive for very long-form document analysis. Additionally, the 110M parameter decoder is optimized for extraction rather than complex reasoning. Future iterations will explore expanding the context window and utilizing more diverse synthetic data to improve generalization in specialized domains such as legal or medical IR.
Conclusion
GeAR moves the field of Information Retrieval toward a more transparent and precise paradigm. By combining the speed of bi-encoders with the interpretability of generative models, GeAR provides a framework that not only finds the right document but can also explain exactly why it is relevant.
Summary updated