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

评估针对后续问题的上下文压缩

Evaluating Context Compaction on the Questions That Come Later

Junwei Yao, Yongxi Zhou, Zike Yang, Zhijun Wang, Jianan Liu, Yanxian Chen, Wenbo Ye

AI总结:

本文评估语言模型上下文压缩对后续问题的效果,发现仅为当前问题选句子的方法对后续问题无优势,LLMLingua-2删单词的方法效果更好,且性能排名依赖数据集与设置。

摘要:

语言模型智能体为当前问题压缩上下文,但压缩后的上下文也需服务于后续问题。本文使用4个语料库(每个文本标注多个问题的证据及记录的智能体轨迹)评估针对后续问题的压缩效果,在相同预算下将各方法与随机删除对比。在MultiRC数据集上,保留gpt-6-luna(通过OpenAI Decisions API)判定对当前问题必要的句子,在25% token规模下使该问题准确率提升11.4个百分点;但针对后续问题,仅为当前问题选择句子的方法均未表现出优于随机删除的可检测效果。删除单词而非句子的方法效果更好:忽略问题的LLMLingua-2在相同token数量下,在MultiRC后续问题上比随机句子删除高12.5个百分点;其保留的证据内容词占比约为随机删除的两倍,在相同内容词保留率下,该优势缩小至7.3个百分点(探索性结果)。在FEVER数据集上,标签准确率可能高估保留文本的支撑能力:当针对保留证据评分答案时,句子选择的优势不再可检测,且LLMLingua-2的21.0个百分点优势未被证明依赖于保留文本。排名还取决于设置:在Evidence Inference中,句子选择在名义25%预算下优于LLMLingua-2;在τ-bench轨迹中(后续工具调用需要精确标识符),句子选择优于随机删除,而LLMLingua-2无检测到的优势。针对压缩所生成的问题的得分,无法可靠反映其服务后续问题的能力。

英文摘要:

Language-model agents compact their context for the question at hand, but the compacted context must also serve questions that come later. We evaluate compaction on these later questions, using four corpora that annotate the evidence of several questions per text and recorded agent trajectories, and compare every method with random deletion at the same budget. On MultiRC, keeping the sentences that gpt-6-luna (through the OpenAI Decisions API) judges necessary for the current question raises its accuracy on that question by 11.4 points at 25% of the tokens. On the later questions, however, no method that selects sentences for the current question does detectably better than deleting sentences at random. Deleting words instead of sentences does better: LLMLingua-2, which ignores the question, beats random sentence deletion at the same token count by 12.5 points on the later MultiRC questions. It keeps about twice random deletion's share of the evidence's content words, and at equal content-word retention its gain shrinks to 7.3 points (exploratory). On FEVER, label accuracy can overstate what the kept text supports: the gain of sentence selection is no longer detected when answers are scored against the kept evidence, and the 21.0-point gain of LLMLingua-2 is not shown to rest on the kept text. The ranking also depends on the setting: on Evidence Inference sentence selection beats LLMLingua-2 at a nominal 25% budget, and on $τ$-bench trajectories, whose later tool calls need exact identifiers, it beats random deletion while LLMLingua-2 shows no detected gain. Scores on the question a compaction was made for do not reliably show how it serves later ones.

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

↑