Pooling And Attention: What Are Effective Designs For LLM-Based Embedding Models?
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,907
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2024Qwen2 Technical Reportcited by 2,076
- 2015A large annotated corpus for learning natural language inferencecited by 1,837
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
19 more
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
- 2018FEVER: a large-scale dataset for Fact Extraction and VERificationcited by 1,362
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
- 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,271
- 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,050
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2023Towards General Text Embeddings with Multi-stage Contrastive Learningcited by 705
- 2019ELI5: Long Form Question Answeringcited by 567
- 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 466
- 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 396
- 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 358
- 2022One Embedder, Any Task: Instruction-Finetuned Text Embeddingscited by 329
- 2023Fine-Tuning LLaMA for Multi-Stage Text Retrievalcited by 271
- 2017Efficient Natural Language Response Suggestion for Smart Replycited by 228
- 2021Mr. TyDi: A Multi-lingual Benchmark for Dense Retrievalcited by 118
- 2024How Large Language Models Encode Context Knowledge? A Layer-Wise Probing Studycited by 64
- 2022Making a MIRACL: Multilingual Information Retrieval Across a Continuum of Languagescited by 47
- 2022Don't Judge a Language Model by Its Last Layer: Contrastive Learning with Layer-Wise Attention Poolingcited by 12
Built on by
Citing papers per year: 2025: 4; 2026: 15.
19 papers.
Sort:
By area:
- 2026Diffusion-Pretrained Dense and Contextual Embeddingscited by 9
- 2025Pool Me Wisely: On the Effect of Pooling in Transformer-Based Modelscited by 6
- 2026Ventriloquist LLMs: Linear Alignment of Late-Stage Representationscited by 3
- 2026Sparse Growing Transformer: Training-Time Sparse Depth Allocation via Progressive Attention Loopingcited by 3
- 2025Adapting General-Purpose Embedding Models to Private Datasets Using Keyword-based Retrievalcited by 2
- 2025GAPrune: Gradient-Alignment Pruning for Domain-Aware Embeddingscited by 2
- 2026Behavior-Aware Item Modeling via Dynamic Procedural Solution Representations for Knowledge Tracingcited by 2
- 2026LLM-based Embeddings: Attention Values Encode Sentence Semantics Better Than Hidden Statescited by 1
- 2026Towards Improved Sentence Representations using Token Graphscited by 1
- 2026Generative Archetype-Grounded Item Representations for Sequential Recommendationcited by 1
- 2025Behavior and Representation in Open-Weight Large Language Models for Combinatorial Optimization: From Feature Extraction to Algorithm Selectioncited by 0
- 2026Xray-Visual Models: Scaling Vision models on Industry Scale Datacited by 0
7 more
- 2026Health System Scale Semantic Search Across Unstructured Clinical Notescited by 0
- 2026Frequency-Domain Latent Attention Gating for Cross-Domain Token Aggregationcited by 0
- 2026Training-Free versus Training-Based Intent Classification in LLMs: Accuracy, Robustness, and Failure Modescited by 0
- 2026FLaG: Frequency-Domain Latent-attention Gated Pooling for Token Aggregationcited by 0
- 2026MARS: What Retrieval Signals Are Hidden in Multimodal Large Language Models for Text-Video Retrieval?cited by 0
- 2026FastE: Readout-Triggered Token Compression for LLM Embedding Inferencecited by 0
- 2026Reference-Based Bias Detection in LLMs via Relative Representations of Hidden Statescited by 0
- 2026Reference-Based Bias Detection in LLMs via Relative Representations of Hidden States9 Sep 2026
- 2026FastE: Readout-Triggered Token Compression for LLM Embedding Inference8 Sep 2026
- 2026MARS: What Retrieval Signals Are Hidden in Multimodal Large Language Models for Text-Video Retrieval?2 Sep 2026
- 2026FLaG: Frequency-Domain Latent-attention Gated Pooling for Token Aggregation1 Sep 2026
- 2026Training-Free versus Training-Based Intent Classification in LLMs: Accuracy, Robustness, and Failure Modes3 Aug 2026
- 2026Generative Archetype-Grounded Item Representations for Sequential Recommendation9 Jun 2026
- 2026Frequency-Domain Latent Attention Gating for Cross-Domain Token Aggregation6 Jun 2026
- 2026Health System Scale Semantic Search Across Unstructured Clinical Notes28 Apr 2026
- 2026Behavior-Aware Item Modeling via Dynamic Procedural Solution Representations for Knowledge Tracing9 Apr 2026
- 2026Sparse Growing Transformer: Training-Time Sparse Depth Allocation via Progressive Attention Looping25 Mar 2026
- 2026Ventriloquist LLMs: Linear Alignment of Late-Stage Representations19 Mar 2026
- 2026Towards Improved Sentence Representations using Token Graphs3 Mar 2026
7 more
- 2026Xray-Visual Models: Scaling Vision models on Industry Scale Data18 Feb 2026
- 2026Diffusion-Pretrained Dense and Contextual Embeddings11 Feb 2026
- 2026LLM-based Embeddings: Attention Values Encode Sentence Semantics Better Than Hidden States2 Feb 2026
- 2025Behavior and Representation in Open-Weight Large Language Models for Combinatorial Optimization: From Feature Extraction to Algorithm Selection15 Dec 2025
- 2025Pool Me Wisely: On the Effect of Pooling in Transformer-Based Models2 Oct 2025
- 2025GAPrune: Gradient-Alignment Pruning for Domain-Aware Embeddings13 Sep 2025
- 2025Adapting General-Purpose Embedding Models to Private Datasets Using Keyword-based Retrieval31 May 2025
- 2026Diffusion-Pretrained Dense and Contextual Embeddingscited by 9
- 2025Pool Me Wisely: On the Effect of Pooling in Transformer-Based Modelscited by 6
- 2026Ventriloquist LLMs: Linear Alignment of Late-Stage Representationscited by 3
- 2026Sparse Growing Transformer: Training-Time Sparse Depth Allocation via Progressive Attention Loopingcited by 3
- 2026Behavior-Aware Item Modeling via Dynamic Procedural Solution Representations for Knowledge Tracingcited by 2
- 2026LLM-based Embeddings: Attention Values Encode Sentence Semantics Better Than Hidden Statescited by 1
- 2026Towards Improved Sentence Representations using Token Graphscited by 1
- 2026Generative Archetype-Grounded Item Representations for Sequential Recommendationcited by 1
- 2025Behavior and Representation in Open-Weight Large Language Models for Combinatorial Optimization: From Feature Extraction to Algorithm Selectioncited by 0
- 2026Xray-Visual Models: Scaling Vision models on Industry Scale Datacited by 0
- 2026Health System Scale Semantic Search Across Unstructured Clinical Notescited by 0
- 2026Frequency-Domain Latent Attention Gating for Cross-Domain Token Aggregationcited by 0
12 most cited of 15 All 15 (JSON)
- 2026Reference-Based Bias Detection in LLMs via Relative Representations of Hidden States9 Sep 2026
- 2026FLaG: Frequency-Domain Latent-attention Gated Pooling for Token Aggregation1 Sep 2026
- 2026Training-Free versus Training-Based Intent Classification in LLMs: Accuracy, Robustness, and Failure Modes3 Aug 2026
- 2026Generative Archetype-Grounded Item Representations for Sequential Recommendation9 Jun 2026
- 2026Frequency-Domain Latent Attention Gating for Cross-Domain Token Aggregation6 Jun 2026
- 2026Health System Scale Semantic Search Across Unstructured Clinical Notes28 Apr 2026
- 2026Behavior-Aware Item Modeling via Dynamic Procedural Solution Representations for Knowledge Tracing9 Apr 2026
- 2026Sparse Growing Transformer: Training-Time Sparse Depth Allocation via Progressive Attention Looping25 Mar 2026
- 2026Ventriloquist LLMs: Linear Alignment of Late-Stage Representations19 Mar 2026
- 2026Towards Improved Sentence Representations using Token Graphs3 Mar 2026
- 2026Xray-Visual Models: Scaling Vision models on Industry Scale Data18 Feb 2026
- 2026Diffusion-Pretrained Dense and Contextual Embeddings11 Feb 2026
12 newest of 15 All 15 (JSON)