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

CompactPrompt:大语言模型工作流中提示数据压缩的统一流水线

CompactPrompt: A Unified Pipeline for Prompt Data Compression in LLM Workflows

Carnegie Mellon University(卡内基梅隆大学)

Joong Ho Choi, Jiayang Zhao, Jeel Shah, Ritvika Sonawane, Vedant Singh, Avani Appalla, Will Flanagan, Filipe Condessa

AI总结:

针对LLM智能体工作流中长提示带来的高运行成本问题,提出结合提示压缩与文件级数据压缩的CompactPrompt流水线,可在低准确率损失下大幅降低token用量与推理成本。

摘要:

大语言模型(LLM)具备强大的推理与生成能力,但在串联长提示、处理丰富数据流的智能体工作流中运行时,会产生高昂的运行成本。我们提出CompactPrompt——一种将硬提示压缩与轻量文件级数据压缩相结合的端到端流水线。CompactPrompt首先通过自信息评分与基于依存关系的短语分组,从提示中剪除低信息含量的token;同时对附件文档中的重复文本模式应用n-gram缩写,对数值列采用均匀量化,生成紧凑且语义保真的表示。将其集成到标准LLM智能体后,CompactPrompt在TAT-QA、FinQA等基准数据集上最多可减少60%的总token使用量与推理成本,同时保持输出质量(Claude-3.5-Sonnet与GPT-4.1-Mini的准确率下降均低于5%)。CompactPrompt支持实时压缩决策可视化与成本-性能权衡量化,为更精简的生成式AI流水线奠定了基础。

英文摘要:

Large Language Models (LLMs) deliver powerful reasoning and generation capabilities but incur substantial run-time costs when operating in agentic workflows that chain together lengthy prompts and process rich data streams. We introduce CompactPrompt, an end-to-end pipeline that merges hard prompt compression with lightweight file-level data compression. CompactPrompt first prunes low-information tokens from prompts using self-information scoring and dependency-based phrase grouping. In parallel, it applies n-gram abbreviation to recurrent textual patterns in attached documents and uniform quantization to numerical columns, yielding compact yet semantically faithful representations. Integrated into standard LLM agents, CompactPrompt reduces total token usage and inference cost by up to 60% on benchmark dataset like TAT-QA and FinQA, while preserving output quality (Results in less than 5% accuracy drop for Claude-3.5-Sonnet, and GPT-4.1-Mini) CompactPrompt helps visualize real-time compression decisions and quantify cost-performance trade-offs, laying the groundwork for leaner generative AI pipelines.

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

↑