Pooling and Semantic Shift: The Fundamental Challenges in Long Text Embedding and Retrieval
Organizations: Rutgers University
Abstract
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.
Figures & tables
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Model (full name) | Abbreviation | Architecture / key traits | Dim. | Provider | License | References |
| bge-large-en-v1.5 | bge-large | Transformer bi-encoder for dense retrieval; contrastive training with strong general-purpose embedding behavior. | 1024 | BAAI | Open source | [ 20 , 61 ] |
| e5-large-v2 | e5-large | Transformer bi-encoder trained via weakly-supervised contrastive pretraining; query/passage style prompting is commonly used in the E5 family. | 1024 | Microsoft | Open source | [ 21 ] |
| all-mpnet-base-v2 | all-mpnet | Sentence-Transformers bi-encoder built on MPNet-base; mean pooling for sentence embeddings; widely used strong baseline. | 768 | Sentence-Transformers | Open source | [ 23 , 22 ] |
| gte-large | gte-large | General Text Embeddings (GTE); Transformer encoder optimized for retrieval-style embedding. | 1024 | Alibaba | Open source | [ 24 ] |
| text-embedding-3-large | text-embedding | Proprietary API embedding model; high-dimensional embeddings designed for general semantic matching and retrieval. | 3072 | OpenAI | Closed source | [ 25 ] |
| Corpus (full name) | Abbreviation | Characteristics | References |
|---|---|---|---|
| ArXiv abstracts (common-pile/arxiv_abstracts) | ArXiv | Large-scale scientific paper abstracts. Highly technical, information-dense, and relatively short documents with strong domain-specific terminology. We use the first 5000 abstracts in dataset order. | [ 17 ] . |
| Alice’s Adventures in Wonderland (Project Gutenberg) | Alice | Single long-form narrative novel (fiction). Natural discourse progression with plot-driven topic transitions and stylistic variation. We treat the entire book as one document and keep the original reading order. | [ 18 , 19 ] . |
| Pride and Prejudice (Project Gutenberg) | Pride | Single long-form narrative novel (fiction). Long-range thematic development and chapter-level transitions. We treat the entire book as one document and keep the original reading order. | [ 18 , 62 ] . |
| MINE essays (kyssen/kg-gen-evaluation-essays) | MINE | A collection of knowledge-focused essays (multi-document). Each essay is relatively short and expository, often exhibiting clearer local coherence than narratives. We preserve dataset order and concatenate essays to form . | [ 63 ] . |
| Wikipedia (English) (google/wiki40b) | Wikipedia | Encyclopedic articles spanning broad topics; expository style with frequent entity/topic changes across documents. We use the first 5,000 documents in dataset order. | [ 64 ] . |
| Corpus | bge-large | e5-large | all-mpnet | gte-large | text-embedding | Avg. |
|---|---|---|---|---|---|---|
| ArXiv | 0.505 | 0.231 | 0.865 | 0.249 | 0.789 | 0.528 |
| Alice’s Adventures | 0.582 | 0.232 | 0.747 | 0.202 | 0.697 | 0.492 |
| Pride and Prejudice | 0.577 | 0.240 | 0.774 | 0.209 | 0.718 | 0.504 |
| MINE | 0.575 | 0.253 | 0.903 | 0.256 | 0.882 | 0.574 |
| Wikipedia | 0.641 | 0.293 | 0.897 | 0.261 | 0.900 | 0.598 |
| Avg. (across corpora) | 0.576 | 0.250 | 0.837 | 0.235 | 0.797 | 0.539 |
| Corpus | bge-large | e5-large | all-mpnet | gte-large | text-embedding |
|---|---|---|---|---|---|
| ArXiv | |||||
| Alice | |||||
| Pride | |||||
| MINE | |||||
| Wikipedia |
| Granularity | Splitter | P | R | F1 | Pk | WD | avg_sents | var_sents |
|---|---|---|---|---|---|---|---|---|
| 3 | Fixed | 0.1998 | 0.3322 | 0.2495 | 0.5353 | 0.5410 | 2.998 | 0.004 |
| Semantic | 0.1684 | 0.2688 | 0.2071 | 0.4088 | 0.4533 | 3.123 | 5.395 | |
| Shift(Ours) | 0.3809 | 0.6244 | 0.4731 | 0.3733 | 0.3894 | 3.041 | 0.977 | |
| 5 | Fixed | 0.2010 | 0.2003 | 0.2007 | 0.4854 | 0.4884 | 4.998 | 0.002 |
| Semantic | 0.1555 | 0.1553 | 0.1554 | 0.3914 | 0.4074 | 4.990 | 16.371 | |
| Shift(Ours) | 0.3452 | 0.3406 | 0.3429 | 0.3763 | 0.3827 | 5.049 | 1.489 |
| Granularity | Splitter | P | R | F1 | Pk | WD | avg_sents | var_sents |
|---|---|---|---|---|---|---|---|---|
| 3 | Fixed | 0.2845 | 0.3077 | 0.2956 | 0.4772 | 0.4779 | 3.000 | 0.000 |
| Semantic | 0.3304 | 0.3543 | 0.3420 | 0.4679 | 0.5501 | 3.026 | 7.287 | |
| Shift(Ours) | 0.4203 | 0.4487 | 0.4340 | 0.3907 | 0.4014 | 3.039 | 1.078 | |
| 5 | Fixed | 0.2962 | 0.1923 | 0.2332 | 0.5246 | 0.5246 | 4.995 | 0.016 |
| Semantic | 0.3070 | 0.1993 | 0.2417 | 0.5160 | 0.5494 | 4.995 | 22.941 | |
| Shift(Ours) | 0.3485 | 0.2238 | 0.2725 | 0.5124 | 0.5135 | 5.049 | 2.304 |
Text Embeddings
Text embeddings map words, sentences, or documents to vectors for measuring meaning, retrieving information, and organizing text.
See all 56 papers