揭示长文本嵌入失效的根源:池化与语义漂移
Pooling and Semantic Shift: The Fundamental Challenges in Long Text Embedding and Retrieval
- 提出统一理论框架,证明池化导致语义稀释与向量集中
- 实验证明语义漂移是嵌入集中主因,而非文本长度本身
- 为长文本检索难题提供可解释的新视角,适合模型优化者
基于Transformer的嵌入模型常出现各向异性与长度引发的表征坍塌等几何病理,损害下游检索性能。现有研究多归因于文本长度或注意力机制,本文指出根本原因在于固有的池化操作与内部语义漂移。我们建立统一理论框架,证明上下文池化必然导致嵌入坍塌:语义多样的句子经池化后产生微观语义稀释,严格降低向量空间的平均成对距离,必然引发宏观空间集中。基于此,我们形式化定义了语义漂移以捕捉文本内自然的语义演化与发散。通过在多种模型与语料上的受控实验,分离文本长度与语义内容,证明语义漂移是嵌入严重集中的主要预测因子。关键发现:各向异性仅在强语义漂移下才构成根本危害,调和了以往文献的矛盾观察,为现代嵌入模型面临的长上下文挑战提供了原理性解释。
原文摘要 · Abstract (English)
Transformer-based embedding models frequently exhibit geometric pathologies, such as anisotropy and length-induced representation collapse, which can degrade downstream retrieval performance. While prior work often attributes these issues directly to text length or attention mechanisms, we argue that the fundamental drivers are instead the inherent pooling operations coupled with internal semantic shift. In this paper, we establish a unified theoretical framework proving that contextual pooling intrinsically causes embedding collapse. Specifically, we mathematically prove that pooling semantically diverse sentences inevitably leads to micro-level semantic dilution, and strictly reduces the Mean Pairwise Distance of the vector space, guaranteeing macro-level spatial concentration. Grounded in these geometric insights, we formally define semantic shift to capture the natural semantic evolution and dispersion within a text. Through carefully controlled experiments across diverse models and corpora, we disentangle text length from semantic content. We demonstrate that semantic shift is the primary predictor of severe embedding concentration. Crucially, our retrieval evaluations reveal that anisotropy is fundamentally harmful only when induced by strong semantic shifts, reconciling conflicting observations in prior literature and offering a principled explanation for the long-context challenges faced by modern embedding models.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。