Say More with Less: Understanding Prompt Learning Behaviors through Gist Compression

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Li, Xinze, Liu, Zhenghao, Xiong, Chenyan, Yu, Shi, Yan, Yukun, Wang, Shuo, Yu, Ge
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866913244137914368
author Li, Xinze
Liu, Zhenghao
Xiong, Chenyan
Yu, Shi
Yan, Yukun
Wang, Shuo
Yu, Ge
author_facet Li, Xinze
Liu, Zhenghao
Xiong, Chenyan
Yu, Shi
Yan, Yukun
Wang, Shuo
Yu, Ge
contents Large language models (LLMs) require lengthy prompts as the input context to produce output aligned with user intentions, a process that incurs extra costs during inference. In this paper, we propose the Gist COnditioned deCOding (Gist-COCO) model, introducing a novel method for compressing prompts which also can assist the prompt interpretation and engineering. Gist-COCO employs an encoder-decoder based language model and then incorporates an additional encoder as a plugin module to compress prompts with inputs using gist tokens. It finetunes the compression plugin module and uses the representations of gist tokens to emulate the raw prompts in the vanilla language model. By verbalizing the representations of gist tokens into gist prompts, the compression ability of Gist-COCO can be generalized to different LLMs with high compression rates. Our experiments demonstrate that Gist-COCO outperforms previous prompt compression models in both passage and instruction compression tasks. Further analysis on gist verbalization results suggests that our gist prompts serve different functions in aiding language models. They may directly provide potential answers, generate the chain-of-thought, or simply repeat the inputs. All data and codes are available at https://github.com/OpenMatch/Gist-COCO .
format Preprint
id arxiv_https___arxiv_org_abs_2402_16058
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Say More with Less: Understanding Prompt Learning Behaviors through Gist Compression
Li, Xinze
Liu, Zhenghao
Xiong, Chenyan
Yu, Shi
Yan, Yukun
Wang, Shuo
Yu, Ge
Computation and Language
Large language models (LLMs) require lengthy prompts as the input context to produce output aligned with user intentions, a process that incurs extra costs during inference. In this paper, we propose the Gist COnditioned deCOding (Gist-COCO) model, introducing a novel method for compressing prompts which also can assist the prompt interpretation and engineering. Gist-COCO employs an encoder-decoder based language model and then incorporates an additional encoder as a plugin module to compress prompts with inputs using gist tokens. It finetunes the compression plugin module and uses the representations of gist tokens to emulate the raw prompts in the vanilla language model. By verbalizing the representations of gist tokens into gist prompts, the compression ability of Gist-COCO can be generalized to different LLMs with high compression rates. Our experiments demonstrate that Gist-COCO outperforms previous prompt compression models in both passage and instruction compression tasks. Further analysis on gist verbalization results suggests that our gist prompts serve different functions in aiding language models. They may directly provide potential answers, generate the chain-of-thought, or simply repeat the inputs. All data and codes are available at https://github.com/OpenMatch/Gist-COCO .
title Say More with Less: Understanding Prompt Learning Behaviors through Gist Compression
topic Computation and Language
url https://arxiv.org/abs/2402.16058