mlsanityData to 14 Oct 2026

Weighted Sampling for Masked Language Modeling

arXiv 2302.14225 ↗First posted 28 Feb 2023cs.CL cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

Masked Language Modeling (MLM) is widely used to pretrain language models. The standard random masking strategy in MLM causes the pre-trained language models (PLMs) to be biased toward high-frequency tokens. Representation learning of rare tokens is poor and PLMs have limited performance on downstream tasks. To alleviate this frequency bias issue, we propose two simple and effective Weighted Sampling strategies for masking tokens based on the token frequency and training loss. We apply these two strategies to BERT and obtain Weighted-Sampled BERT (WSBERT). Experiments on the Semantic Textual Similarity benchmark (STS) show that WSBERT significantly improves sentence embeddings over BERT. Combining WSBERT with calibration methods and prompt learning further improves sentence embeddings. We also investigate fine-tuning WSBERT on the GLUE benchmark and show that Weighted Sampling also improves the transfer learning capability of the backbone PLM. We further analyze and provide insights into how WSBERT improves token embeddings.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 21 of its 33 references that are in the map. First posted on arXiv 28 Feb 2023.

Builds on

21 of 33 references.

References · 21

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  5. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
  6. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,173
  7. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
  8. 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,256
  9. 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 1,001
  10. 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 938
  11. 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 784
  12. 2019Representation Degeneration Problem in Training Natural Language Generation Modelscited by 255
9 more
  1. 2021ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation Transfercited by 231
  2. 2021Whitening Sentence Representations for Better Semantics and Faster Retrievalcited by 202
  3. 2021COCO-LM: Correcting and Contrasting Text Sequences for Language Model Pretrainingcited by 126
  4. 2020On the Sentence Embeddings from Pre-trained Language Modelscited by 83
  5. 2022PromptBERT: Improving BERT Sentence Embeddings with Promptscited by 75
  6. 2022Token Dropping for Efficient BERT Pretrainingcited by 42
  7. 2021TaCL: Improving BERT Pre-training with Token-aware Contrastive Learningcited by 32
  8. 2022Improved Universal Sentence Embeddings with Prompt-based Contrastive Learning and Energy-based Learningcited by 30
  9. 2022InfoCSE: Information-aggregated Contrastive Learning of Sentence Embeddingscited by 26

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.