Saved in:
Bibliographic Details
Main Authors: Cao, Zhiwei, Cao, Qian, Lu, Yu, Peng, Ningxin, Huang, Luyang, Cheng, Shanbo, Su, Jinsong
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2406.02376
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929387815829504
author Cao, Zhiwei
Cao, Qian
Lu, Yu
Peng, Ningxin
Huang, Luyang
Cheng, Shanbo
Su, Jinsong
author_facet Cao, Zhiwei
Cao, Qian
Lu, Yu
Peng, Ningxin
Huang, Luyang
Cheng, Shanbo
Su, Jinsong
contents The growing popularity of Large Language Models has sparked interest in context compression for Large Language Models (LLMs). However, the performance of previous methods degrades dramatically as compression ratios increase, sometimes even falling to the closed-book level. This decline can be attributed to the loss of key information during the compression process. Our preliminary study supports this hypothesis, emphasizing the significance of retaining key information to maintain model performance under high compression ratios. As a result, we introduce Query-Guided Compressor (QGC), which leverages queries to guide the context compression process, effectively preserving key information within the compressed context. Additionally, we employ a dynamic compression strategy. We validate the effectiveness of our proposed QGC on the Question Answering task, including NaturalQuestions, TriviaQA, and HotpotQA datasets. Experimental results show that QGC can consistently perform well even at high compression ratios, which also offers significant benefits in terms of inference cost and throughput.
format Preprint
id arxiv_https___arxiv_org_abs_2406_02376
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Retaining Key Information under High Compression Ratios: Query-Guided Compressor for LLMs
Cao, Zhiwei
Cao, Qian
Lu, Yu
Peng, Ningxin
Huang, Luyang
Cheng, Shanbo
Su, Jinsong
Computation and Language
The growing popularity of Large Language Models has sparked interest in context compression for Large Language Models (LLMs). However, the performance of previous methods degrades dramatically as compression ratios increase, sometimes even falling to the closed-book level. This decline can be attributed to the loss of key information during the compression process. Our preliminary study supports this hypothesis, emphasizing the significance of retaining key information to maintain model performance under high compression ratios. As a result, we introduce Query-Guided Compressor (QGC), which leverages queries to guide the context compression process, effectively preserving key information within the compressed context. Additionally, we employ a dynamic compression strategy. We validate the effectiveness of our proposed QGC on the Question Answering task, including NaturalQuestions, TriviaQA, and HotpotQA datasets. Experimental results show that QGC can consistently perform well even at high compression ratios, which also offers significant benefits in terms of inference cost and throughput.
title Retaining Key Information under High Compression Ratios: Query-Guided Compressor for LLMs
topic Computation and Language
url https://arxiv.org/abs/2406.02376