Don't Judge a Language Model by Its Last Layer: Contrastive Learning with Layer-Wise Attention Pooling
Not on the map. Why?
Abstract (arXiv)
Recent pre-trained language models (PLMs) achieved great success on many natural language processing tasks through learning linguistic features and contextualized sentence representation. Since attributes captured in stacked layers of PLMs are not clearly identified, straightforward approaches such as embedding the last layer are commonly preferred to derive sentence representations from PLMs. This paper introduces the attention-based pooling strategy, which enables the model to preserve layer-wise signals captured in each layer and learn digested linguistic features for downstream tasks. The contrastive learning objective can adapt the layer-wise attention pooling to both unsupervised and supervised manners. It results in regularizing the anisotropic space of pre-trained embeddings and being more uniform. We evaluate our model on standard semantic textual similarity (STS) and semantic search tasks. As a result, our method improved the performance of the base contrastive learned BERT_base and variants.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 14 of its 28 references that are in the map. First posted on arXiv 13 Sep 2022.
Builds on
14 of 28 references.
References · 14
- 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
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2015A large annotated corpus for learning natural language inferencecited by 1,837
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,024
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
- 2017Efficient Natural Language Response Suggestion for Smart Replycited by 228
2 more
Built on by
Citing papers per year: 2022: 1; 2023: 2; 2024: 4; 2025: 2; 2026: 3.
12 papers.
- 2024Pooling And Attention: What Are Effective Designs For LLM-Based Embedding Models?cited by 19
- 2022L3Cube-MahaSBERT and HindSBERT: Sentence BERT Models and Benchmarking BERT Sentence Representations for Hindi and Marathicited by 10
- 2023PWESuite: Phonetic Word Embeddings and Tasks They Facilitatecited by 6
- 2023Quick Dense Retrievers Consume KALE: Post Training Kullback Leibler Alignment of Embeddings for Asymmetrical dual encoderscited by 5
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Surveycited by 3
- 2024Don't be a Fool: Pooling Strategies in Offensive Language Detection from User-Intended Adversarial Attackscited by 2
- 2024Improving Content Recommendation: Knowledge Graph-Based Semantic Contrastive Learning for Diversity and Cold-Start Userscited by 2
- 2025Predicting Through Generation: Why Generation Is Better for Predictioncited by 2
- 2026An Efficient and Effective Evaluator for Text2SQL Models on Unseen and Unlabeled Datacited by 2
- 2024Adaptive Large Language Models By Layerwise Attention Shortcutscited by 1
- 2026Molecular Identifier Visual Prompt and Verifiable Reinforcement Learning for Chemical Reaction Diagram Parsingcited by 1
- 2026Zero-shot Dependency Parsing with Unsupervised Cross-Lingual Bootstrappingcited by 0
- 2026Zero-shot Dependency Parsing with Unsupervised Cross-Lingual Bootstrapping29 Sep 2026
- 2026Molecular Identifier Visual Prompt and Verifiable Reinforcement Learning for Chemical Reaction Diagram Parsing16 Mar 2026
- 2026An Efficient and Effective Evaluator for Text2SQL Models on Unseen and Unlabeled Data8 Mar 2026
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Survey28 Jul 2025
- 2025Predicting Through Generation: Why Generation Is Better for Prediction25 Feb 2025
- 2024Adaptive Large Language Models By Layerwise Attention Shortcuts17 Sep 2024
- 2024Pooling And Attention: What Are Effective Designs For LLM-Based Embedding Models?4 Sep 2024
- 2024Improving Content Recommendation: Knowledge Graph-Based Semantic Contrastive Learning for Diversity and Cold-Start Users27 Mar 2024
- 2024Don't be a Fool: Pooling Strategies in Offensive Language Detection from User-Intended Adversarial Attacks20 Mar 2024
- 2023PWESuite: Phonetic Word Embeddings and Tasks They Facilitate5 Apr 2023
- 2023Quick Dense Retrievers Consume KALE: Post Training Kullback Leibler Alignment of Embeddings for Asymmetrical dual encoders31 Mar 2023
- 2022L3Cube-MahaSBERT and HindSBERT: Sentence BERT Models and Benchmarking BERT Sentence Representations for Hindi and Marathi21 Nov 2022