mlsanityData to 7 Oct 2026

Pooling And Attention: What Are Effective Designs For LLM-Based Embedding Models?

arXiv 2409.02727 ↗First posted 4 Sep 2024cs.CL cs.IRcited by 19

Not on the map. Why?

Abstract (arXiv)

The significant advancements of Large Language Models (LLMs) in generative tasks have led to a growing body of work exploring LLM-based embedding models. While these models, employing different pooling and attention strategies, have achieved state-of-the-art performance on public embedding benchmarks, questions still arise about what constitutes an effective design for LLM-based embedding models. However, these models are often trained on different datasets, using different LLM base models or training settings. Moreover, evaluations on public embedding benchmarks often fail to report statistical significance, making it difficult to determine which designs truly contribute to final performance. This complicates the process for practitioners seeking optimal training recipes for LLM-based embedding models. In this study, we conduct a large-scale experiment by training a series of LLM-based embedding models using the same training data and base model but differing in their pooling and attention strategies. The results show that there is no one-size-fits-all solution: while bidirectional attention and an additional trainable pooling layer outperform in text similarity and information retrieval tasks, they do not significantly surpass simpler designs like EOS-last token pooling and default causal attention in clustering and classification tasks. Furthermore, we propose a new pooling strategy, Multi-Layers Trainable Pooling, which transforms the outputs of all hidden layers, rather than just the last layer, using a cross-attention network. This method proves to be statistically superior in text similarity and retrieval tasks compared to existing pooling methods. Overall, this paper sheds light on effective training strategies for LLM-based embedding models.

Key facts. Cited by 19 papers in the map (data through 7 Oct 2026). Builds on 31 of its 44 references that are in the map. First posted on arXiv 4 Sep 2024.

Builds on

31 of 44 references.

References · 31

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2024The Llama 3 Herd of Modelscited by 14,192
  5. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  6. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  7. 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,907
  8. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
  9. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  10. 2024Qwen2 Technical Reportcited by 2,076
  11. 2015A large annotated corpus for learning natural language inferencecited by 1,837
  12. 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
19 more
  1. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
  2. 2018FEVER: a large-scale dataset for Fact Extraction and VERificationcited by 1,362
  3. 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
  4. 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,271
  5. 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,050
  6. 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
  7. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  8. 2023Towards General Text Embeddings with Multi-stage Contrastive Learningcited by 705
  9. 2019ELI5: Long Form Question Answeringcited by 567
  10. 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 466
  11. 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 396
  12. 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 358
  13. 2022One Embedder, Any Task: Instruction-Finetuned Text Embeddingscited by 329
  14. 2023Fine-Tuning LLaMA for Multi-Stage Text Retrievalcited by 271
  15. 2017Efficient Natural Language Response Suggestion for Smart Replycited by 228
  16. 2021Mr. TyDi: A Multi-lingual Benchmark for Dense Retrievalcited by 118
  17. 2024How Large Language Models Encode Context Knowledge? A Layer-Wise Probing Studycited by 64
  18. 2022Making a MIRACL: Multilingual Information Retrieval Across a Continuum of Languagescited by 47
  19. 2022Don't Judge a Language Model by Its Last Layer: Contrastive Learning with Layer-Wise Attention Poolingcited by 12

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 4; 2026: 15.

19 papers.

Sort:

By area:

  1. 2026Diffusion-Pretrained Dense and Contextual Embeddingscited by 9
  2. 2025Pool Me Wisely: On the Effect of Pooling in Transformer-Based Modelscited by 6
  3. 2026Ventriloquist LLMs: Linear Alignment of Late-Stage Representationscited by 3
  4. 2026Sparse Growing Transformer: Training-Time Sparse Depth Allocation via Progressive Attention Loopingcited by 3
  5. 2025Adapting General-Purpose Embedding Models to Private Datasets Using Keyword-based Retrievalcited by 2
  6. 2025GAPrune: Gradient-Alignment Pruning for Domain-Aware Embeddingscited by 2
  7. 2026Behavior-Aware Item Modeling via Dynamic Procedural Solution Representations for Knowledge Tracingcited by 2
  8. 2026LLM-based Embeddings: Attention Values Encode Sentence Semantics Better Than Hidden Statescited by 1
  9. 2026Towards Improved Sentence Representations using Token Graphscited by 1
  10. 2026Generative Archetype-Grounded Item Representations for Sequential Recommendationcited by 1
  11. 2025Behavior and Representation in Open-Weight Large Language Models for Combinatorial Optimization: From Feature Extraction to Algorithm Selectioncited by 0
  12. 2026Xray-Visual Models: Scaling Vision models on Industry Scale Datacited by 0
7 more
  1. 2026Health System Scale Semantic Search Across Unstructured Clinical Notescited by 0
  2. 2026Frequency-Domain Latent Attention Gating for Cross-Domain Token Aggregationcited by 0
  3. 2026Training-Free versus Training-Based Intent Classification in LLMs: Accuracy, Robustness, and Failure Modescited by 0
  4. 2026FLaG: Frequency-Domain Latent-attention Gated Pooling for Token Aggregationcited by 0
  5. 2026MARS: What Retrieval Signals Are Hidden in Multimodal Large Language Models for Text-Video Retrieval?cited by 0
  6. 2026FastE: Readout-Triggered Token Compression for LLM Embedding Inferencecited by 0
  7. 2026Reference-Based Bias Detection in LLMs via Relative Representations of Hidden Statescited by 0