PoC:通过性能预测实现面向性能的上下文压缩
PoC: Performance-oriented Context Compression for Large Language Models via Performance Prediction
AI总结:
本文提出PoC方法,通过设定性能底线而非压缩比来优化大语言模型的上下文压缩,设计两种预测器并验证其在问答和摘要任务中的性能优势。
摘要:
尽管上下文压缩能通过缩短上下文降低大语言模型(LLMs)的推理成本,但现有方法因指定压缩比或长度导致性能下降不可预测,限制了其可靠部署。我们引入面向性能的上下文压缩(PoC)范式,开发者可设定可接受的性能底线而非压缩比。PoC采用轻量级性能预测器,在引导现成压缩器前自动找到满足该约束的最激进压缩比。我们设计并比较了两种预测器变体:一种简单上下文无关预测器和一种更复杂的上下文感知预测器,后者考虑输入的固有压缩性。在问答和摘要基准上,上下文感知预测器始终比上下文无关预测器表现更优,而由此产生的上下文感知PoC实现了整体性能的提升。本工作为大语言模型上下文压缩的更可靠、高效和性能感知部署铺平了道路。
英文摘要:
While context compression can mitigate the growing inference costs of Large Language Models (LLMs) by shortening contexts, existing methods that specify a target compression ratio or length suffer from unpredictable performance degradation, hindering their reliable deployment. We introduce a paradigm shift to Performance-oriented Context Compression (PoC), where developers specify an acceptable performance floor instead of a compression ratio. PoC employs a lightweight performance predictor to automatically find the most aggressive compression ratio that satisfies this constraint before steering an off-the-shelf compressor. We design and compare two predictor variants: a simple context-agnostic predictor and a more sophisticated context-aware one that considers the input's inherent compressibility. On both question-answering and summarization benchmarks, the context-aware predictor consistently achieves lower performance prediction error than the context-agnostic predictor, while the resulting context-aware PoC attains a superior overall performance. Our work paves the way for a more reliable, efficient, and performance-aware deployment of context compression for LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。