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

效率前沿:LLM上下文管理中成本-性能优化的统一框架

The Efficiency Frontier: A Unified Framework for Cost-Performance Optimization in LLM Context Management

Northwestern University(西北大学);Duke University(杜克大学);Carnegie Mellon University(卡内基梅隆大学);University of Minnesota(明尼苏达大学)

Binqi Shen, Lier Jin, Hanyu Cai, Lan Hu, Yuting Xin

AI总结:

提出效率前沿框架,通过部署感知优化联合考虑任务性能、token成本和预处理重用,实现LLM上下文管理中的成本-性能权衡。

摘要:

大型语言模型(LLM)越来越依赖长上下文处理,但扩展上下文窗口会带来巨大的计算和财务成本。现有的上下文缩减方法,包括检索和内存压缩方法,通常使用性能和效率指标独立评估,限制了系统比较和部署感知决策。本文介绍了效率前沿,一个用于LLM上下文管理中成本-性能优化的统一框架。该框架将上下文策略选择建模为部署感知优化问题,通过摊销成本建模联合考虑任务性能、token成本和预处理重用。与孤立比较方法的现有评估不同,所提出的框架能够进行决策导向分析,揭示不同上下文管理策略在不同操作条件下何时变得更为可取。在5000个HotpotQA实例上的评估显示,该框架揭示了基于检索和基于预处理的策略之间的不同操作区间和转换边界。结果表明,部署感知优化在可比性能(F1 ≈ 0.78)下将有效token使用减少了约25%,而摊销内存压缩在高性能设置下相比全上下文提示实现了超过50%的token成本降低。总体而言,所提出的框架为评估和部署可扩展、高效且可持续的LLM系统提供了原则性和实用性的基础。

英文摘要:

Large language models (LLMs) increasingly rely on long-context processing, but expanding context windows introduces substantial computational and financial costs. Existing context reduction approaches, including retrieval and memory compression methods, are typically evaluated using performance and efficiency metrics independently, limiting systematic comparison and deployment-aware decision-making. This paper introduces The Efficiency Frontier, a unified framework for cost--performance optimization in LLM context management. The framework models context strategy selection as a deployment-aware optimization problem that jointly accounts for task performance, token cost, and preprocessing reuse through amortized cost modeling. Unlike existing evaluations that compare methods in isolation, the proposed framework enables decision-oriented analysis. It identifies when different context management strategies become preferable under varying operational conditions. Experiments on HotpotQA reveal distinct operational regimes and transition boundaries between retrieval-based and preprocessing-based strategies. Results show that deployment-aware optimization reduces effective token usage by approximately 25% at comparable performance, enabling more cost-efficient deployment of large language model systems, while amortized memory compression achieves over 50% lower token cost relative to full-context prompting in higher-performance settings. Overall, the proposed framework provides a principled and practical foundation for evaluating and deploying scalable, efficient, and sustainable LLM systems across enterprise, scientific, and public-sector applications.

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

↑