mlsanityData to 7 Oct 2026

LLM-based Embeddings: Attention Values Encode Sentence Semantics Better Than Hidden States

arXiv 2602.01572 ↗First posted 2 Feb 2026cs.CL cs.IRcited by 1

Not on the map. Why?

Abstract (arXiv)

Sentence representations are foundational to many Natural Language Processing (NLP) applications. While recent methods leverage Large Language Models (LLMs) to derive sentence representations, most rely on final-layer hidden states, which are optimized for next-token prediction and thus often fail to capture global, sentence-level semantics. This paper introduces a novel perspective, demonstrating that attention value vectors capture sentence semantics more effectively than hidden states. We propose Value Aggregation (VA), a simple method that pools token values across multiple layers and token indices. In a training-free setting, VA outperforms other LLM-based embeddings, even matches or surpasses the ensemble-based MetaEOL. Furthermore, we demonstrate that when paired with suitable prompts, the layer attention outputs can be interpreted as aligned weighted value vectors. Specifically, the attention scores of the last token function as the weights, while the output projection matrix (WO) aligns these weighted value vectors with the common space of the LLM residual stream. This refined method, termed Aligned Weighted VA (AlignedWVA), achieves state-of-the-art performance among training-free LLM-based embeddings, outperforming the high-cost MetaEOL by a substantial margin. Finally, we highlight the potential of obtaining strong LLM embedding models through fine-tuning Value Aggregation.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 28 of its 30 references that are in the map. First posted on arXiv 2 Feb 2026.

Builds on

28 of 30 references.

References · 28

  1. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  2. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  3. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
  4. 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
  5. 2022MTEB: Massive Text Embedding Benchmarkcited by 623
  6. 2023C-Pack: Packed Resources For General Chinese Embeddingscited by 556
  7. 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 466
  8. 2021Sentence-T5: Scalable Sentence Encoders from Pre-trained Text-to-Text Modelscited by 462
  9. 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 396
  10. 2024Multilingual E5 Text Embeddings: A Technical Reportcited by 357
  11. 2025Layer by Layer: Uncovering Hidden Representations in Language Modelscited by 293
  12. 2024Do Llamas Work in English? On the Latent Language of Multilingual Transformerscited by 275
16 more
  1. 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 235
  2. 2024Generative Representational Instruction Tuningcited by 227
  3. 2022SGPT: GPT Sentence Embeddings for Semantic Searchcited by 204
  4. 2025MMTEB: Massive Multilingual Text Embedding Benchmarkcited by 120
  5. 2024Repetition Improves Language Model Embeddingscited by 70
  6. 2024The Semantic Hub Hypothesis: Language Models Share Semantic Representations Across Languages and Modalitiescited by 69
  7. 2025Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same Coincited by 47
  8. 2024Your Mixture-of-Experts LLM Is Secretly an Embedding Model For Freecited by 37
  9. 2020What's so special about BERT's layers? A closer look at the NLP pipeline in monolingual and multilingual modelscited by 35
  10. 2024Pooling And Attention: What Are Effective Designs For LLM-Based Embedding Models?cited by 19
  11. 2024Meta-Task Prompting Elicits Embeddings from Large Language Modelscited by 15
  12. 2025Contrastive Prompting Enhances Sentence Embeddings in LLMs through Inference-Time Steeringcited by 13
  13. 2022Layer or Representation Space: What makes BERT-based Evaluation Metrics Robust?cited by 10
  14. 2024Extracting Sentence Embeddings from Pretrained Transformer Modelscited by 7
  15. 2025Training LLMs to be Better Text Embedders through Bidirectional Reconstructioncited by 6
  16. 2025Learning to Compress: Unlocking the Potential of Large Language Models for Text Representationcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.