Hierarchical Token Prepending: Enhancing Information Flow in Decoder-based LLM Embeddings
Not on the map. Why?
Abstract (arXiv)
Large language models produce powerful text embeddings, but their causal attention mechanism restricts the flow of information from later to earlier tokens, degrading representation quality. While recent methods attempt to solve this by prepending a single summary token, they over-compress information, hence harming performance on long documents. We propose Hierarchical Token Prepending (HTP), a method that resolves two critical bottlenecks. To mitigate attention-level compression, HTP partitions the input into blocks and prepends block-level summary tokens to subsequent blocks, creating multiple pathways for backward information flow. To address readout-level over-squashing, we replace last-token pooling with mean-pooling, a choice supported by theoretical analysis. HTP achieves consistent performance gains across 11 retrieval datasets and 30 general embedding benchmarks, especially in long-context settings. As a simple, architecture-agnostic method, HTP enhances both zero-shot and finetuned models, offering a scalable route to superior long-document embeddings.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 29 of its 41 references that are in the map. First posted on arXiv 18 Nov 2025.
Builds on
29 of 41 references.
References · 29
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2016Layer Normalizationcited by 5,579
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,259
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
- 2017The NarrativeQA Reading Comprehension Challengecited by 590
- 2020Fact or Fiction: Verifying Scientific Claimscited by 546
17 more
- 2021Understanding over-squashing and bottlenecks on graphs via curvaturecited by 471
- 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 466
- 2021Sentence-T5: Scalable Sentence Encoders from Pre-trained Text-to-Text Modelscited by 462
- 2020SPECTER: Document-level Representation Learning using Citation-informed Transformerscited by 426
- 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 396
- 2021QMSum: A New Benchmark for Query-based Multi-domain Meeting Summarizationcited by 363
- 2025Layer by Layer: Uncovering Hidden Representations in Language Modelscited by 293
- 2023Fine-Tuning LLaMA for Multi-Stage Text Retrievalcited by 271
- 2024Generative Representational Instruction Tuningcited by 227
- 2024Transformers need glasses! Information over-squashing in language taskscited by 87
- 2024LongEmbed: Extending Embedding Models for Long Context Retrievalcited by 47
- 2024Fantastic Semantics and Where to Find Them: Investigating Which Layers of Generative LLMs Reflect Lexical Semanticscited by 43
- 2024Your Mixture-of-Experts LLM Is Secretly an Embedding Model For Freecited by 37
- 2023BeLLM: Backward Dependency Enhanced Large Language Model for Sentence Embeddingscited by 32
- 2024Token Prepending: A Training-Free Approach for Eliciting Better Sentence Embeddings from LLMscited by 18
- 2023Composition-contrastive Learning for Sentence Embeddingscited by 14
- 2025Contrastive Prompting Enhances Sentence Embeddings in LLMs through Inference-Time Steeringcited by 13
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026SemPA: Improving Sentence Embeddings of Large Language Models through Semantic Preference Alignmentcited by 1
- 2026A Hormone-inspired Emotion Layer for Transformer language models (HELT)cited by 0
- 2026Selecting What Matters: Semantic Compression-Guided Selective Pooling for Long-Context Embeddingscited by 0
- 2026Selecting What Matters: Semantic Compression-Guided Selective Pooling for Long-Context Embeddings29 Sep 2026
- 2026A Hormone-inspired Emotion Layer for Transformer language models (HELT)13 Apr 2026
- 2026SemPA: Improving Sentence Embeddings of Large Language Models through Semantic Preference Alignment8 Jan 2026