Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Beyond Position Bias: Shifting Context Compression from Position-Driven to Semantic-Driven

About

Large Language Models (LLMs) have demonstrated exceptional performance across diverse tasks. However, their deployment in long-context scenarios faces high computational overhead and information redundancy. While soft prompt compression has emerged as a promising way to mitigate these costs by compressing sequences into compact embeddings, existing paradigms remain fundamentally constrained by position bias: they primarily rely on learnable tokens insertion at fixed positions or group tokens according to their physical token layout, thereby inducing performance instability and semantic fragmentation. To overcome this bottleneck, we propose Semantic Consistency Context Compression (SeCo), a method that shifts context compression from position-driven to semantic-driven. Rather than constraint by physical token layout, SeCo dynamically anchors compression directly in the semantic space by selecting query-relevant tokens as semantic centers and aggregating remaining tokens via consistency-weighted merging. This design inherently preserves semantic consistency while eliminating position bias. Extensive experiments on 14 benchmarks across two backbone models demonstrate that SeCo consistently shows superiority in downstream tasks, inference latency, and out-of-domain robustness. The code is available at https://anonymous.4open.science/r/seco-EE5E.

Jiwei Tang, Zhijing Huang, Xinyu Zhang, Chen Jason Zhang, Jianxing Yu, Libin Zheng, Rui Meng, Jian Yin• 2026

Related benchmarks

TaskDatasetResultRank
Question AnsweringSQuAD
F170.71
162
Reading ComprehensionDROP
F1 Score39.94
96
Question AnsweringNewsQA
F150.81
49
Question AnsweringSearchQA
EM69.77
46
Question AnsweringIn-Domain Average
EM53.52
28
Question AnsweringBioASQ
EM45.68
14
Question AnsweringTQA
EM42.12
14
Reading ComprehensionDuoRC
EM35.04
14
Reading ComprehensionRACE
EM23.29
14
Relation ExtractionRE
EM57.02
14
Showing 10 of 10 rows

Other info

Follow for update