Conditional Masked Language Modeling for Unsupervised Sentence Embeddings

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

State-of-the-art language models struggle to produce effective language segment embeddings without supervised or semi-structured data, making it difficult to cover diverse domains and languages, and internal masked language model representations are not directly suitable for generating good language segment embeddings.

Innovation Solution

The proposed method, Conditional Masked Language Modeling (CMLM), trains machine learning models to generate contextual language embeddings by processing language segments with a first encoding model, generating masked versions, and modifying parameters based on predictions compared to masked tokens, allowing for unsupervised learning of language segment representations on large-scale unlabeled corpora.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If supervised tasks or semi-structured data are used for training language models, then language segment embedding performance is improved, but data acquisition cost and complexity increase

Engineering Contradiction:
Improvelanguage segment embedding performanceVSAvoiddata acquisition cost
Core Design Contradiction:
Measurement precisionVSEase of manufacture

Solution Approach 1:

The model performs masked language modeling where it predicts masked tokens using contextual information from the same sentence, making the model self-sufficient and eliminating the need for external labeled data or complex semi-structured annotations

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The contextual language embedding serves as an intermediary representation that bridges the input sentence and the masked token prediction task, enabling the model to learn effective embeddings through an unsupervised preprocessing step

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If masked language model pre-training is performed on large scale unlabeled corpora, then data coverage and efficiency are improved, but direct language segment embedding quality deteriorates

Engineering Contradiction:
Improvetraining efficiencyVSAvoidlanguage segment embedding quality
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The training process is segmented into two distinct stages: first generating contextual language embeddings through forward propagation, then using these embeddings to condition masked token predictions, allowing each stage to optimize for its specific goal

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The approach adds a new dimension to the training process by conditioning the masked language model on external contextual embeddings, transforming the standard MLM objective into a conditional task that produces better sentence representations

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

Data Source

PatentUS11769011B2Universal language segment representations learning with conditional masked language model
Publication Date: 2023.09.26 GOOGLE LLC
  • US11769011B2 patent drawing
  • US11769011B2 patent drawing
  • US11769011B2 patent drawing

AI summary

The present disclosure provides a novel sentence-level representation learning method Conditional Masked Language Modeling (CMLM) for training on large scale unlabeled corpora. CMLM outperforms the previous state-of-the-art English sentence embedding models, including those trained with (semi-)supervised signals. For multilingual representations learning, it is shown that co-training CMLM with bitext retrieval and cross-lingual natural language inference (NL) fine-tuning achieves state-of-the-art performance. It is also shown that multilingual representations have the same language bias and principal component removal (PCR) can eliminate the bias by separating language identity information from semantics.