PCToolkit:大型语言模型的统一即插即用提示压缩工具包
PCToolkit: A Unified Plug-and-Play Prompt Compression Toolkit of Large Language Models
AI总结:
本文提出了PCToolkit,一个用于大型语言模型的统一即插即用提示压缩工具包,具备模块化设计、前沿压缩器及全面评估指标,并在多种自然语言任务上验证了其有效性。
摘要:
提示压缩是一种在保留关键信息的同时高效压缩输入提示的创新方法。为了提供快速启动服务、用户友好界面以及与常见数据集和指标的兼容性,我们推出了Prompt Compression Toolkit(PCToolkit)。该工具包是一个用于压缩大型语言模型(LLMs)提示的统一即插即用解决方案,具备前沿的提示压缩器、多样化数据集及用于全面性能评估的指标。PCToolkit采用模块化设计,允许通过便携且用户友好的接口轻松集成新数据集和指标。本文概述了PCToolkit的关键组件与功能。我们在多种自然语言任务上评估了PCToolkit内的压缩器,包括重构、摘要、数学问题求解、问答、少样本学习、合成任务、代码补全、布尔表达式、多项选择题和谎言识别。
英文摘要:
Prompt compression is an innovative method for efficiently condensing input prompts while preserving essential information. To facilitate quick-start services, user-friendly interfaces, and compatibility with common datasets and metrics, we present the Prompt Compression Toolkit (PCToolkit). This toolkit is a unified plug-and-play solution for compressing prompts in Large Language Models (LLMs), featuring cutting-edge prompt compressors, diverse datasets, and metrics for comprehensive performance evaluation. PCToolkit boasts a modular design, allowing for easy integration of new datasets and metrics through portable and user-friendly interfaces. In this paper, we outline the key components and functionalities of PCToolkit. We conducted evaluations of the compressors within PCToolkit across various natural language tasks, including reconstruction, summarization, mathematical problem-solving, question answering, few-shot learning, synthetic tasks, code completion, boolean expressions, multiple choice questions, and lies recognition.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。