mlsanityData to 7 Oct 2026

Fast, Effective, and Self-Supervised: Transforming Masked Language Models into Universal Lexical and Sentence Encoders

arXiv 2104.08027 ↗First posted 16 Apr 2021cs.CL cs.AI cs.LGcited by 88

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  4. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  6. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
  7. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  8. 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
  9. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  10. 2015A large annotated corpus for learning natural language inferencecited by 1,837
  11. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
  12. 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,393
36 more
  1. 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
  2. 2019AugMix: A Simple Data Processing Method to Improve Robustness and Uncertaintycited by 897
  3. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
  4. 2020A Primer in BERTology: What we know about how BERT workscited by 807
  5. 2019Are Sixteen Heads Really Better than One?cited by 803
  6. 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 770
  7. 2020Language-agnostic BERT Sentence Embeddingcited by 621
  8. 2017Word Translation Without Parallel Datacited by 480
  9. 2015Skip-Thought Vectorscited by 321
  10. 2019Revealing the Dark Secrets of BERTcited by 300
  11. 2020DeCLUTR: Deep Contrastive Learning for Unsupervised Textual Representationscited by 249
  12. 2020Self-Alignment Pretraining for Biomedical Entity Representationscited by 233
  13. 2019WikiMatrix: Mining 135M Parallel Sentences in 1620 Language Pairs from Wikipediacited by 221
  14. 2017Advances in Pre-Training Distributed Word Representationscited by 207
  15. 2017All-but-the-Top: Simple and Effective Postprocessing for Word Representationscited by 205
  16. 2021Whitening Sentence Representations for Better Semantics and Faster Retrievalcited by 198
  17. 2018An efficient framework for learning sentence representationscited by 197
  18. 2020CLEAR: Contrastive Learning for Sentence Representationcited by 186
  19. 2014SimLex-999: Evaluating Semantic Models with (Genuine) Similarity Estimationcited by 170
  20. 2019Poly-encoders: Transformer Architectures and Pre-training Strategies for Fast and Accurate Multi-sentence Scoringcited by 164
  21. 2020Probing Pretrained Language Models for Lexical Semanticscited by 156
  22. 2018A robust self-learning method for fully unsupervised cross-lingual mappings of word embeddingscited by 145
  23. 2020Augmented SBERT: Data Augmentation Method for Improving Bi-Encoders for Pairwise Sentence Scoring Taskscited by 136
  24. 2021COCO-LM: Correcting and Contrasting Text Sequences for Language Model Pretrainingcited by 126
  25. 2020An Unsupervised Sentence Embedding Method by Mutual Information Maximizationcited by 91
  26. 2016Learning Distributed Representations of Sentences from Unlabelled Datacited by 90
  27. 2020COMETA: A Corpus for Medical Entity Linking in the Social Mediacited by 49
  28. 2019How to (Properly) Evaluate Cross-Lingual Word Embeddings: On Strong Baselines, Comparative Analyses, and Some Misconceptionscited by 48
  29. 2019Training Neural Response Selection for Task-Oriented Dialogue Systemscited by 48
  30. 2021A Primer on Contrastive Pretraining in Language Processing: Methods, Lessons Learned and Perspectivescited by 41
  31. 2020Multi-SimLex: A Large-Scale Evaluation of Multilingual and Cross-Lingual Lexical Semantic Similaritycited by 38
  32. 2020Is Supervised Syntactic Parsing Beneficial for Language Understanding? An Empirical Investigationcited by 34
  33. 2020Scheduled DropHead: A Regularization Method for Transformer Modelscited by 28
  34. 2015Dropout as data augmentationcited by 27
  35. 2021Evaluating Multilingual Text Encoders for Unsupervised Cross-Lingual Retrievalcited by 16
  36. 2018Card-660: Cambridge Rare Word Dataset - a Reliable Benchmark for Infrequent Word Representation Modelscited by 11

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 15; 2022: 26; 2023: 21; 2024: 14; 2025: 8; 2026: 4.

88 papers.

Sort:

By area:

  1. 2022A Contrastive Framework for Neural Text Generationcited by 224
  2. 2021AMMUS : A Survey of Transformer-based Pretrained Models in Natural Language Processingcited by 131
  3. 2021GPL: Generative Pseudo Labeling for Unsupervised Domain Adaptation of Dense Retrievalcited by 119
  4. 2022Language Models Can See: Plugging Visual Controls in Text Generationcited by 89
  5. 2021ESimCSE: Enhanced Sample Building Method for Contrastive Learning of Unsupervised Sentence Embeddingcited by 73
  6. 2022TweetNLP: Cutting-Edge Natural Language Processing for Social Mediacited by 71
  7. 2023When Brain-inspired AI Meets AGIcited by 54
  8. 2021Few-Shot Intent Detection via Contrastive Pre-Training and Fine-Tuningcited by 46
  9. 2024Segment Any Text: A Universal Approach for Robust, Efficient and Adaptable Sentence Segmentationcited by 41
  10. 2021TaCL: Improving BERT Pre-training with Token-aware Contrastive Learningcited by 32
  11. 2022Improved Universal Sentence Embeddings with Prompt-based Contrastive Learning and Energy-based Learningcited by 30
  12. 2022PCL: Peer-Contrastive Learning with Diverse Augmentations for Unsupervised Sentence Embeddingscited by 29
38 more
  1. 2021ConvFiT: Conversational Fine-Tuning of Pretrained Language Modelscited by 25
  2. 2022InfoCSE: Information-aggregated Contrastive Learning of Sentence Embeddingscited by 25
  3. 2022LaPraDoR: Unsupervised Pretrained Dense Retriever for Zero-Shot Text Retrievalcited by 24
  4. 2021Are Pretrained Transformers Robust in Intent Classification? A Missing Ingredient in Evaluation of Out-of-Scope Intent Detectioncited by 22
  5. 2021On Cross-Lingual Retrieval with Multilingual Text Encoderscited by 22
  6. 2022MCSE: Multimodal Contrastive Learning of Sentence Embeddingscited by 22
  7. 2021Rewire-then-Probe: A Contrastive Recipe for Probing Biomedical Knowledge of Pre-trained Language Modelscited by 21
  8. 2022EASE: Entity-Aware Contrastive Learning of Sentence Embeddingcited by 21
  9. 2021Trans-Encoder: Unsupervised sentence-pair modelling through self- and mutual-distillationscited by 20
  10. 2021MirrorWiC: On Eliciting Word-in-Context Representations from Pretrained Language Modelscited by 18
  11. 2022Improving Word Translation via Two-Stage Contrastive Learningcited by 18
  12. 2023Where's the Point? Self-Supervised Multilingual Punctuation-Agnostic Sentence Segmentationcited by 17
  13. 2022Ranking-Enhanced Unsupervised Sentence Representation Learningcited by 15
  14. 2021Prix-LM: Pretraining for Multilingual Knowledge Base Constructioncited by 12
  15. 2022Continual Learning by Modeling Intra-Class Variationcited by 12
  16. 2022Detection, Disambiguation, Re-ranking: Autoregressive Entity Linking as a Multi-Task Problemcited by 11
  17. 2023A Comprehensive Survey of Sentence Representations: From the BERT Epoch to the ChatGPT Era and Beyondcited by 11
  18. 2023Investigating Pre-trained Audio Encoders in the Low-Resource Conditioncited by 11
  19. 2023Language Models are Universal Embedderscited by 11
  20. 2022Enhancing Out-of-Distribution Detection in Natural Language Understanding via Implicit Layer Ensemblecited by 9
  21. 2023Distilling Semantic Concept Embeddings from Contrastively Fine-Tuned Language Modelscited by 8
  22. 2023Ultra-Fine Entity Typing with Prior Knowledge about Labels: A Simple Clustering Based Strategycited by 8
  23. 2022Probing Cross-Lingual Lexical Knowledge from Multilingual Sentence Encoderscited by 7
  24. 2022miCSE: Mutual Information Contrastive Learning for Low-shot Sentence Embeddingscited by 7
  25. 2022Global and Local Hierarchy-aware Contrastive Framework for Implicit Discourse Relation Recognitioncited by 7
  26. 2024Extracting Sentence Embeddings from Pretrained Transformer Modelscited by 7
  27. 2021Sharpness-Aware Minimization with Dynamic Reweightingcited by 6
  28. 2021Improving Social Meaning Detection with Pragmatic Masking and Surrogate Fine-Tuningcited by 5
  29. 2023QAID: Question Answering Inspired Few-shot Intent Detectioncited by 5
  30. 2023On the Dimensionality of Sentence Embeddingscited by 5
  31. 2023Transfer-Free Data-Efficient Multilingual Slot Labelingcited by 4
  32. 2024Ontology Completion with Natural Language Inference and Concept Embeddings: An Analysiscited by 4
  33. 2024News Without Borders: Domain Adaptation of Multilingual Sentence Embeddings for Cross-lingual News Recommendationcited by 4
  34. 2021SimCLAD: A Simple Framework for Contrastive Learning of Acronym Disambiguationcited by 3
  35. 2022UniASM: Binary Code Similarity Detection without Fine-tuningcited by 3
  36. 2023Efficient Document Embeddings via Self-Contrastive Bregman Divergence Learningcited by 3
  37. 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Surveycited by 3
  38. 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)