LaBSE (Language-Agnostic BERT Sentence Embedding) is a multilingual sentence encoder that maps text from 109 languages into a shared vector space where semantically equivalent sentences occupy identical regions, regardless of their source language. It combines a BERT-based Transformer encoder with a dual-encoder architecture, trained on a combination of masked language modeling (MLM) and translation ranking objectives using parallel corpora to produce truly language-agnostic representations.
Glossary
LaBSE (Language-Agnostic BERT Sentence Embedding)

What is LaBSE (Language-Agnostic BERT Sentence Embedding)?
A multilingual sentence embedding model supporting 109 languages, trained on translation ranking and masked language modeling to produce language-agnostic representations.
The model's training leverages a novel additive margin softmax loss on translation pairs, forcing the cosine similarity of aligned sentences to exceed that of non-aligned pairs by a configurable margin. This contrastive learning approach, combined with MLM pre-training on monolingual data from 109 languages, enables LaBSE to achieve state-of-the-art performance on cross-lingual sentence retrieval benchmarks like Tatoeba and BUCC, significantly outperforming earlier models like LASER and mBERT for bitext mining and multilingual semantic search tasks.
Key Features of LaBSE
LaBSE combines a dual-encoder architecture with translation ranking and masked language modeling objectives to produce language-agnostic sentence embeddings for 109 languages.
Dual-Encoder Architecture
LaBSE uses a Bi-Encoder structure with a shared BERT-based transformer. The source and target sentences are encoded independently, producing fixed-size vectors that can be compared using cosine similarity. This design enables efficient maximum inner product search (MIPS) for retrieval tasks, as embeddings can be pre-computed and indexed without requiring cross-attention between query and document at inference time.
Translation Ranking Objective
The primary training signal comes from a translation ranking task using parallel corpora. Given a source sentence, the model must identify the correct translation from a batch of candidates. This objective explicitly enforces that semantically equivalent sentences in different languages map to the same region of the embedding space, creating truly language-agnostic representations. The model was trained on 6 billion translation pairs across 109 languages.
Additive Margin Softmax Loss
LaBSE employs Additive Margin Softmax (AM-Softmax) during training to increase inter-class separability. By introducing an angular margin between classes, the loss function forces embeddings of the same sentence pair to be closer together while pushing dissimilar pairs further apart. This results in a more discriminative embedding space with tighter clusters for semantically equivalent sentences across languages.
Multilingual Masked Language Modeling
As a secondary pre-training objective, LaBSE uses Masked Language Modeling (MLM) on monolingual data from all 109 languages. This ensures the encoder develops robust lexical and syntactic understanding of each individual language, not just translation equivalence. The MLM objective prevents the model from collapsing into a representation that only captures coarse semantic similarity while ignoring finer linguistic structure.
Zero-Shot Cross-Lingual Transfer
Because LaBSE maps all languages into a single shared embedding space, it enables zero-shot transfer to languages never seen during task-specific fine-tuning. A classifier trained on English sentence embeddings can immediately operate on embeddings from any of the 109 supported languages without modification. This makes LaBSE particularly valuable for low-resource language applications where labeled data is scarce.
Bitext Mining and Parallel Corpus Construction
LaBSE is widely used for bitext mining—the automated discovery of parallel sentence pairs from large, noisy web corpora. By encoding sentences from two monolingual corpora and computing cosine similarity, LaBSE can identify translation pairs with high precision. This capability was used to create the CCMatrix corpus, which contains billions of mined parallel sentences used to train subsequent multilingual models.
LaBSE vs. Other Multilingual Embedding Models
A feature-level comparison of LaBSE against other widely used multilingual sentence embedding models for cross-lingual retrieval and semantic similarity tasks.
| Feature | LaBSE | XLM-RoBERTa | LASER | mBERT |
|---|---|---|---|---|
Primary Architecture | Dual-Encoder BERT | Cross-lingual Transformer | BiLSTM Encoder | Single-Encoder BERT |
Languages Supported | 109 | 100 | 100+ | 104 |
Training Objective | Translation Ranking + MLM | Masked Language Modeling | Neural Machine Translation | Masked Language Modeling |
Language-Agnostic Sentence Embeddings | ||||
Zero-Shot Cross-Lingual Retrieval | ||||
Dual-Encoder Architecture | ||||
Trained on Parallel Corpora | ||||
Subword Tokenization | SentencePiece (BPE) | SentencePiece (BPE) | Joint BPE | WordPiece |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Frequently Asked Questions
Explore the architecture, training, and deployment of the Language-Agnostic BERT Sentence Embedding model, a foundational tool for cross-lingual semantic search.
LaBSE (Language-Agnostic BERT Sentence Embedding) is a multilingual sentence embedding model that maps text from 109 languages into a single, shared vector space. It works by combining a BERT-based encoder architecture with a dual training objective: Masked Language Modeling (MLM) on monolingual data and Translation Ranking (TR) on parallel bilingual corpora. The MLM objective forces the model to learn the syntax and semantics of individual languages, while the TR objective uses a bi-encoder framework to maximize the cosine similarity between translation pairs and minimize it for non-translations. This additive joint training produces language-agnostic sentence representations where semantically equivalent sentences in different languages, such as English 'Hello' and Spanish 'Hola,' are mapped to nearly identical vector regions, enabling direct cross-lingual semantic comparison without a pivot language.
Related Terms
Key concepts and models that form the foundation of language-agnostic sentence embeddings and cross-lingual transfer.
Cross-Lingual Embeddings
Vector representations that map words or sentences from multiple languages into a shared semantic space. This allows direct comparison of meaning across language boundaries without explicit translation. LaBSE is a prime example, producing embeddings where the English sentence 'Hello world' and its French equivalent 'Bonjour le monde' occupy nearly identical vector positions.
LASER (Language-Agnostic SEntence Representations)
A toolkit by Meta that provides a BiLSTM encoder and a single shared sentence representation space for over 100 languages. Unlike LaBSE's Transformer-based architecture, LASER uses a BiLSTM max-pooling approach. Both models enable zero-shot cross-lingual transfer, but LaBSE typically outperforms LASER on bitext mining tasks due to its translation ranking training objective.
Bitext Mining
The automated process of identifying and extracting parallel sentence pairs from large, noisy web-crawled datasets. LaBSE was specifically designed for this task. The process works by:
- Encoding all sentences from two monolingual corpora into the shared embedding space
- Using margin-based scoring to identify candidate translation pairs
- Applying a threshold to filter high-confidence parallel sentences This technique is essential for building training data for machine translation systems.
Multilingual Masked Language Modeling
A pre-training objective where a model learns to predict randomly masked tokens in a concatenated stream of text from multiple languages. This builds a shared multilingual representation without requiring parallel data. LaBSE combines this with translation ranking (a contrastive objective using parallel corpora) to achieve its language-agnostic property. The dual-objective training is what distinguishes LaBSE from models like mBERT or XLM-RoBERTa.
Cross-Lingual Transfer
The technique of applying a model trained on a high-resource source language (e.g., English) to perform tasks in a low-resource target language (e.g., Swahili) without target-language fine-tuning data. LaBSE enables this by producing language-agnostic representations. A classifier trained on English sentiment embeddings can directly classify French sentences because both map to the same semantic region.
Multilingual Dense Passage Retrieval (mDPR)
A retrieval architecture that encodes queries and documents from multiple languages into a shared dense vector space. LaBSE serves as an ideal encoder backbone for mDPR systems. The architecture enables:
- A user to query in German and retrieve relevant documents in Japanese
- Efficient approximate nearest neighbor (ANN) search across language boundaries
- Scalable cross-lingual search without maintaining separate indices per language

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us