AgentCompress: 任务感知压缩以实现经济高效的大型语言模型代理
AgentCompress: Task-Aware Compression for Affordable Large Language Model Agents
AI总结:
AgentCompress通过任务感知动态压缩技术,显著降低大型语言模型的计算成本,同时保持高成功率。
摘要:
大型语言模型在各种应用中具有 considerable 的潜力,但它们的计算需求构成了许多机构无法逾越的障碍。使用一个700亿参数模型进行单次会话的云计算费用大约为127美元,这使这些工具对预算有限的组织来说难以获得。我们提出了AgentCompress,一个通过任务感知动态压缩来解决这个问题的框架。这一想法源于一个简单的观察:并非所有任务都需要相同的计算努力。复杂推理,例如,比文本重新格式化更具挑战性,但传统压缩对两者都应用相同的减少。我们的方法使用一个轻量级的神经控制器,查看每个请求的前几个标记,估计任务的复杂性,并将其发送到适当量化版本的模型。此路由步骤仅增加约12毫秒的开销。我们在290个多阶段工作流上测试了该框架,涵盖计算机科学、物理、化学和生物学等领域。结果表明,计算成本减少了68.3%,同时保持了96.2%的原始成功率。这些发现表明,智能路由查询可以显著降低强大语言模型的成本,而不牺牲输出质量。
英文摘要:
Large language models hold considerable promise for various applications, but their computational requirements create a barrier that many institutions cannot overcome. A single session using a 70-billion-parameter model can cost around $127 in cloud computing fees, which puts these tools out of reach for organizations operating on limited budgets. We present AgentCompress, a framework that tackles this problem through task-aware dynamic compression. The idea comes from a simple observation: not all tasks require the same computational effort. Complex reasoning, for example, is far more demanding than text reformatting, yet conventional compression applies the same reduction to both. Our approach uses a lightweight neural controller that looks at the first few tokens of each request, estimates how complex the task will be, and sends it to an appropriately quantized version of the model. This routing step adds only about 12 milliseconds of overhead. We tested the framework on 290 multi-stage workflows from domains including computer science, physics, chemistry, and biology. The results show a 68.3% reduction in computational costs while preserving 96.2% of the original success rate. These findings suggest that routing queries intelligently can make powerful language models substantially more affordable without sacrificing output quality
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。