arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.11786cs.CLcs.AIcs.LG
收藏

Selection-p:面向忠实性与可迁移性的自监督任务无关提示压缩

Selection-p: Self-Supervised Task-Agnostic Prompt Compression for Faithfulness and Transferability

The Hong Kong University of Science and Technology(香港科技大学);Tencent AILab(腾讯AI实验室)

Tsz Ting Chung, Leyang Cui, Lemao Liu, Xinting Huang, Shuming Shi, Dit-Yan Yeung

AI总结:

本文提出Selection-p,一种基于自监督持续预训练的任务无关提示压缩方法,通过少量参数对token进行保留或丢弃的概率预测,在实现高达10倍压缩率的同时保持性能,并具备跨模型的强可迁移性。

摘要:

大型语言模型(LLMs)在利用上下文学习时,已在广泛的自然语言处理任务中展现出令人瞩目的能力。为了减轻与上下文学习相关的额外计算和财务成本,已有多种提示压缩方法被提出用于压缩上下文学习提示。尽管这些方法取得了成功,但由于模型特定的压缩方式,它们面临可迁移性方面的挑战,或者依赖外部训练数据,例如GPT-4。在本文中,我们研究LLMs开发一种统一压缩方法的能力,该方法利用自监督预训练技术对无信息量的token进行离散化处理。通过在持续预训练期间引入少量参数,所提出的Selection-p为每个输入token生成一个概率,指示是保留还是丢弃该token。实验表明,Selection-p在众多分类任务上取得了最先进的性能,实现了高达10倍的压缩率,而性能仅出现0.8%的边际下降。此外,与先前工作相比,它在不同模型上展现出更优的可迁移性。我们还进一步分析了Selection-p如何帮助在长上下文情境下维持上下文学习的性能。

英文摘要:

Large Language Models (LLMs) have demonstrated impressive capabilities in a wide range of natural language processing tasks when leveraging in-context learning. To mitigate the additional computational and financial costs associated with in-context learning, several prompt compression methods have been proposed to compress the in-context learning prompts. Despite their success, these methods face challenges with transferability due to model-specific compression, or rely on external training data, such as GPT-4. In this paper, we investigate the ability of LLMs to develop a unified compression method that discretizes uninformative tokens, utilizing a self-supervised pre-training technique. By introducing a small number of parameters during the continual pre-training, the proposed Selection-p produces a probability for each input token, indicating whether to preserve or discard it. Experiments show Selection-p achieves state-of-the-art performance across numerous classification tasks, achieving compression rates of up to 10 times while experiencing only a marginal 0.8% decrease in performance. Moreover, it exhibits superior transferability to different models compared to prior work. Additionally, we further analyze how Selection-p helps maintain performance on in-context learning with long contexts.

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

↑