arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.16058cs.CL
收藏

以少言多:通过 Gist 压缩理解提示学习行为

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

Northeastern University(东北大学);Carnegie Mellon University(卡内基梅隆大学);Tsinghua University(清华大学)

Xinze Li, Zhenghao Liu, Chenyan Xiong, Shi Yu, Yukun Yan, Shuo Wang, Ge Yu

AI总结:

本文提出 Gist-COCO 模型,通过插件编码器将冗长提示压缩为 gist token 并泛化到不同大语言模型,在段落与指令压缩任务中优于现有方法。

摘要:

大语言模型(LLMs)需要冗长的提示作为输入上下文,以产生符合用户意图的输出,这一过程在推理阶段会产生额外成本。本文提出 Gist COnditioned deCOding(Gist-COCO)模型,引入一种新的提示压缩方法,同时可辅助提示解释与提示工程。Gist-COCO 采用基于编码器-解码器的语言模型,并额外引入一个编码器作为插件模块,利用 gist token 对带输入的提示进行压缩。该模型对压缩插件模块进行微调,并使用 gist token 的表示来模拟原始提示在普通语言模型中的作用。通过将 gist token 的表示转化为可读的 gist 提示,Gist-COCO 的压缩能力可以泛化到不同的大语言模型,并实现较高的压缩率。实验表明,Gist-COCO 在段落压缩和指令压缩任务中均优于以往的提示压缩模型。对 gist 可读化结果的进一步分析表明,我们的 gist 提示在辅助语言模型方面发挥着不同的功能:它们可能直接提供潜在答案、生成思维链,或简单地重复输入。所有数据和代码均可在 https://github.com/OpenMatch/Gist-COCO 获取。

英文摘要:

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 .

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑