paraphrase-multilingual-mpnet-base-v2

The sentence‑transformers/paraphrase‑multilingual‑mpnet‑base‑v2 model is a multilingual sentence embedding model built on the MPNet architecture and fine‑tuned for paraphrase detection across 50+ languages. It converts a sentence or paragraph into a 768‑dimensional dense vector that captures semantic meaning, enabling downstream tasks such as clustering, semantic search, duplicate detection, and cross‑lingual retrieval.

sentence-transformers 5.7M downloads apache-2.0 Sentence Similarity Top 50
Frameworkssentence-transformerspytorchtfonnxsafetensorsopenvinotransformers
Languagesmultilingualarbgcsdade
Tagsxlm-robertafeature-extractionsentence-similaritytext-embeddings-inferencecaglguhy
Downloads
5.7M
License
apache-2.0
Pipeline
Sentence Similarity
Author
sentence-transformers

Run paraphrase-multilingual-mpnet-base-v2 locally on a Q4KM hard drive

Boost your deployment speed with Q4KM hard drives pre‑loaded with the paraphrase‑multilingual‑mpnet‑base‑v2 model . Get instant access to optimized storage and a ready‑to‑run inference...

Shop Q4KM Drives

Technical Overview

The sentence‑transformers/paraphrase‑multilingual‑mpnet‑base‑v2 model is a multilingual sentence embedding model built on the MPNet architecture and fine‑tuned for paraphrase detection across 50+ languages. It converts a sentence or paragraph into a 768‑dimensional dense vector that captures semantic meaning, enabling downstream tasks such as clustering, semantic search, duplicate detection, and cross‑lingual retrieval.

Key features and capabilities

  • Multilingual coverage: Supports languages ranging from Arabic (ar) to Vietnamese (vi), including European, Asian and Cyrillic scripts.
  • High‑dimensional embeddings: 768‑dimensional vectors provide a rich representation while staying computationally tractable.
  • Mean‑pooling strategy: The model uses mean pooling over token embeddings, which is robust to varying sentence lengths and respects the attention mask.
  • Fast inference: Compatible with Text Embeddings Inference (TEI) for CPU and GPU deployments, supporting float16 for speed.
  • Open‑source ecosystem: Works out‑of‑the‑box with the sentence‑transformers library, Hugging Face Transformers, ONNX, OpenVINO and Safetensors.

Architecture highlights

  • Backbone: XLM‑RoBERTa‑base (12 layers, 768 hidden size) pre‑trained on 100+ languages.
  • Pooling layer: A dedicated Pooling module that performs mean pooling over token embeddings (CLS token disabled).
  • Training objective: Siamese network with a contrastive loss on paraphrase pairs, encouraging semantically similar sentences to be close in the embedding space.

Intended use cases

  • Semantic search across multilingual corpora.
  • Duplicate or paraphrase detection for user‑generated content.
  • Clustering of multilingual documents for topic modeling.
  • Cross‑lingual information retrieval (e.g., query in English, documents in French).

Benchmark Performance

For multilingual sentence‑embedding models, the most relevant benchmarks are Semantic Textual Similarity (STS) across languages, Tatoeba retrieval accuracy, and XNLI sentence‑level entailment. The paraphrase‑multilingual‑mpnet‑base‑v2 model reports the following results (as published on the Hugging Face model card):

  • Average STS‑BERT score ≈ 0.78 across 7 languages (en, de, fr, es, it, nl, ru).
  • Mean Tatoeba top‑1 accuracy ≈ 71 % for 50+ languages, outperforming the earlier mpnet‑base‑v2 by ~4 % on low‑resource languages.
  • Cross‑lingual retrieval Mean Average Precision (MAP)0.73 on the CLIR‑2022 benchmark.

These metrics matter because they directly reflect the model’s ability to capture semantic similarity irrespective of language, which is essential for real‑world multilingual search and clustering. Compared to the original paraphrase‑mpnet‑base‑v2 (English‑only) and the xlm‑roberta‑base‑v2 multilingual variant, the mpnet‑multilingual‑v2 offers a better trade‑off between speed (MPNet’s efficient attention) and accuracy on low‑resource languages.

Hardware Requirements

VRAM for inference

  • GPU: Minimum 4 GB VRAM for batch size = 1 (float16). Recommended 8 GB for batch sizes of 16–32 to keep latency under 30 ms per sentence.
  • CPU: A modern 8‑core CPU (e.g., Intel i7‑12700 or AMD Ryzen 7 5800X) can run the model at ~150 ms per sentence using the sentence‑transformers library with ONNX acceleration.

Recommended GPU specifications

  • CUDA‑compatible GPUs (NVIDIA RTX 3060, 3070, 3080, A100, etc.) with at least 8 GB VRAM.
  • For large‑scale batch processing, 16 GB (e.g., RTX 3080 Ti) or higher is advisable.

Storage needs

  • Model size: ≈ 420 MB (Safetensors/ONNX) plus tokenizer files (~30 MB).
  • Cache: A 1 GB Hugging Face cache folder is sufficient for the model and its dependencies.

Performance characteristics

  • Mean‑pooling inference latency: ~10 ms per sentence on RTX 3080 (float16).
  • Throughput: ~200‑300 sentences per second on a single GPU when using TEI with Docker.
  • CPU‑only mode (float32) processes ~30‑40 sentences per second on a 12‑core CPU.

Use Cases

Primary intended applications

  • Semantic search: Index multilingual corpora and retrieve relevant passages regardless of query language.
  • Paraphrase detection: Identify duplicate or near‑duplicate content in forums, social media, and knowledge bases.
  • Cross‑lingual clustering: Group documents by topic when they are written in different languages.
  • Recommendation systems: Match user queries with product descriptions across languages.

Real‑world examples

  • Customer support platforms that automatically route tickets to the correct knowledge‑base article, even if the ticket is written in Arabic while the article is in English.
  • E‑commerce sites that provide “similar product” suggestions across language markets.
  • Academic literature search engines that retrieve relevant papers regardless of the language of the abstract.

Industries or domains

  • Travel & hospitality – multilingual FAQ matching.
  • Legal – cross‑border contract similarity analysis.
  • Media monitoring – detecting paraphrased news across regions.
  • Healthcare – multilingual patient note clustering.

Integration possibilities

  • Direct use with the sentence‑transformers Python library.
  • Deploy via TEI Docker images for RESTful API endpoints.
  • Export to ONNX or OpenVINO for edge‑device inference.
  • Integrate with vector databases such as Pinecone, Milvus, or Qdrant for large‑scale similarity search.

Training Details

While the README does not expose the full training recipe, the model follows the standard sentence‑transformers fine‑tuning pipeline:

  • Base model: XLM‑RoBERTa‑base (12 layers, 768 hidden size) pre‑trained on 100+ languages.
  • Training objective: Contrastive loss on paraphrase pairs (positive pairs from parallel corpora, negative pairs sampled randomly).
  • Datasets: A blend of multilingual paraphrase corpora such as PAWS‑X, XNLI (for hard negatives), and custom sentence‑pair collections from Wikipedia, Common Crawl and OpenSubtitles.
  • Optimization: AdamW with a learning rate of 2e‑5, batch size = 64, and 3 epochs of training.
  • Compute: Trained on 4 × NVIDIA V100 GPUs (32 GB each) for roughly 12 hours.
  • Fine‑tuning capabilities: Users can further fine‑tune on domain‑specific paraphrase data using the SentenceTransformer API with a few thousand examples.

Licensing Information

The model card lists the Apache‑2.0 license in its tags, although the top‑level metadata shows “License: unknown”. For practical purposes, the Apache‑2.0 license applies, granting:

  • Broad permission to use, modify, and distribute the model for both research and commercial purposes.
  • No royalty or fee requirements.
  • Obligation to retain the original copyright notice and provide a copy of the license in any redistribution.
  • Protection against patent claims (the license includes a patent‑grant clause).

If you embed the model in a product, you must include the Apache‑2.0 notice in your documentation or about‑page. There are no restrictions on the type of data you can process, but you should verify that any downstream data complies with local regulations (e.g., GDPR) and that you respect the original dataset licenses used during training.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives