From Reading to Compressing: Exploring the Multi-document Reader for Prompt Compression

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Choi, Eunseong, Lee, Sunkyung, Choi, Minjin, Park, June, Lee, Jongwuk
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915086359068672
author Choi, Eunseong
Lee, Sunkyung
Choi, Minjin
Park, June
Lee, Jongwuk
author_facet Choi, Eunseong
Lee, Sunkyung
Choi, Minjin
Park, June
Lee, Jongwuk
contents Large language models (LLMs) have achieved significant performance gains using advanced prompting techniques over various tasks. However, the increasing length of prompts leads to high computational costs and often obscures crucial information. Prompt compression has been proposed to alleviate these issues, but it faces challenges in (i) capturing the global context and (ii) training the compressor effectively. To tackle these challenges, we introduce a novel prompt compression method, namely Reading To Compressing (R2C), utilizing the Fusion-in-Decoder (FiD) architecture to identify the important information in the prompt. Specifically, the cross-attention scores of the FiD are used to discern essential chunks and sentences from the prompt. R2C effectively captures the global context without compromising semantic consistency while detouring the necessity of pseudo-labels for training the compressor. Empirical results show that R2C retains key contexts, enhancing the LLM performance by 6% in out-of-domain evaluations while reducing the prompt length by 80%.
format Preprint
id arxiv_https___arxiv_org_abs_2410_04139
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle From Reading to Compressing: Exploring the Multi-document Reader for Prompt Compression
Choi, Eunseong
Lee, Sunkyung
Choi, Minjin
Park, June
Lee, Jongwuk
Computation and Language
Artificial Intelligence
I.2.7
Large language models (LLMs) have achieved significant performance gains using advanced prompting techniques over various tasks. However, the increasing length of prompts leads to high computational costs and often obscures crucial information. Prompt compression has been proposed to alleviate these issues, but it faces challenges in (i) capturing the global context and (ii) training the compressor effectively. To tackle these challenges, we introduce a novel prompt compression method, namely Reading To Compressing (R2C), utilizing the Fusion-in-Decoder (FiD) architecture to identify the important information in the prompt. Specifically, the cross-attention scores of the FiD are used to discern essential chunks and sentences from the prompt. R2C effectively captures the global context without compromising semantic consistency while detouring the necessity of pseudo-labels for training the compressor. Empirical results show that R2C retains key contexts, enhancing the LLM performance by 6% in out-of-domain evaluations while reducing the prompt length by 80%.
title From Reading to Compressing: Exploring the Multi-document Reader for Prompt Compression
topic Computation and Language
Artificial Intelligence
I.2.7
url https://arxiv.org/abs/2410.04139