paper-with-me

홈 › Papers

The Impact of Quantization on Retrieval-Augmented Generation: An Analysis of Small LLMs

2024-06-10 · Mert Yazan, Suzan Verberne, Frederik Situmeang

Post-training quantization reduces the computational demand of Large Language Models (LLMs) but can weaken some of their capabilities. Since LLM abilities emerge with scale, smaller LLMs are more sensitive to quantization. In this paper, we explore how quantization affects smaller LLMs' ability to perform retrieval-augmented generation (RAG), specifically in longer contexts. We chose personalization for evaluation because it is a challenging domain to perform using RAG as it requires long-context reasoning over multiple documents. We compare the original FP16 and the quantized INT4 performance of multiple 7B and 8B LLMs on two tasks while progressively increasing the number of retrieved documents to test how quantized models fare against longer contexts. To better understand the effect of retrieval, we evaluate three retrieval models in our experiments. Our findings reveal that if a 7B LLM performs the task well, quantization does not impair its performance and long-context reasoning capabilities. We conclude that it is possible to utilize RAG with quantized smaller LLMs.

📄 PDF Abstract BibTeX arXiv:2406.10251

Code (0)

등록된 구현이 없습니다.

Tasks

QuantizationRAGRetrievalRetrieval-augmented Generation

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Multi-Head Attention 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
WordPiece 설명 없음
Residual Connection 설명 없음
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…

Similar Papers 제목 키워드 기반

Lightweight Clinical Decision Support System using QLoRA-Fine-Tuned LLMs and Retrieval-Augmented Generation

2025-05-06 · Mohammad Shoaib Ansari, Mohd Sohail Ali Khan, Shubham Revankar, Aditya Varma 외

This research paper investigates the application of Large Language Models (LLMs) in healthcare, specifically focusing on enhancing medical decision support through Retrieval-Augmented Generation (RAG) integrated with hos…

Disease PredictionQuantizationRAGRetrieval-augmented Generation

Understanding Retrieval Augmentation for Long-Form Question Answering

2023-10-18 · Hung-Ting Chen, Fangyuan Xu, Shane A. Arora, Eunsol Choi

We present a study of retrieval-augmented language models (LMs) on long-form question answering. We analyze how retrieval augmentation impacts different LMs, by comparing answers generated from models while using the sam…

FormLong Form Question AnsweringQuestion AnsweringRetrieval+1

Language Models and Retrieval Augmented Generation for Automated Structured Data Extraction from Diagnostic Reports

2024-09-15 · Mohamed Sobhi Jabal, Pranav Warman, Jikai Zhang, Kartikeye Gupta 외

Purpose: To develop and evaluate an automated system for extracting structured clinical information from unstructured radiology and pathology reports using open-weights large language models (LMs) and retrieval augmented…

DiagnosticModel SelectionPrivacy PreservingPrompt Engineering+4

Automating Bibliometric Analysis with Sentence Transformers and Retrieval-Augmented Generation (RAG): A Pilot Study in Semantic and Contextual Search for Customized Literature Characterization for High-Impact Urban Research

2024-10-08 · Haowen Xu, Xueping Li, Jose Tupayachi, Jianming 외

Bibliometric analysis is essential for understanding research trends, scope, and impact in urban science, especially in high-impact journals, such Nature Portfolios. However, traditional methods, relying on keyword searc…

AI AgentArticlesRAGRetrieval+2

Context Awareness Gate For Retrieval Augmented Generation

2024-11-25 · Mohammad Hassan Heydari, Arshia Hemmat, Erfan Naman, Afsaneh Fatemi

Retrieval Augmented Generation (RAG) has emerged as a widely adopted approach to mitigate the limitations of large language models (LLMs) in answering domain-specific questions. Previous research has predominantly focuse…

Open-Domain Question AnsweringQuestion AnsweringRAGRetrieval+1