Context Embeddings for Efficient Answer Generation in Retrieval-Augmented Generation
<i>Retrieval-Augmented Generation (RAG)</i> allows overcoming the limited knowledge of LLMs by extending the input with external information. As a consequence, the contextual inputs to the model become much longer slowing down decoding time affecting the time a user has to wait for an answer. We address this challenge by presenting <i>COCOM,</i> an effective context compression method, reducing long contexts to only a handful of <i>Context Embeddings,</i> speeding up the generation time by a large margin. Our method allows for different compression rates, trading off decoding time for answer quality. Compared to earlier methods, <i>COCOM</i> allows for handling multiple contexts more effectively, significantly reducing decoding time for long inputs. Our method demonstrates an inference speed-up of up to 5.69 times while achieving higher performance compared to existing efficient context compression methods
Authors
- Stéphane Clinchant (ORCID: https://orcid.org/0000-0003-2367-8837)
- Jaap Kamps (ORCID: https://orcid.org/0000-0002-6614-0087)
- David Rau (ORCID: https://orcid.org/0000-0002-1964-1356)
- Hervé Déjean (ORCID: https://orcid.org/0000-0002-9837-5358)
- Shuai Wang (ORCID: https://orcid.org/0000-0002-0726-5250)
Institutions
- The University of Queensland (AU)
- Amsterdam University of the Arts (NL)
- University of Amsterdam (NL)
Publication Details
- Published
- 2025-02-26
- DOI
- https://doi.org/10.1145/3701551.3703527
- Citations
- 9
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 22.33