Abstract
Retrieval systems in modern AI often struggle with varying levels of granularity, typically optimized for either full passages or individual sentences. We present AGRaME (Any-Granularity Ranking with Multi-vector Embeddings), a framework that enables a single retrieval index to perform high-precision ranking across multiple scales—from documents to atomic propositions. By leveraging multi-vector representations and a novel multi-granular contrastive loss, AGRaME achieves state-of-the-art performance in sentence-level retrieval and citation attribution without the storage overhead of redundant indices.
Introduction: The Granularity Bottleneck
In Retrieval-Augmented Generation (RAG) and open-domain question answering, the "granularity" of retrieved information is a critical factor. While standard systems are designed to retrieve 100-200 word passages, many downstream tasks require much finer detail. For instance, fact-checking requires identifying the specific "atomic fact" (proposition) that supports a claim, while QA systems need the exact sentence containing an answer.
Existing solutions often involve building separate indices for different granularities, which can increase storage requirements by an order of magnitude. Alternatively, slow cross-encoders are used for re-ranking, which limits scalability. AGRaME addresses these issues by enabling "any-granularity" ranking within a single, passage-level multi-vector index.
Methodology
AGRaME is built upon the ColBERTv2 architecture, which represents documents as a collection of token-level vectors rather than a single aggregate vector.
Multi-Vector Scoring and MaxSim
The core of the retrieval process is the MaxSim operation. For each token in a query, the model identifies the most similar token in the document and aggregates these scores. AGRaME extends this by recognizing that token-level information already exists within the passage index to score sub-units like sentences.
Technical Innovations
- Special Query Markers ($m'_q$): To signal the desired granularity, AGRaME uses distinct marker tokens at the start of the query. This allows the model to dynamically adjust its relevance criteria for passage-level vs. sentence-level ranking using the same document embeddings.
- Multi-Granular Contrastive Loss: During training, the model is optimized using a "teacher" cross-encoder. It is taught not only to retrieve the correct passage but also to pinpoint the most relevant sentence within that passage.
- Contextual Encoding: A key insight of the research is that encoding a sentence within its original passage context significantly improves retrieval accuracy compared to encoding it in isolation, as the surrounding text resolves ambiguities and provides necessary background.
Evaluation and Results
The framework was evaluated across diverse benchmarks, including Natural Questions (NQ), TriviaQA, and the RobustQA cross-domain suite.
Sentence-Level Precision
On the Natural Questions dataset, AGRaME improved sentence-level Precision@1 from 27.9% (the ColBERTv2 baseline) to 36.8%. This performance gain was consistent across cross-domain tests in Finance, Law, and Biomedical fields.
PROPCITE: Post-hoc Citation Attribution
The authors integrated AGRaME into PROPCITE, a system designed to add citations to LLM-generated answers. By breaking answers into atomic propositions and using AGRaME for attribution, PROPCITE achieved a citation precision of 65.7% with a Mistral 7B model. This significantly outperforms standard prompting techniques, which are prone to hallucinations.
Conclusion and Future Work
AGRaME demonstrates that multi-vector models can be adapted for multi-granular retrieval without sacrificing efficiency or storage. While the model currently uses sentence-level loss, future work may involve explicit proposition-level training to further refine fine-grained attribution. Despite the slight computational overhead of multi-vector models compared to single-vector alternatives, the gains in precision and flexibility make AGRaME a powerful tool for next-generation RAG systems.
Summary updated