Overview

MenteE AI · Technical Report

mentee-embed research

Trilingual embedding models (Arabic, English, Urdu) trained entirely from scratch. Three versions: v1 (baseline, ~810K triplets), v3 (2.1M triplets, MS-MARCO, hard negatives), and v4 (2.6M triplets, mMARCO Arabic, 3-round distillation). Full benchmarks, training details, and honest evaluations below.

Preprint · v4Zenodo · 28 Aug 2026 · DOI · CC BY 4.0

How Far Can Multilingual Text Embeddings Be Trained From Scratch? A Compute-Efficient Study of Arabic, English, and Urdu

Shah, Syed Syab Ahmad · Team MenteE AI — MenteE AI

41M-parameter trilingual embedding model trained from scratch with ~2.6M triplets, 50K MLM steps, and 3-round distillation. Bench MRR@10 0.252 (+146% vs v3), MIRACL AR 0.874 (+96%), 18,115 sents/sec on RTX 5090 — the fastest model tested.

Show BibTeX
@misc{mentee-embed-v4-2026,
  title   = {How Far Can Multilingual Text Embeddings Be Trained From Scratch?
             A Compute-Efficient Study of Arabic, English, and Urdu},
  author  = {Shah, Syed Syab Ahmad and Team MenteE AI},
  year    = {2026},
  url     = {https://huggingface.co/MenteEAI/mentee-embed-v4},
  note    = {Apache-2.0 License}
}
v4

mentee-embed-v4

The Approach

v4 retains the same 41M architecture and 384-dim output from v3 but expands the training data to 2.6M triplets with mMARCO Arabic retrieval data (500K) and adds a third distillation round with re-mined hard negatives, using multilingual-e5-base as teacher.

Preprint · v4Zenodo · 28 Aug 2026 · DOI · CC BY 4.0

How Far Can Multilingual Text Embeddings Be Trained From Scratch? A Compute-Efficient Study of Arabic, English, and Urdu

Shah, Syed Syab Ahmad · Team MenteE AI — MenteE AI

41M-parameter trilingual embedding model trained from scratch with ~2.6M triplets, 50K MLM steps, and 3-round distillation. Bench MRR@10 0.252 (+146% vs v3), MIRACL AR 0.874 (+96%), 18,115 sents/sec on RTX 5090 — the fastest model tested.

Show BibTeX
@misc{mentee-embed-v4-2026,
  title   = {How Far Can Multilingual Text Embeddings Be Trained From Scratch?
             A Compute-Efficient Study of Arabic, English, and Urdu},
  author  = {Shah, Syed Syab Ahmad and Team MenteE AI},
  year    = {2026},
  url     = {https://huggingface.co/MenteEAI/mentee-embed-v4},
  note    = {Apache-2.0 License}
}
41M
Parameters
384
Embedding dim
2.6M
Training triplets
0.252
Bench MRR@10

Training pipeline

  1. 1

    MLM pretraining — 50K steps

    Random init → masked language modeling on trilingual corpus, batch 64, vocab 50K BPE. 6× more pretraining than v3.

  2. 2

    Teacher encoding

    multilingual-e5-base (768-dim) encodes all 2.6M triplets to soft labels.

  3. 3

    Distillation round 1

    InfoNCE + relational distillation, 4,000 steps, batch 512, temp 0.05.

  4. 4

    Hard negative mining round 1

    GPU-accelerated top-5 mining across the full 2.6M corpus.

  5. 5

    Distillation round 2

    Same objective + mined hard negatives, 10,000 steps.

  6. 6

    Hard negative mining round 2

    Re-mine with the improved round-2 model.

  7. 7

    Distillation round 3 — final polish

    Train on round-2 mined negatives, 15,000 cumulative steps.

mentee-embed-v4 vs mpnet-base normalized radar comparison

Training data — ~2.6M triplets

v3 used 2.1M · v4 adds mMARCO Arabic (500K)

SourceLangTypeTriplets
all-NLI (sentence-transformers)ENNLI triplets558K
XNLIARNLI triplets128K
XNLIURNLI triplets125K
OPUS-100 EN-UREN/URParallel translation300K
OPUS-100 AR-ENAR/ENParallel translation300K
MS-MARCO BM25 tripletsENPassage retrieval500K
MS-MARCO hard negativesENHard retrieval200K
mMARCO ArabicARPassage retrieval500K
MIRACLEN/AR/URWikipedia retrieval~9K
Total~2.6M

Training Data Composition — v3 vs v4

v3 (2.1M)811K600K700K2.1Mv4 (2.6M)811K600K700K500K2.6M+500K ARNLIParallelMS-MARCO ENmMARCO ARMIRACL

Benchmarks

All results on a single NVIDIA RTX 5090. Baselines use pretrained encoders — none trained from scratch.

MenteE Embed Bench — Custom EN/AR/UR

121 queries · 18 domains · dialect Arabic · Roman Urdu · hard negatives · MRR@10

ModelInitParamsENARURDialect ARRoman URAllNDCG@10
mpnet-base-v2Pre278M0.7640.6020.6110.4450.6610.6610.714
MiniLM-L12-v2Pre118M0.6820.5680.5190.3850.4800.5920.634
e5-basePre278M0.6670.3520.4130.3100.4300.4810.470
MiniLM-L6-v2Pre23M0.8730.0870.2890.0840.4860.4250.299
mentee-v4 ★Rand41M0.3690.1200.2610.0950.3990.2520.238
mentee-v3Rand41M0.2250.0210.0550.0000.0790.1030.147

Key: mentee-v4 (0.252 All) closes the gap vs v3 (0.103) by +146%. MiniLM-L6-v2 (0.425) scores high on EN (0.873) but collapses on dialect Arabic (0.084).

Custom Bench — MRR@10 by Language (121 queries, 18 domains)

1.000.750.500.250.00mpnet-baseMiniLM-L12e5-baseMiniLM-L6mentee-v4 ★mentee-v3ENARURDialect ARRoman UR
Custom bench per-language MRR@10 comparison

Protocol A — In-batch Retrieval (MIRACL)

acc@1 / MRR@10 per language

ModelInitMIRACL-ENMIRACL-ARMIRACL-UR
e5-basePre0.980 / 0.9900.940 / 0.9580.960 / 0.970
MiniLM-L6-v2Pre0.980 / 0.9900.005 / 0.0270.015 / 0.031
mpnet-base-v2Pre0.965 / 0.9820.860 / 0.8980.755 / 0.824
MiniLM-L12-v2Pre0.965 / 0.9790.815 / 0.8680.720 / 0.785
mentee-v4 ★Rand0.870 / 0.9160.825 / 0.8740.475 / 0.572

AR is strong. mentee-v4 scores 0.825/0.874 on AR — close to pretrained mpnet-base (0.860/0.898) at 6.8× fewer parameters.

MIRACL Protocol A MRR@10 per language

Protocol C — MS-MARCO Corpus Retrieval

10K passages · MRR@10 · R@5 · R@100

ModelMRRR@5R@100
MiniLM-L6-v20.8770.9920.992
e5-base0.8560.9920.996
mpnet-base-v20.8030.9640.988
mentee-v4 ★0.7060.9130.980

0.706 MRR@10 — up from v3's 0.592-era result, +19%.

MS-MARCO Protocol C corpus retrieval comparison

STS-B — Semantic Similarity

Spearman ρ · zero-shot

ModelInitρ
mpnet-base-v2Pre0.868
bge-small-v1.5Pre0.859
MiniLM-L12-v2Pre0.844
e5-basePre0.842
mentee-v4 ★Rand0.725

0.725 ρ — improved over v3 (0.683) with retrieval-focused training.

Speed & Efficiency

Throughput and cost on RTX 5090 at batch size 128.

Throughput & Cost

sents/sec · latency (ms) · VRAM (MB) · cost per 1B sentences

ModelParamssents/seclat (ms)VRAMCost
mentee-v4 ★41M18,1155.15175$7.15
MiniLM-L6-v223M12,4454.71103$10.40
e5-small118M9,7497.88482$13.28
MiniLM-L12-v2118M9,4568.17573$13.69
e5-base278M5,3798.071126$24.07
mpnet-base-v2278M5,1588.041126$25.10

Fastest and cheapest. mentee-v4 at 18,115 sents/sec — 3.5× faster than mpnet-base (5,158) and $7.15 per 1B sentences.

Throughput — sents/sec (RTX 5090, batch 128)

0k5k10k15k20kmentee-v4 ★18,115MiniLM-L612,445e5-small9,749MiniLM-L129,456e5-base5,379mpnet-base5,158
Speed comparison throughput and latency
Cost to encode 1 billion sentences

Throughput vs Cost — RTX 5090, batch 128

0k6k12k18k$0$5$10$15$20$25mentee-v4MiniLM-L6e5-smallMiniLM-L12e5-basempnet-baseThroughput (sents/sec)Cost per 1B sentences (USD)
Efficiency accuracy and speed per parameter

Efficiency Ratio

Bench MRR@10 per 1M params · sents/sec per 1M params

ModelParamsBench MRR/1MSents/sec/1M
mentee-v4 ★41M0.525441.82
MiniLM-L12-v2118M0.45280.34
mpnet-base-v2278M0.22418.55
e5-base278M0.16619.35

Best efficiency. 0.525 bench MRR per 1M params — highest of any model. 441.82 sents/sec throughput per 1M params.

Strengths

Massive v3 improvement

+146% bench MRR@10 (0.103 → 0.252), +96% MIRACL AR, +62% MIRACL UR — all from the same 41M architecture.

Fastest model tested

18,115 sents/sec at batch 128 — 3.5x faster than mpnet-base, 45% faster than MiniLM-L12.

MIRACL AR/EN competitive

0.874 MIRACL AR MRR@10 — close to pretrained mpnet-base (0.898) at 6.8x fewer parameters.

Lowest cost

$7.15 per 1B sentences — cheapest of all models tested on RTX 5090.

Strong efficiency

0.525 bench MRR per 1M params — highest efficiency ratio of any model in the comparison.

mentee-embed-v4 per-domain MRR@10

Limitations

We document what does not work alongside what does.

Custom bench gap

0.252 vs 0.661 for mpnet-base. The gap reflects 2.6M training pairs vs web-scale data.

English still dominates

EN MRR@10 = 0.369 vs AR 0.120 on custom bench. MIRACL AR is strong (0.874) but the custom bench uses dialect Arabic.

Not on MTEB full suite

Only targeted retrieval + STS-B evaluated. Full MTEB evaluation pending.

Single seed

All results from one training run; variance unquantified.

Roadmap

  1. 1

    v1.5 completion

    Stage-B contrastive run on top of the successful MLM foundation.

  2. 2

    Public leaderboard

    Head-to-head benchmarks on identical Arabic/English/Urdu retrieval sets.

  3. 3

    Open release

    Model weights, custom tokenizer, and full model card under Apache 2.0.

  4. 4

    Standardized evaluation

    MTEB-style benchmarks across multilingual retrieval and bitext-mining tasks.

  5. 5

    Urdu-focused expansion

    Adding parallel-corpus alignment objectives for the scarcest retrieval ground truth.

Reproduction

Everything is open: code on GitHub, models on Hugging Face.

Full benchmark report (v4)

All four v4 tables with every metric, per-domain results, and raw JSON — generated 2026-08-28 on RTX 5090.

Quick start (v4)

from transformers import AutoModel, AutoTokenizer

tok   = AutoTokenizer.from_pretrained("MenteEAI/mentee-embed-v4", trust_remote_code=True)
model = AutoModel.from_pretrained("MenteEAI/mentee-embed-v4",   trust_remote_code=True)

embeddings = model.encode(["Hello world", "مرحبا بالعالم"], tokenizer=tok)
# torch.Size([2, 384])

The full training pipeline reproduces on a single GPU with 24GB+ VRAM. Benchmark scripts are in the repo under benchmarks/.

MenteE AI · Trilingual embeddings trained from scratch · Arabic · English · Urdu · v1: MLM → distillation · v3: + MS-MARCO + hard negatives + batch 512 · v4: + mMARCO Arabic + 3-round distillation.