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

LooComp: 通过留一法策略提升仅编码器Transformer的查询感知上下文压缩效率

EnComp: Lightweight Encoder-Only Context Compression for Retrieval-Augmented Question Answering

Korea Advanced Institute of Science and Technology(韩国科学技术院)

Thao Do, Dinh Phu Tran, An Vo, Seon Kwon Kim, Daeyoung Kim

AI总结:

LooComp通过留一法策略提升仅编码器Transformer的查询感知上下文压缩效率,实现高效压缩与高吞吐量推理。

摘要:

高效的上下文压缩对于提高问答的准确性和可扩展性至关重要。为了提高检索增强生成的效率,上下文应快速、紧凑且精确地传递,以确保线索充分性和经济的LLM读者成本。我们提出了一种基于边界的框架,用于查询驱动的上下文修剪,通过测量在省略句子时线索丰富度的变化来识别对回答查询至关重要的句子。模型通过复合排序损失进行训练,该损失强制关键句子具有较大的边界,同时保持非关键句子接近中性。基于轻量级的仅编码器Transformer,我们的方法通常在高吞吐量推理和较低的内存需求方面优于主要基线。除了效率外,我们的方法在不降低回答性能的情况下实现了有效的压缩比,展示了其作为检索增强任务的轻量级和实用替代方案的潜力。

英文摘要:

Efficient context compression is critical for retrieval-augmented question answering in resource-constrained settings, where long retrieved contexts increase latency, memory use, and LLM reader cost. We propose a lightweight encoder-only framework for query-driven sentence pruning that preserves answer-critical evidence while aggressively reducing irrelevant context. Our method learns marginal contribution scores for sentences using counterfactual training signals and optimizes a contrastive ranking objective that separates critical evidence from noncritical context. Our approach scores all sentences from a single full-context encoding, enabling fast inference with low computational overhead. Experiments show that it maintains accuracy comparable to the strongest baseline while using 3.7$\times$ less peak memory and achieving nearly 3$\times$ lower compression latency, demonstrating an effective quality--efficiency trade-off for practical resource-constrained deployment.

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

↑