The Lantern #03 week of June 22, 2026

1 in 8 sentences was a duplicate

1 in 8 sentences in Qal's raw data were duplicates

I removed 372,345 duplicate sentences from the dataset behind Qal, my Tigrinya language model.

In other words, about 1 in every 8 sentences was repeated.

Not a typo.

I shared that on Wednesday, and it stuck with me all week. It sounds like a cleaning problem, but it’s a modeling problem too. If duplicates stay in, the model sees the same patterns again and again instead of new data:

  • A repeated header becomes a pattern.
  • A repeated page marker becomes vocabulary.
  • A repeated sentence gets too much weight.

A repeated paragraph can also land in both training and validation, so the evaluation looks better than reality (great for your ego, bad for your model).

For Qal, I started with exact sentence-level deduplication. Comparing every sentence against every other one gets expensive fast (with millions of sentences, that’s a LOT of comparisons). So I used hashing instead:

→ normalize the sentence
→ hash it with MD5
→ keep the first copy
→ remove the rest

That only catches exact copies. Near-duplicates, like the same article with slightly different formatting or the same boilerplate with tiny character changes, need something like MinHash, especially at web scale.

And there’s one more reason to care. Duplicate text can increase memorization, and memorization becomes a privacy or security concern if a model reproduces sensitive training data during use.

Raw dataset characteristics before cleaning, including duplicate rates
Raw dataset characteristics before cleaning, including duplicate rates (from Part 2).

So by this point I had:

  • deduplicated
  • filtered by script
  • normalized characters
  • removed fragments
  • read samples

Clean, right?

Not quite 🙃

On Thursday I shared what my filters missed. Once I trained the tokenizer (the part that splits text into the pieces the model reads), its vocabulary became another way to inspect the dataset. A tokenizer learns from frequency, so anything strange that appears often enough gets treated as important. For Qal, the vocabulary turned up:

  • Multiple types of apostrophes (why are there so many?)
  • Non-Tigrinya punctuation and characters
  • Rare Unicode symbols
  • Broken word fragments
  • Names that became full tokens
  • Formatting noise that survived cleaning
  • Older characters that needed normalization

Most of these were easy to miss by reading random samples, and obvious once I looked at the vocabulary.

The week started somewhere else, though. On Monday I wrote about synthetic data (training text generated by another model), the technique Microsoft, Hugging Face and IBM used to make better training data. Microsoft used synthetic “textbook-like” data built from thousands of seed topics for Phi-1.5. Hugging Face built Cosmopedia to train small models like SmolLM. IBM generated instruction data through its LAB method. All three generated targeted data to teach specific behavior, rather than simply more text.

I haven’t used synthetic data for Qal yet. But with data that’s small, news-heavy, formal and missing casual everyday writing, I understand why it’s tempting. It can fill gaps, and it can also introduce fake patterns, unnatural phrasing, copied bias and repetition (yes, the exact thing I’d just removed 372,345 of 😅). The best examples I found use real sources, seed topics, filtering and inspection to extend real data carefully. When I try it, I’ll share what works and what breaks.

So yeah… 372,345 duplicates gone, and the tokenizer STILL found more mess.

The cleaning script tells you what you removed, and the tokenizer tells you what the model will see.

That wraps up data week. Next up, tokenizers ✌️

Talk soon,
Fanus

P.S. Have you worked with synthetic data? I want the honest version, what helped and what quietly broke. Reply in the comments or by email.

this week's sources