<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Singaraj B]]></title><description><![CDATA[Singaraj B]]></description><link>https://singaraj.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Dec 2026 00:13:48 GMT</lastBuildDate><atom:link href="https://singaraj.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Building the First Embedding Model and MTEB Benchmark for Mauritian Creole (and How FLORES+ Fooled Me)]]></title><description><![CDATA[Building morisien-embed and MTEB's Mauritian Creole task: why FLORES+ saturated, discarding a flawed pool, and ablation findings.]]></description><link>https://singaraj.hashnode.dev/morisien-embed-mauritian-creole-mteb</link><guid isPermaLink="true">https://singaraj.hashnode.dev/morisien-embed-mauritian-creole-mteb</guid><category><![CDATA[Machine Learning]]></category><category><![CDATA[mauritius]]></category><category><![CDATA[nlp]]></category><category><![CDATA[#Embeddings]]></category><category><![CDATA[Open Source]]></category><category><![CDATA[Python]]></category><dc:creator><![CDATA[Singaraj B]]></dc:creator><pubDate>Fri, 27 Nov 2026 10:53:33 GMT</pubDate><content:encoded><![CDATA[<p>Mauritian Creole (Kreol Morisien, ISO 639-3 <code>mfe</code>) is spoken at home by 90.0% of people in Mauritius (2022 census). Yet no dedicated text embedding model existed for it, and MTEB had no Mauritian Creole task.</p>
<p>So I built <code>morisien-embed</code>, added <code>MorisienMTBitextMining</code> upstream to MTEB, and trained two open MIT models (<code>morisien-embed</code> and <code>morisien-embed-v1.5</code>). Along the way, my first out-of-domain benchmark turned out to be saturated, a second benchmark failed its own acceptance criteria and had to be thrown out, and an ablation contradicted my initial intuition about the training data.</p>
<p>Here is what actually happened.</p>
<hr />
<h2>1. The Data: Mostly a Dictionary</h2>
<p>I merged <a href="https://arxiv.org/abs/2206.02421">MorisienMT</a> (MIT license) with the Mauritian Creole subset of <a href="https://arxiv.org/abs/2405.05376">Kreyòl-MT</a>. After exact deduplication, that gave <strong>35,064 unique pairs</strong> (22,211 English and 12,853 French).</p>
<p>Two checks ran before training: exact string match and punctuation/case/accent-insensitive match against the MorisienMT dev and test splits. Both checks removed <strong>0 rows</strong> because the splits were already disjoint from training.</p>
<p>The surprise was the shape of the data: <strong>63.21% of the training pairs (22,164 of 35,064) have a single-word Creole side.</strong> The median length is one word. Every retrieval benchmark evaluates full sentences, so the training corpus looks mostly like a bilingual dictionary.</p>
<hr />
<h2>2. In-Domain Results and Adding Creole to MTEB</h2>
<p>I first fine-tuned <code>intfloat/multilingual-e5-base</code> (278M) using a two-stage hard-negative mining recipe on a single T4 GPU (about 41 minutes total). Later, I ran the same recipe on <code>sentence-transformers/LaBSE</code> (471M) and released it as <code>morisien-embed-v1.5</code>.</p>
<p>On held-out MorisienMT Creole-to-English retrieval (1,000 queries, 999 passages):</p>
<table>
<thead>
<tr>
<th>Model</th>
<th align="right">Params</th>
<th align="right">nDCG@10</th>
<th align="right">acc@1</th>
</tr>
</thead>
<tbody><tr>
<td><code>intfloat/multilingual-e5-base</code></td>
<td align="right">278M</td>
<td align="right">0.6402</td>
<td align="right">0.53</td>
</tr>
<tr>
<td><code>sentence-transformers/LaBSE</code></td>
<td align="right">471M</td>
<td align="right">0.9393</td>
<td align="right">0.91</td>
</tr>
<tr>
<td><code>morisien-embed</code></td>
<td align="right">278M</td>
<td align="right">0.9655</td>
<td align="right">0.9440</td>
</tr>
<tr>
<td><code>morisien-embed-v1.5</code></td>
<td align="right"><strong>471M</strong></td>
<td align="right"><strong>0.9658</strong></td>
<td align="right"><strong>0.9460</strong></td>
</tr>
</tbody></table>
<p>To make this comparison standard, I contributed <code>MorisienMTBitextMining</code> to <code>embeddings-benchmark/mteb</code>, the first Mauritian Creole task in the benchmark. On MTEB bitext-mining F1 across all four directions, <code>morisien-embed-v1.5</code> averages <strong>0.928</strong>, <code>morisien-embed</code> averages <strong>0.925</strong>, and untrained <code>LaBSE</code> averages <strong>0.848</strong>.</p>
<hr />
<h2>3. How FLORES+ Fooled Me (and One Benchmark I Had to Throw Out)</h2>
<p>In my first version, I evaluated out-of-domain generalization on the 1,012-sentence <code>FLORES+</code> <code>mfe</code> devtest split. <code>morisien-embed</code> hit <strong>1.0000 accuracy@1</strong> and <code>LaBSE</code> hit <strong>0.9996</strong>. I initially read that as zero out-of-domain degradation.</p>
<p>Then I ran a simple non-neural control: character n-gram <strong>TF-IDF</strong>. It scored <strong>0.8221 accuracy@1</strong>. Retrieving the right translation out of 1,012 unrelated sentences needed little more than surface character overlap. The pool had no headroom.</p>
<p>To fix this, I set two strict acceptance rules before trusting any out-of-domain pool:</p>
<ol>
<li>A lexical TF-IDF baseline must score below <code>0.50</code> accuracy@1.</li>
<li>A strong general model (<code>LaBSE</code>) must sit below the ceiling.</li>
</ol>
<p>My next attempt failed rule #2. I built a held-out pool from Google's <code>SMOL</code> Creole pairs with distractors drawn from <code>FLORES</code>. TF-IDF dropped to <code>0.3643</code>, passing rule #1, <strong>but</strong> <code>LaBSE</code> <strong>jumped to</strong> <code>0.9740</code> <strong>accuracy@1.</strong> Because gold passages came from SMOL and distractors came from FLORES, models could eliminate distractors on corpus style alone without reading the sentence. I discarded that pool and reported it as a failed experiment.</p>
<hr />
<h2>4. A Real Out-of-Domain Test: xSIM++</h2>
<p>To build a pool with genuine discrimination, I aligned the English <code>xSIM++</code> perturbations to <code>FLORES+</code> and used the Mauritian Creole sentences as queries. That gave <strong>996 queries over 45,029 passages</strong>, where each of the 44,033 distractors is a real gold sentence with one meaning-critical token altered:</p>
<ul>
<li>Entity mention replacement: 88.24%</li>
<li>Number replacement: 7.41%</li>
<li>Causality alternation: 4.35%</li>
</ul>
<p>TF-IDF scored <code>0.3273</code> accuracy@1 and <code>LaBSE</code> scored <code>0.6928</code>, so both acceptance checks held.</p>
<p>On this harder pool, the v1 story collapsed:</p>
<table>
<thead>
<tr>
<th>Model</th>
<th align="right">nDCG@10</th>
<th align="right">acc@1</th>
</tr>
</thead>
<tbody><tr>
<td>Character n-gram TF-IDF</td>
<td align="right">n/a</td>
<td align="right">0.3273</td>
</tr>
<tr>
<td><code>intfloat/multilingual-e5-base</code></td>
<td align="right">0.6691</td>
<td align="right">0.4639</td>
</tr>
<tr>
<td><code>sentence-transformers/LaBSE</code></td>
<td align="right">0.8449</td>
<td align="right">0.6928</td>
</tr>
<tr>
<td><code>morisien-embed</code></td>
<td align="right">0.8439</td>
<td align="right">0.6857</td>
</tr>
<tr>
<td><code>morisien-embed-v1.5</code></td>
<td align="right"><strong>0.8616</strong></td>
<td align="right"><strong>0.7239</strong></td>
</tr>
</tbody></table>
<p><code>morisien-embed</code> (v1) and untrained <code>LaBSE</code> were statistically indistinguishable (<code>p = 0.6852</code> on McNemar's test). Switching the base model to <code>LaBSE</code> (<code>morisien-embed-v1.5</code>) was worth <code>+0.0171</code> <strong>nDCG@10</strong> over <code>e5-base</code>, and every <code>LaBSE</code>-initialized arm beat untrained <code>LaBSE</code>.</p>
<hr />
<h2>5. Three Findings From the Ablations</h2>
<ol>
<li><strong>Matryoshka loss added zero retrieval accuracy.</strong><br />Hard-negative mining with cached loss carried <code>+0.0358</code> nDCG@10 out of domain. Matryoshka loss was worth <code>-0.0013</code>. It gives you embedding truncation for free, not better retrieval.</li>
<li><strong>The single-word dictionary helped.</strong><br />Since 63.21% of the training pairs were single words, I assumed they diluted sentence retrieval. Removing them (training only on the 9,183 pairs of 6+ words) <strong>dropped</strong> out-of-domain nDCG@10 to <code>0.8547</code> against <code>0.8613</code> for a volume-matched random subset of 9,183 pairs.</li>
<li><strong>Every model fails in the exact same place.</strong><br />When breaking errors down by <code>xSIM++</code> perturbation type, <strong>causality alternation is 4.35% of the distractor pool and causes 43% to 50% of all errors</strong> across every model (<code>49.7%</code> for <code>morisien-embed-v1.5</code>, <code>46.8%</code> for <code>LaBSE</code>). Fine-tuning did not fix reversed causal direction at all.</li>
</ol>
<hr />
<h2>Links</h2>
<ul>
<li><strong>Paper (Zenodo):</strong> <a href="https://doi.org/10.5281/zenodo.21877805">https://doi.org/10.5281/zenodo.21877805</a></li>
<li><strong>Code &amp; Reproduction Scripts:</strong> <a href="https://github.com/LK-maker-007/morisien-embed">https://github.com/LK-maker-007/morisien-embed</a></li>
<li><strong>Models:</strong> <a href="https://huggingface.co/Singaraj/morisien-embed-v1.5"><code>Singaraj/morisien-embed-v1.5</code></a> and <a href="https://huggingface.co/Singaraj/morisien-embed"><code>Singaraj/morisien-embed</code></a></li>
<li><strong>In-Browser ONNX Demo:</strong> <a href="https://huggingface.co/spaces/Singaraj/morisien-embed-demo">Hugging Face Space</a></li>
</ul>
]]></content:encoded></item></channel></rss>