RAGMark: A Comprehensive Framework for Benchmarking Retrieval-Augmented Generation Systems
Zlatan Feric, Amir Taherin, Bin Ren, Yanzhi Wang, Jennifer Dy, David Kaeli
Abstract
We present RAGMark, a modular benchmarking framework for advanced Retrieval-Augmented Generation (RAG) systems targeting small-scale multi-GPU environments. RAGMark evaluates diverse RAG components, including retrievers, vector databases, prompt-processing methods, and generator models, while collecting detailed per-stage metrics such as latency, GPU utilization, memory consumption, power usage, time to first token (TTFT), throughput, and answer quality. The framework is highly extensible, separating RAG stages, timing, and resource monitoring into modular components, and is designed to efficiently sweep large configuration spaces while minimizing repeated model and database initialization overhead. Using RAGMark, we characterize five RAG workloads on open-domain QA datasets across varying retrieval depths, model scales, reranking, compression methods, and vector database configurations. We show that while autoregressive generation dominates latency in naive pipelines, context-reduction techniques shift bottlenecks across compute, memory bandwidth, and preprocessing stages. Reranking and compression produce compounding benefits: reranking reduces compression workload itself, while both jointly reduce prefill and KV-cache traversal costs, lowering energy consumption by up to 66%. We further observe strong cross-stage interactions, where small upstream context reductions cascade through downstream latency, memory traffic, and energy consumption. The RAGMark source code is publicly available at: https://github.com/zferic/RAGMark.
Create a lesson
Metadata
- Categories
- cs.PF, cs.AI, cs.AR, cs.IR
- Comments
- 18 pages, 9 figures
Related papers
HPC-Bench: A Comprehensive Benchmark for High Performance Computing Codes
Shared title terminologycs.PFBowen Cui, Junyu Yin, Tejas Ramesh et al.
Optimas: An Intelligent Analytics-Informed Generative AI Framework for Performance Optimization
Shared title terminologycs.PFMohammad Zaeed, Tanzima Z. Islam, Vladimir Indic
Benchmarking Storage Systems for Machine Learning Workloads Using NIO Bench
Shared title terminologycs.PFJonathan W. Morris, Ionut Mistreanu, Connor Louie
Towards Automated Recommendation of Steady-State Detection Algorithms for Software Performance Benchmarks
Shared title terminologycs.PFMartin Beseda, Vittorio Cortellessa, Federico Di Menna et al.
LLMRunner: Closed Workload Model Performance Testing Framework for LLM Servings
Shared title terminologycs.PFArush Upadhyaya, Debadatta Mishra
Memory-Access Profiling for Early Multicore Interference Awareness in Embedded Systems
Shared title terminologycs.PFJean-Baptiste Lefoul, Ahmad Shahnejat Bushehri, Alaric Chan Lock et al.