[Paper Review] Universal Sentence Representation Learning with Conditional Masked Language Model
This paper proposes Conditional Masked Language Modeling (CMLM), a fully unsupervised method that integrates sentence representation learning into masked language modeling by conditioning on encoded representations of adjacent sentences. CMLM achieves state-of-the-art performance on SentEval for English and improves multilingual sentence embeddings by 10% on cross-lingual semantic search, with principal component removal effectively eliminating language bias while preserving semantic similarity.
This paper presents a novel training method, Conditional Masked Language Modeling (CMLM), to effectively learn sentence representations on large scale unlabeled corpora. CMLM integrates sentence representation learning into MLM training by conditioning on the encoded vectors of adjacent sentences. Our English CMLM model achieves state-of-the-art performance on SentEval, even outperforming models learned using supervised signals. As a fully unsupervised learning method, CMLM can be conveniently extended to a broad range of languages and domains. We find that a multilingual CMLM model co-trained with bitext retrieval (BR) and natural language inference (NLI) tasks outperforms the previous state-of-the-art multilingual models by a large margin, e.g. 10% improvement upon baseline models on cross-lingual semantic search. We explore the same language bias of the learned representations, and propose a simple, post-training and model agnostic approach to remove the language identifying information from the representation while still retaining sentence semantics.
Motivation & Objective
- To develop a fully unsupervised method for learning high-quality sentence representations without relying on labeled or semi-structured data.
- To improve multilingual sentence embeddings by co-training with bitext retrieval and cross-lingual natural language inference.
- To address the self-language bias in multilingual representations, where semantically similar sentences in the same language are overly favored in embedding space.
- To propose a post-training, model-agnostic method to disentangle language identity from semantic content in sentence embeddings.
Proposed method
- CMLM conditions masked language modeling on the encoded representation of the preceding sentence, creating a strong inductive bias for learning sentence-level representations.
- The model uses a dual-encoder architecture where the first sentence is encoded into a sentence embedding that conditions the MLM objective on the second sentence.
- For multilingual learning, CMLM is co-trained with bitext retrieval and fine-tuned with cross-lingual NLI data to improve cross-lingual transfer.
- A principal component removal (PCR) technique is applied to remove the first principal component of each monolingual embedding space, which is shown to encode language identity.
- The method is trained end-to-end on large-scale unlabeled corpora, enabling zero-shot transfer to new languages and domains.
- The final sentence representations are obtained by averaging the [CLS] token and pooled output of the transformer encoder.
Experimental results
Research questions
- RQ1Can a fully unsupervised method like CMLM outperform supervised or semi-supervised sentence representation models on standard benchmarks?
- RQ2How effective is co-training CMLM with bitext retrieval and cross-lingual NLI for improving multilingual sentence embeddings?
- RQ3To what extent do multilingual sentence representations exhibit self-language bias, and can it be mitigated without retraining?
- RQ4Does removing the first principal component of monolingual embedding spaces effectively eliminate language identity information while preserving semantic similarity?
Key findings
- The English CMLM model achieves state-of-the-art performance on SentEval, outperforming models trained with (semi-)supervised signals.
- The multilingual CMLM model improves cross-lingual semantic search performance by 10% on average across 36 languages compared to baseline models.
- Co-training with bitext retrieval and cross-lingual NLI improves multilingual performance by 3.6% over the previous SOTA model.
- Principal component removal (PCR) effectively eliminates self-language bias, resulting in more uniform language distribution in retrieval results and stronger cross-lingual alignment in visualization.
- On the Tatoeba dataset, PCR increases retrieval accuracy for both CMLM and mBERT, confirming that the first principal component encodes language identity.
- Visualizations show that CMLM representations exhibit strong semantic alignment across languages, with distinct clusters for semantically similar sentences regardless of language.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.