Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Quinn, Derrick, Nouri, Mohammad, Patel, Neel, Salihu, John, Salemi, Alireza, Lee, Sukhan, Zamani, Hamed, Alian, Mohammad
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2412.15246
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912162554839040
author Quinn, Derrick
Nouri, Mohammad
Patel, Neel
Salihu, John
Salemi, Alireza
Lee, Sukhan
Zamani, Hamed
Alian, Mohammad
author_facet Quinn, Derrick
Nouri, Mohammad
Patel, Neel
Salihu, John
Salemi, Alireza
Lee, Sukhan
Zamani, Hamed
Alian, Mohammad
contents An evolving solution to address hallucination and enhance accuracy in large language models (LLMs) is Retrieval-Augmented Generation (RAG), which involves augmenting LLMs with information retrieved from an external knowledge source, such as the web. This paper profiles several RAG execution pipelines and demystifies the complex interplay between their retrieval and generation phases. We demonstrate that while exact retrieval schemes are expensive, they can reduce inference time compared to approximate retrieval variants because an exact retrieval model can send a smaller but more accurate list of documents to the generative model while maintaining the same end-to-end accuracy. This observation motivates the acceleration of the exact nearest neighbor search for RAG. In this work, we design Intelligent Knowledge Store (IKS), a type-2 CXL device that implements a scale-out near-memory acceleration architecture with a novel cache-coherent interface between the host CPU and near-memory accelerators. IKS offers 13.4-27.9x faster exact nearest neighbor search over a 512GB vector database compared with executing the search on Intel Sapphire Rapids CPUs. This higher search performance translates to 1.7-26.3x lower end-to-end inference time for representative RAG applications. IKS is inherently a memory expander; its internal DRAM can be disaggregated and used for other applications running on the server to prevent DRAM, which is the most expensive component in today's servers, from being stranded.
format Preprint
id arxiv_https___arxiv_org_abs_2412_15246
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Accelerating Retrieval-Augmented Generation
Quinn, Derrick
Nouri, Mohammad
Patel, Neel
Salihu, John
Salemi, Alireza
Lee, Sukhan
Zamani, Hamed
Alian, Mohammad
Computation and Language
Artificial Intelligence
Hardware Architecture
Distributed, Parallel, and Cluster Computing
Information Retrieval
An evolving solution to address hallucination and enhance accuracy in large language models (LLMs) is Retrieval-Augmented Generation (RAG), which involves augmenting LLMs with information retrieved from an external knowledge source, such as the web. This paper profiles several RAG execution pipelines and demystifies the complex interplay between their retrieval and generation phases. We demonstrate that while exact retrieval schemes are expensive, they can reduce inference time compared to approximate retrieval variants because an exact retrieval model can send a smaller but more accurate list of documents to the generative model while maintaining the same end-to-end accuracy. This observation motivates the acceleration of the exact nearest neighbor search for RAG. In this work, we design Intelligent Knowledge Store (IKS), a type-2 CXL device that implements a scale-out near-memory acceleration architecture with a novel cache-coherent interface between the host CPU and near-memory accelerators. IKS offers 13.4-27.9x faster exact nearest neighbor search over a 512GB vector database compared with executing the search on Intel Sapphire Rapids CPUs. This higher search performance translates to 1.7-26.3x lower end-to-end inference time for representative RAG applications. IKS is inherently a memory expander; its internal DRAM can be disaggregated and used for other applications running on the server to prevent DRAM, which is the most expensive component in today's servers, from being stranded.
title Accelerating Retrieval-Augmented Generation
topic Computation and Language
Artificial Intelligence
Hardware Architecture
Distributed, Parallel, and Cluster Computing
Information Retrieval
url https://arxiv.org/abs/2412.15246