# Mistral Multimodal Embed 1B vs EmbeddingGemma 2

> Six retrieval benchmarks on M2 16 GB: Mistral is behind and ~3× slower on text, behind on most images, ahead on scanned Chinese PDFs (0.771 vs 0.317)

We benchmarked Mistral Multimodal Embed 1B against EmbeddingGemma 2 across six Chinese and English text, photo, screenshot, and PDF retrieval datasets on an Apple M2 16 GB Mac mini. Mistral trails sharply on text retrieval (~3× slower, ~2 GB heavier) and splits visual tasks—winning only on scanned Chinese PDF pages (0.771 vs 0.317 nDCG@10)—making it unsuitable as either a drop-in replacement or an image-only add-on.

- Published: 2026-12-01
- Author: Luoke Labs
- Web page: https://luoke.ai/blog/mistral-multimodal-embed-1b-vs-embeddinggemma-2
- Source: https://github.com/luokelabs/luoke-research/blob/e15df12a2bfee3da698c8442794065dc3aee470c/articles/2026/12/LN-0003-mistral-multimodal-embed-1b-vs-embeddinggemma-2.en.md

> Luoke is a local Mac app ecosystem from Luoke Labs whose local search places documents, screenshots, photos, and audio recordings into a single vector space. When Mistral released the Apache-2.0 [Mistral Multimodal Embed 1B](https://huggingface.co/mistralai/Mistral-Multimodal-Embed-1B) (1.24B), an immediate question for on-device search was whether it could replace—or complement—[EmbeddingGemma 2](https://huggingface.co/google/embeddinggemma-2). Because Mistral's model card reports only image and video retrieval with no text-to-text benchmarks, we ran both models head-to-head on an Apple M2 16 GB Mac mini across six public Chinese and English retrieval sets.

## Conclusions

- **Cannot replace EmbeddingGemma 2 on text—and costs ~3× speed and ~2 GB more memory**: Across Chinese Wikipedia (`miracl-zh`), Chinese web passages (`t2-zh`), and English Wikipedia (`miracl-en`), Mistral Multimodal Embed 1B scores **0.500 / 0.478 / 0.607** in `nDCG@10` versus **0.854 / 0.766 / 0.832** for EmbeddingGemma 2. It runs roughly **3× slower** on short passages (4.83 vs 16.33 items/s in Chinese) and peaks at **4.04–5.20 GiB** process memory because both towers load together, whereas EmbeddingGemma 2 loads its text tower alone at **2.41–3.81 GiB**.
- **Image and document retrieval splits sharply, with one big reversal on scanned Chinese PDFs**: EmbeddingGemma 2 leads on photos (`xm3600-zh`, 0.897 vs 0.862), Chinese web screenshots (`mvision-zh` PNG subset, 0.754 vs 0.543), and English PDF pages (`vidore-en`, 0.502 vs 0.402). On scanned Chinese PDF pages (`mvision-zh` PDF subset), however, Mistral surges ahead at **0.771** (Top-1 **0.624**) while EmbeddingGemma 2 drops to **0.317** (Top-1 **0.071**). Mistral is also faster on document pages (2.33–2.95 vs 1.39 pages/s) and lighter in peak image memory (3.72–4.20 vs 4.80–6.58 GiB).
- **Engineering call: keep EmbeddingGemma 2 and do not add Mistral as a second image model**: Mistral has no audio modality and cannot unify text, images, and audio in one vector space. Adding it strictly for images would require encoding every query twice, storing a second 1024-d index, keeping 2.3 GB of extra weights resident, and fusing scores across two spaces—just to improve scanned PDFs that local search already covers with OCR. A far cheaper next step is raising EmbeddingGemma 2's visual token budget (currently 280 soft tokens) on scanned PDF pages.

## Data

Complete metrics and per-subset breakdowns are in [benchmarks.csv](https://github.com/luokelabs/luoke-research/blob/e15df12a2bfee3da698c8442794065dc3aee470c/data/LN-0003/benchmarks.csv). Below we compare model architecture specs, retrieval quality across all six sets, and speed/memory trade-offs on M2 16 GB.

### Architecture and Specs

| Dimension | EmbeddingGemma 2 | Mistral Multimodal Embed 1B |
|---|---|---|
| Parameters | 740M (text 270M + vision 170M + audio 300M; text-only load supported) | 1.24B (text 783M + vision 409M + video 50M; full load) |
| Disk size (bf16) | 1.4 GB (~1.5 GB MLX bundle) | 2.3 GB (official bf16 2.48 GB; 8-bit 1.75 GB) |
| Modalities | Text, image, video, audio (mixed-modality inputs supported) | Text, image, video (dual-tower; one modality per call; no audio) |
| Embedding dim | 768 (MRL truncation to 512 / 256 / 128) | 1024 (fixed, no truncation) |
| Input limit | 8,192 shared tokens | Unbounded text (cut to 2,048 here); image long side 448 px default |

The two models are built for different jobs: Mistral Multimodal Embed 1B is a CLIP-style contrastive dual-tower whose text encoder is trained against image and video captions, whereas EmbeddingGemma 2 is a unified multimodal embedder designed to place text retrieval, images, and audio in a single shared space.

### Pure-Vector Retrieval Quality (6 Public Sets, No BM25 / No OCR)

![Pure-vector retrieval nDCG@10 comparison between EmbeddingGemma 2 and Mistral Multimodal Embed 1B](https://luoke.ai/blog/research/LN-0003/fig1-retrieval-ndcg-en.svg)

| Dataset | Corpus / Queries | Model | Top-1 | Top-10 | nDCG@10 | Recall@10 |
|---|---|---|---:|---:|---:|---:|
| `miracl-zh` (Chinese Wiki) | 2,500 passages / 135 q | EmbeddingGemma 2 | 0.778 | 1.000 | 0.854 | 0.976 |
| `miracl-zh` (Chinese Wiki) | 2,500 passages / 135 q | Mistral 1B | 0.400 | 0.815 | 0.500 | 0.634 |
| `t2-zh` (Chinese Web) | 5,000 passages / 270 q | EmbeddingGemma 2 | 0.833 | 0.930 | 0.766 | 0.832 |
| `t2-zh` (Chinese Web) | 5,000 passages / 270 q | Mistral 1B | 0.552 | 0.781 | 0.478 | 0.543 |
| `miracl-en` (English Wiki) | 2,000 passages / 90 q | EmbeddingGemma 2 | 0.711 | 1.000 | 0.832 | 0.966 |
| `miracl-en` (English Wiki) | 2,000 passages / 90 q | Mistral 1B | 0.456 | 0.900 | 0.607 | 0.783 |
| `xm3600-zh` (Photos, ZH query) | 1,500 photos / 270 q | EmbeddingGemma 2 | 0.822 | 0.963 | 0.897 | 0.963 |
| `xm3600-zh` (Photos, ZH query) | 1,500 photos / 270 q | Mistral 1B | 0.774 | 0.952 | 0.862 | 0.952 |
| `mvision-zh` all | 2,000 pages / 170 q | EmbeddingGemma 2 | 0.318 | 0.818 | 0.493 | 0.747 |
| `mvision-zh` all | 2,000 pages / 170 q | Mistral 1B | 0.494 | 0.894 | 0.671 | 0.848 |
| └ `mvision-zh` PNG screenshots | 56 q | EmbeddingGemma 2 | 0.571 | 0.982 | 0.754 | 0.955 |
| └ `mvision-zh` PNG screenshots | 56 q | Mistral 1B | 0.357 | 0.786 | 0.543 | 0.762 |
| └ `mvision-zh` scanned PDFs | 85 q | EmbeddingGemma 2 | 0.071 | 0.671 | 0.317 | 0.659 |
| └ `mvision-zh` scanned PDFs | 85 q | Mistral 1B | 0.624 | 0.929 | 0.771 | 0.912 |
| └ `mvision-zh` mixed (PDF + PNG) | 29 q | EmbeddingGemma 2 | 0.552 | 0.931 | 0.505 | 0.605 |
| └ `mvision-zh` mixed (PDF + PNG) | 29 q | Mistral 1B | 0.379 | 1.000 | 0.623 | 0.826 |
| `vidore-en` (English PDFs, sampled) | 2,500 pages / 135 q | EmbeddingGemma 2 | 0.519 | 0.889 | 0.502 | 0.536 |
| `vidore-en` (English PDFs, sampled) | 2,500 pages / 135 q | Mistral 1B | 0.400 | 0.785 | 0.402 | 0.456 |

Three takeaways stand out when we look past the top-line numbers:

1. **The text gap is architectural**: Across all three text benchmarks—including hard semantic queries missed by BM25—Mistral lags by 0.22–0.35 in `nDCG@10`. On the 67 `miracl-zh` queries where BM25 misses Top-10, EmbeddingGemma 2 reaches `nDCG@10` 0.826 (Top-10 hit rate 1.000) versus 0.427 (Top-10 0.716) for Mistral. That aligns with Mistral's model card: its text tower is optimized for cross-modal caption matching rather than document retrieval.
2. **Splitting `mvision-zh` reveals an unexpected cliff**: On the aggregate `mvision-zh` score, Mistral looks far ahead (0.671 vs 0.493). Breaking out the subsets shows two opposite stories: EmbeddingGemma 2 beats Mistral by +0.21 on the 56 web screenshot queries (0.754 vs 0.543), yet collapses to Top-1 0.071 (`nDCG@10` 0.317) on the 85 image-only scanned PDF queries while Mistral holds 0.624 (`nDCG@10` 0.771). Both halves come from the same `nvidia/miracl-vision` Chinese Wikipedia pages—one kept as PNGs resized to ≤1536 px long side, the other packaged into image-only PDFs rendered at 1400 px width—and both used `max_soft_tokens=280` on EmbeddingGemma 2. That points directly to a low-cost ablation on visual token budgets and rendering before considering any second model.
3. **English PDFs are consistent across domains**: Across all three `vidore-en` domains—finance (0.514 vs 0.388), HR (0.533 vs 0.439), and industrial (0.460 vs 0.380)—EmbeddingGemma 2 leads by 0.08–0.13.

### Throughput and Memory Footprint (M2 16 GB)

![Throughput and process peak memory footprint comparison on M2 16 GB](https://luoke.ai/blog/research/LN-0003/fig2-speed-memory-en.svg)

| Metric | EmbeddingGemma 2 | Mistral Multimodal Embed 1B |
|---|---:|---:|
| Query text throughput (items/s) | 237–247 (text-only) / 62–126 (full) | 26–108 |
| `miracl-zh` Chinese passages (items/s) | 16.33 | 4.83 |
| `miracl-en` English passages (items/s) | 32.93 | 11.50 |
| `xm3600-zh` photos (images/s) | 3.34 | 3.49 |
| `mvision-zh` screenshots & PDFs (pages/s) | 1.39 | 2.33 |
| `vidore-en` English PDFs (pages/s) | 1.39 | 2.95 |
| Text-set process peak memory (GiB) | 2.41–3.81 | 4.04–5.20 |
| Image-set process peak memory (GiB) | 4.80 (photos) / 6.52–6.58 (doc pages) | 3.72–4.20 |

Speed and memory mirror the architectural trade-off:
- **Text workloads (primary budget on 16 GB Macs)**: EmbeddingGemma 2 skips its vision and audio encoders, running only the 270M text tower at **2.9–3.4× higher throughput** and **2.41–3.81 GiB** peak footprint. Mistral's 783M text tower always loads alongside the vision tower, pushing process footprint to **4.04–5.20 GiB**.
- **Images and document pages**: Mistral resizes images to 448 px long side through a dedicated vision tower, making it **1.7–2.1× faster** on screenshots and PDFs while staying at **3.72–4.20 GiB** (versus **6.52–6.58 GiB** for EmbeddingGemma 2 at 280 soft tokens, batch 8).

## Method

- **Hardware and runtime**: Apple M2 16 GB Mac mini, macOS 26.4.1; isolated Python venv with `mlx 0.32.5`, `mlx-vlm` dev commit `c745aa7065` (which adds `mistral_contrastive`), and `transformers 5.24.1`, using pip wheels only and no PyTorch. MLX cache limit was fixed at 512 MiB (`mx.set_cache_limit(512 * 2**20)`).
- **Model checkpoints and safe loading**:
  - `EmbeddingGemma 2`: `google/embeddinggemma-2` (revision `914f7f8`), using Luoke's retrieval prompts (`task: search result | query: ` and `title: none | text: `), 2,048-token max length, batch 16 for text, and chat-template image input at batch 8 (`max_soft_tokens=140` for photos, `280` for screenshots and PDF pages). Text sets loaded the text tower only; image sets loaded the full model.
  - `Mistral Multimodal Embed 1B`: The official repository (`mistralai/Mistral-Multimodal-Embed-1B@4d0e936`) ships four `.py` files and `auto_map` entries requiring `trust_remote_code=True`. Because our model loading policy disallows executing remote code from weight directories, we evaluated the community MLX bf16 conversion `nativ-community/Mistral-Multimodal-Embed-1B-bf16` (`625384b`, converted from `4d0e936`), which contains no `.py` files or `auto_map` and loads cleanly with `trust_remote_code=False`. Text used raw input (no prompts), 2,048-token truncation, batch 16; images used its built-in processor (aspect-preserving, long side 448 px), batch 8.
- **Official parity verification**: On the 27 sample images from Mistral's official notebook, the MLX bf16 port matched **27/27** zero-shot Top-1 predicted classes against the official PyTorch notebook outputs with a maximum probability delta of **1.6 percentage points**, and matched Top-4 image-to-image cosine similarities within **0.001** (MLX: 0.562 / 0.561 / 0.561 / 0.557 vs official reference: 0.563 / 0.562 / 0.561 / 0.557).
- **Shared image preprocessing and sampling**: Both models received identical prepared images—photos resized to ≤1024 px long side (JPEG quality 90), screenshots to ≤1536 px long side (PNG), and PDF pages rendered via `pypdfium2` at 1400 px width (PNG). For `vidore-en` (8,773 pages total), all 600 judged pages were retained and additional pages were randomly sampled with fixed seed `20261109` up to 2,500 pages.
- **Scoring and measurement**: Answerable queries only, ranked over the full candidate set by L2-normalized cosine similarity, reporting Top-1, Top-10, `nDCG@10` ($2^g - 1$ gain), and `Recall@10`. Each `(model, dataset)` pair ran in a fresh process wrapped by `/usr/bin/time -l` to record `peak memory footprint`; throughput excludes 2–5 s model loading and one warm-up batch.

## Reproduce

On any Apple Silicon Mac (16 GB+ unified memory, Python 3.11+), set up an isolated environment with the `mlx-vlm` commit that adds `mistral_contrastive`:

```bash
python3 -m venv .venv && source .venv/bin/activate
pip install mlx==0.32.5 transformers==5.24.1 numpy pillow pypdfium2 huggingface_hub
pip install "git+https://github.com/Blaizzy/mlx-vlm.git@c745aa7065"
```

Download the exact revisions (both load with `trust_remote_code=False`):

```bash
huggingface-cli download google/embeddinggemma-2 --revision 914f7f8
huggingface-cli download nativ-community/Mistral-Multimodal-Embed-1B-bf16 --revision 625384b
```

Minimal embedding snippet for both models with the 512 MiB MLX cache cap:

```python
import mlx.core as mx
import numpy as np
from mlx_vlm import load

mx.set_cache_limit(512 * 2**20)

# Mistral Multimodal Embed 1B (MLX bf16, trust_remote_code=False)
m_model, m_proc = load("nativ-community/Mistral-Multimodal-Embed-1B-bf16", trust_remote_code=False)
enc = m_proc.tokenizer(["query text"], padding=True, truncation=True, max_length=2048, return_tensors="np")
q_vec = m_model.get_text_features(mx.array(enc["input_ids"]), mx.array(enc["attention_mask"]))
mx.eval(q_vec)

# EmbeddingGemma 2 (with retrieval prompts)
g_model, g_proc = load("google/embeddinggemma-2")
g_enc = g_proc.tokenizer(
    ["task: search result | query: query text"],
    padding=True, truncation=True, max_length=2048, return_tensors="np",
)
g_vec = g_model(**{k: mx.array(v) for k, v in g_enc.items()}).text_embeds
mx.eval(g_vec)
```

All six upstream datasets are registered in [datasets.yml](https://github.com/luokelabs/luoke-research/blob/e15df12a2bfee3da698c8442794065dc3aee470c/data/datasets.yml) (`miracl-zh`, `t2-zh`, `miracl-en`, `xm3600-zh`, `mvision-zh`, `vidore-en`). Apply the preprocessing settings above (photos ≤1024 px JPEG, screenshots ≤1536 px PNG, PDFs rendered at 1400 px width PNG, `vidore-en` keeping all judged pages + seed `20261109` to 2,500 pages), rank by L2-normalized cosine similarity against dataset `qrels`, and wrap each process with `/usr/bin/time -l` to reproduce quality, throughput, and peak memory.

## Limitations

- **Pure-vector comparison only**: Scores reflect single-stage cosine retrieval without BM25 or OCR. End-to-end hybrid local search—especially on scanned PDFs where OCR extracts text—will behave differently.
- **Stratified subsampling on `vidore-en`**: Retaining all 600 judged pages while subsampling distractors from 8,773 down to 2,500 pages (seed `20261109`) lifts absolute scores for both models equally, while keeping head-to-head comparisons fair.
- **`t2-zh` throughput not directly comparable**: Because `t2-zh` contains passages up to 40k characters, Mistral used length-sorted batching to avoid excessive padding (identical vectors, faster run), whereas EmbeddingGemma 2 did not. Use `miracl-zh`, `miracl-en`, and the three image sets for direct speed comparisons.
- **MLX conversion and dev-branch patch**: Mistral numbers come from the community MLX bf16 conversion rather than the official PyTorch code (verified 27/27 on Mistral's sample notebook). For EmbeddingGemma 2 image runs, a one-line `_merge_kwargs` compatibility shim was added between `mlx-vlm` dev and `transformers 5.24.1`; per-page latency (0.72 s/page) matched earlier 16 GB measurements (0.77 s/page), indicating unchanged visual preprocessing.
- **Single-machine background swap and answerable-only scope**: All runs were executed once per set on a single M2 16 GB Mac with 2–4.7 GB of background swap already active, which may slightly lower absolute throughput equally on both models. Unanswerable refusal queries were excluded because refusal thresholds belong to the retrieval pipeline rather than the embedder.

## Changelog

- 2026-12-01: Initial publication.
