Fast, Effective, and Self-Supervised: Transforming Masked Language Models into Universal Lexical and Sentence Encoders
Not on the map. Why?
Abstract (arXiv)
Pretrained Masked Language Models (MLMs) have revolutionised NLP in recent years. However, previous work has indicated that off-the-shelf MLMs are not effective as universal lexical or sentence encoders without further task-specific fine-tuning on NLI, sentence similarity, or paraphrasing tasks using annotated task data. In this work, we demonstrate that it is possible to turn MLMs into effective universal lexical and sentence encoders even without any additional data and without any supervision. We propose an extremely simple, fast and effective contrastive learning technique, termed Mirror-BERT, which converts MLMs (e.g., BERT and RoBERTa) into such encoders in 20-30 seconds without any additional external knowledge. Mirror-BERT relies on fully identical or slightly modified string pairs as positive (i.e., synonymous) fine-tuning examples, and aims to maximise their similarity during identity fine-tuning. We report huge gains over off-the-shelf MLMs with Mirror-BERT in both lexical-level and sentence-level tasks, across different domains and different languages. Notably, in the standard sentence semantic similarity (STS) tasks, our self-supervised Mirror-BERT model even matches the performance of the task-tuned Sentence-BERT models from prior work. Finally, we delve deeper into the inner workings of MLMs, and suggest some evidence on why this simple approach can yield effective universal lexical and sentence encoders.
Key facts. Cited by 88 papers in the map (data through 7 Oct 2026). Builds on 48 of its 81 references that are in the map. First posted on arXiv 16 Apr 2021.
Builds on
48 of 81 references.
References · 48
- 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
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2015A large annotated corpus for learning natural language inferencecited by 1,837
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
- 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,393
36 more
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
- 2019AugMix: A Simple Data Processing Method to Improve Robustness and Uncertaintycited by 897
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2020A Primer in BERTology: What we know about how BERT workscited by 807
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 770
- 2020Language-agnostic BERT Sentence Embeddingcited by 621
- 2017Word Translation Without Parallel Datacited by 480
- 2015Skip-Thought Vectorscited by 321
- 2019Revealing the Dark Secrets of BERTcited by 300
- 2020DeCLUTR: Deep Contrastive Learning for Unsupervised Textual Representationscited by 249
- 2020Self-Alignment Pretraining for Biomedical Entity Representationscited by 233
- 2019WikiMatrix: Mining 135M Parallel Sentences in 1620 Language Pairs from Wikipediacited by 221
- 2017Advances in Pre-Training Distributed Word Representationscited by 207
- 2017All-but-the-Top: Simple and Effective Postprocessing for Word Representationscited by 205
- 2021Whitening Sentence Representations for Better Semantics and Faster Retrievalcited by 198
- 2018An efficient framework for learning sentence representationscited by 197
- 2020CLEAR: Contrastive Learning for Sentence Representationcited by 186
- 2014SimLex-999: Evaluating Semantic Models with (Genuine) Similarity Estimationcited by 170
- 2019Poly-encoders: Transformer Architectures and Pre-training Strategies for Fast and Accurate Multi-sentence Scoringcited by 164
- 2020Probing Pretrained Language Models for Lexical Semanticscited by 156
- 2018A robust self-learning method for fully unsupervised cross-lingual mappings of word embeddingscited by 145
- 2020Augmented SBERT: Data Augmentation Method for Improving Bi-Encoders for Pairwise Sentence Scoring Taskscited by 136
- 2021COCO-LM: Correcting and Contrasting Text Sequences for Language Model Pretrainingcited by 126
- 2020An Unsupervised Sentence Embedding Method by Mutual Information Maximizationcited by 91
- 2016Learning Distributed Representations of Sentences from Unlabelled Datacited by 90
- 2020COMETA: A Corpus for Medical Entity Linking in the Social Mediacited by 49
- 2019How to (Properly) Evaluate Cross-Lingual Word Embeddings: On Strong Baselines, Comparative Analyses, and Some Misconceptionscited by 48
- 2019Training Neural Response Selection for Task-Oriented Dialogue Systemscited by 48
- 2021A Primer on Contrastive Pretraining in Language Processing: Methods, Lessons Learned and Perspectivescited by 41
- 2020Multi-SimLex: A Large-Scale Evaluation of Multilingual and Cross-Lingual Lexical Semantic Similaritycited by 38
- 2020Is Supervised Syntactic Parsing Beneficial for Language Understanding? An Empirical Investigationcited by 34
- 2020Scheduled DropHead: A Regularization Method for Transformer Modelscited by 28
- 2015Dropout as data augmentationcited by 27
- 2021Evaluating Multilingual Text Encoders for Unsupervised Cross-Lingual Retrievalcited by 16
- 2018Card-660: Cambridge Rare Word Dataset - a Reliable Benchmark for Infrequent Word Representation Modelscited by 11
Built on by
Citing papers per year: 2021: 15; 2022: 26; 2023: 21; 2024: 14; 2025: 8; 2026: 4.
88 papers.
Sort:
By area:
- 2022A Contrastive Framework for Neural Text Generationcited by 224
- 2021AMMUS : A Survey of Transformer-based Pretrained Models in Natural Language Processingcited by 131
- 2021GPL: Generative Pseudo Labeling for Unsupervised Domain Adaptation of Dense Retrievalcited by 119
- 2022Language Models Can See: Plugging Visual Controls in Text Generationcited by 89
- 2021ESimCSE: Enhanced Sample Building Method for Contrastive Learning of Unsupervised Sentence Embeddingcited by 73
- 2022TweetNLP: Cutting-Edge Natural Language Processing for Social Mediacited by 71
- 2023When Brain-inspired AI Meets AGIcited by 54
- 2021Few-Shot Intent Detection via Contrastive Pre-Training and Fine-Tuningcited by 46
- 2024Segment Any Text: A Universal Approach for Robust, Efficient and Adaptable Sentence Segmentationcited by 41
- 2021TaCL: Improving BERT Pre-training with Token-aware Contrastive Learningcited by 32
- 2022Improved Universal Sentence Embeddings with Prompt-based Contrastive Learning and Energy-based Learningcited by 30
- 2022PCL: Peer-Contrastive Learning with Diverse Augmentations for Unsupervised Sentence Embeddingscited by 29
38 more
- 2021ConvFiT: Conversational Fine-Tuning of Pretrained Language Modelscited by 25
- 2022InfoCSE: Information-aggregated Contrastive Learning of Sentence Embeddingscited by 25
- 2022LaPraDoR: Unsupervised Pretrained Dense Retriever for Zero-Shot Text Retrievalcited by 24
- 2021Are Pretrained Transformers Robust in Intent Classification? A Missing Ingredient in Evaluation of Out-of-Scope Intent Detectioncited by 22
- 2021On Cross-Lingual Retrieval with Multilingual Text Encoderscited by 22
- 2022MCSE: Multimodal Contrastive Learning of Sentence Embeddingscited by 22
- 2021Rewire-then-Probe: A Contrastive Recipe for Probing Biomedical Knowledge of Pre-trained Language Modelscited by 21
- 2022EASE: Entity-Aware Contrastive Learning of Sentence Embeddingcited by 21
- 2021Trans-Encoder: Unsupervised sentence-pair modelling through self- and mutual-distillationscited by 20
- 2021MirrorWiC: On Eliciting Word-in-Context Representations from Pretrained Language Modelscited by 18
- 2022Improving Word Translation via Two-Stage Contrastive Learningcited by 18
- 2023Where's the Point? Self-Supervised Multilingual Punctuation-Agnostic Sentence Segmentationcited by 17
- 2022Ranking-Enhanced Unsupervised Sentence Representation Learningcited by 15
- 2021Prix-LM: Pretraining for Multilingual Knowledge Base Constructioncited by 12
- 2022Continual Learning by Modeling Intra-Class Variationcited by 12
- 2022Detection, Disambiguation, Re-ranking: Autoregressive Entity Linking as a Multi-Task Problemcited by 11
- 2023A Comprehensive Survey of Sentence Representations: From the BERT Epoch to the ChatGPT Era and Beyondcited by 11
- 2023Investigating Pre-trained Audio Encoders in the Low-Resource Conditioncited by 11
- 2023Language Models are Universal Embedderscited by 11
- 2022Enhancing Out-of-Distribution Detection in Natural Language Understanding via Implicit Layer Ensemblecited by 9
- 2023Distilling Semantic Concept Embeddings from Contrastively Fine-Tuned Language Modelscited by 8
- 2023Ultra-Fine Entity Typing with Prior Knowledge about Labels: A Simple Clustering Based Strategycited by 8
- 2022Probing Cross-Lingual Lexical Knowledge from Multilingual Sentence Encoderscited by 7
- 2022miCSE: Mutual Information Contrastive Learning for Low-shot Sentence Embeddingscited by 7
- 2022Global and Local Hierarchy-aware Contrastive Framework for Implicit Discourse Relation Recognitioncited by 7
- 2024Extracting Sentence Embeddings from Pretrained Transformer Modelscited by 7
- 2021Sharpness-Aware Minimization with Dynamic Reweightingcited by 6
- 2021Improving Social Meaning Detection with Pragmatic Masking and Surrogate Fine-Tuningcited by 5
- 2023QAID: Question Answering Inspired Few-shot Intent Detectioncited by 5
- 2023On the Dimensionality of Sentence Embeddingscited by 5
- 2023Transfer-Free Data-Efficient Multilingual Slot Labelingcited by 4
- 2024Ontology Completion with Natural Language Inference and Concept Embeddings: An Analysiscited by 4
- 2024News Without Borders: Domain Adaptation of Multilingual Sentence Embeddings for Cross-lingual News Recommendationcited by 4
- 2021SimCLAD: A Simple Framework for Contrastive Learning of Acronym Disambiguationcited by 3
- 2022UniASM: Binary Code Similarity Detection without Fine-tuningcited by 3
- 2023Efficient Document Embeddings via Self-Contrastive Bregman Divergence Learningcited by 3
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Surveycited by 3
- 2022Self-supervised Rewiring of Pre-trained Speech Encoders: Towards Faster Fine-tuning with Less Labels in Speech Processingcited by 2
50 most cited of 88 All 88 (JSON)
- 2026Anticipating Innovation Using Large Language Models6 May 2026
- 2026Pooling and Semantic Shift: The Fundamental Challenges in Long Text Embedding and Retrieval22 Mar 2026
- 2026AfroScope: A Framework for Studying the Linguistic Landscape of Africa19 Jan 2026
- 2026Contrastive Learning with Narrative Twins for Modeling Story Salience12 Jan 2026
- 2025MOSAIC: Masked Objective with Selective Adaptation for In-domain Contrastive Learning19 Oct 2025
- 2025Text2Token: Unsupervised Text Representation Learning with Token Target Prediction11 Oct 2025
- 2025Extracting Conceptual Spaces from LLMs Using Prototype Embeddings23 Sep 2025
- 2025Cropping outperforms dropout as an augmentation strategy for self-supervised training of text embeddings5 Aug 2025
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Survey28 Jul 2025
- 2025Enhancing User Sequence Modeling through Barlow Twins-based Self-Supervised Learning2 May 2025
- 2025Challenging Assumptions in Learning Generic Text Style Embeddings27 Jan 2025
- 2025Interpretability Analysis of Domain Adapted Dense Retrievers24 Jan 2025
38 more
- 2024Modeling Multi-modal Cross-interaction for Multi-label Few-shot Image Classification Based on Local Feature Selection18 Dec 2024
- 2024Evaluating LLM-based Approaches to Legal Citation Prediction: Domain-specific Pre-training, Fine-tuning, or RAG? A Benchmark and an Australian Law Case Study9 Dec 2024
- 2024Inner-Probe: Discovering Copyright-related Data Generation in LLM Architecture6 Oct 2024
- 2024Distilling Monolingual and Crosslingual Word-in-Context Representations13 Sep 2024
- 2024Extracting Sentence Embeddings from Pretrained Transformer Models15 Aug 2024
- 2024Boosting Biomedical Concept Extraction by Rule-Based Data Augmentation3 Jul 2024
- 2024Segment Any Text: A Universal Approach for Robust, Efficient and Adaptable Sentence Segmentation24 Jun 2024
- 2024News Without Borders: Domain Adaptation of Multilingual Sentence Embeddings for Cross-lingual News Recommendation18 Jun 2024
- 2024Event-enhanced Retrieval in Real-time Search9 Apr 2024
- 2024Ontology Completion with Natural Language Inference and Concept Embeddings: An Analysis25 Mar 2024
- 2024Modelling Commonsense Commonalities with Multi-Facet Concept Embeddings25 Mar 2024
- 2024Injecting Wiktionary to improve token-level contextual representations using contrastive learning12 Feb 2024
- 2024UNSEE: Unsupervised Non-contrastive Sentence Embeddings27 Jan 2024
- 2024Unsupervised hard Negative Augmentation for contrastive learning5 Jan 2024
- 2023Sparse Contrastive Learning of Sentence Embeddings7 Nov 2023
- 2023An Efficient Self-Supervised Cross-View Training For Sentence Embedding6 Nov 2023
- 2023IntenDD: A Unified Contrastive Learning Approach for Intent Detection and Discovery25 Oct 2023
- 2023On the Dimensionality of Sentence Embeddings23 Oct 2023
- 2023What do Deck Chairs and Sun Hats Have in Common? Uncovering Shared Properties in Large Concept Vocabularies23 Oct 2023
- 2023RSVP: Customer Intent Detection via Agent Response Contrastive and Generative Pre-Training15 Oct 2023
- 2023Language Models are Universal Embedders12 Oct 2023
- 2023What Constitutes Good Contrastive Learning in Time-Series Forecasting?21 Jun 2023
- 2023Where's the Point? Self-Supervised Multilingual Punctuation-Agnostic Sentence Segmentation30 May 2023
- 2023Robust Reinforcement Learning Objectives for Sequential Recommender Systems30 May 2023
- 2023Investigating Pre-trained Audio Encoders in the Low-Resource Condition28 May 2023
- 2023Efficient Document Embeddings via Self-Contrastive Bregman Divergence Learning25 May 2023
- 2023Transfer-Free Data-Efficient Multilingual Slot Labeling22 May 2023
- 2023Learning Easily Updated General Purpose Text Representations with Adaptable Task-Specific Prefixes22 May 2023
- 2023EnCore: Fine-Grained Entity Typing by Pre-Training Entity Encoders on Coreference Chains22 May 2023
- 2023Ultra-Fine Entity Typing with Prior Knowledge about Labels: A Simple Clustering Based Strategy22 May 2023
- 2023A Comprehensive Survey of Sentence Representations: From the BERT Epoch to the ChatGPT Era and Beyond22 May 2023
- 2023Distilling Semantic Concept Embeddings from Contrastively Fine-Tuned Language Models16 May 2023
- 2023When Brain-inspired AI Meets AGI28 Mar 2023
- 2023QAID: Question Answering Inspired Few-shot Intent Detection2 Mar 2023
- 2023MFBE: Leveraging Multi-Field Information of FAQs for Efficient Dense Retrieval23 Feb 2023
- 2022Global and Local Hierarchy-aware Contrastive Framework for Implicit Discourse Relation Recognition25 Nov 2022
- 2022miCSE: Mutual Information Contrastive Learning for Low-shot Sentence Embeddings9 Nov 2022
- 2022Reranking Overgenerated Responses for End-to-End Task-Oriented Dialogue Systems7 Nov 2022
50 newest of 88 All 88 (JSON)
- 2024Event-enhanced Retrieval in Real-time Searchcited by 1
- 2024Event-enhanced Retrieval in Real-time Search9 Apr 2024
- 2022A Contrastive Framework for Neural Text Generationcited by 224
- 2021AMMUS : A Survey of Transformer-based Pretrained Models in Natural Language Processingcited by 131
- 2021GPL: Generative Pseudo Labeling for Unsupervised Domain Adaptation of Dense Retrievalcited by 119
- 2022Language Models Can See: Plugging Visual Controls in Text Generationcited by 89
- 2021ESimCSE: Enhanced Sample Building Method for Contrastive Learning of Unsupervised Sentence Embeddingcited by 73
- 2022TweetNLP: Cutting-Edge Natural Language Processing for Social Mediacited by 71
- 2023When Brain-inspired AI Meets AGIcited by 54
- 2021Few-Shot Intent Detection via Contrastive Pre-Training and Fine-Tuningcited by 46
- 2024Segment Any Text: A Universal Approach for Robust, Efficient and Adaptable Sentence Segmentationcited by 41
- 2021TaCL: Improving BERT Pre-training with Token-aware Contrastive Learningcited by 32
- 2022Improved Universal Sentence Embeddings with Prompt-based Contrastive Learning and Energy-based Learningcited by 30
- 2022PCL: Peer-Contrastive Learning with Diverse Augmentations for Unsupervised Sentence Embeddingscited by 29
12 most cited of 86 All 86 (JSON)
- 2026Anticipating Innovation Using Large Language Models6 May 2026
- 2026Pooling and Semantic Shift: The Fundamental Challenges in Long Text Embedding and Retrieval22 Mar 2026
- 2026AfroScope: A Framework for Studying the Linguistic Landscape of Africa19 Jan 2026
- 2026Contrastive Learning with Narrative Twins for Modeling Story Salience12 Jan 2026
- 2025MOSAIC: Masked Objective with Selective Adaptation for In-domain Contrastive Learning19 Oct 2025
- 2025Text2Token: Unsupervised Text Representation Learning with Token Target Prediction11 Oct 2025
- 2025Extracting Conceptual Spaces from LLMs Using Prototype Embeddings23 Sep 2025
- 2025Cropping outperforms dropout as an augmentation strategy for self-supervised training of text embeddings5 Aug 2025
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Survey28 Jul 2025
- 2025Enhancing User Sequence Modeling through Barlow Twins-based Self-Supervised Learning2 May 2025
- 2025Challenging Assumptions in Learning Generic Text Style Embeddings27 Jan 2025
- 2025Interpretability Analysis of Domain Adapted Dense Retrievers24 Jan 2025
12 newest of 86 All 86 (JSON)