Skip to content
Models

Nema Winnow

Separates the wheat from the chaff.

Reads the subject and text of a mail and says how likely it is spam or phishing.

Mail in, number out

Winnow gets the subject and the text of a mail. HTML becomes plain text, and a link keeps its visible label and its target. The answer is a probability between 0 and 1. Above the recommended threshold of 0.9 a mail counts as spam. Phishing and fraud count as spam too. The name comes from winnowing: separating the wheat from the chaff.

What counts as spam

The topic alone does not decide. An invoice can be real or fake, and the model has seen both sides of each topic.

Money and accounts
SpamPhishing in the name of a bank, a parcel service or a mailbox provider, a “locked” account, fake invoices and debt collection threats.Not spamInvoices, payment reminders, receipts, notices from banks and insurers.
Fraud and sign-ins
SpamFraud: advance fee, lottery, CEO fraud, extortion, job and investment scams.Not spamVerification codes, password resets, sign-in notices.
Advertising
SpamUnsolicited advertising: pharma, casino, dating, loans, replicas.Not spamNewsletters and promotions the recipient subscribed to. They name the sender and offer an unsubscribe link.
Inquiries
SpamCold mass outreach: SEO, lead lists, cheap development, followers.Not spamReal inquiries, applications, offers after a conversation.

Where it runs

Winnow runs as its own small service on ordinary CPUs. It scores three mails in around 40 ms and needs no graphics card. Mails do not leave our own infrastructure for the check, and nothing goes to another provider.

The first use is prepared: the mail app of the Carta Workspace, next to its existing rules. Winnow is not in use there yet. The plan is to start in an observation mode in which Winnow only writes down its verdict and moves no mail.

What it is built on

Winnow builds on mmBERT-small, a small multilingual open model under the MIT licence. We fine-tuned it as a classifier with two classes, spam and not spam. It works in many languages, with a focus on German and English.

mmBERT-small on Hugging Face

Numbers

Measured with version 0.1.0 at the threshold 0.9. A real mail in the junk folder costs more than a spam mail in the inbox, so the threshold is set high. That costs some detection and keeps false alarms low.

0 / 70
Real mails flagged by mistakeindependent test set of 140 written mails, 100 German and 40 Englishlower is better
82%
German spam detected41 of 50 in the independent test sethigher is better
85%
English spam detected17 of 20 in the independent test sethigher is better
97.8%
Real phishing detected396 of 405 real phishing mails from 2020 to 2022 (Nazario), not in the traininghigher is better
85.7%
Spam detected, SpamAssassinpublic corpus with mails from 2002 to 2005, held out completelyhigher is better
3.23%
Real mails flagged, SpamAssassinthe same corpus, held out completelylower is better
97.9%
Spam detected, training sourcestest share of the training sources: same sources, different mailshigher is better
0.33%
Real mails flagged, training sourcestest share of the training sourceslower is better
≈ 40 ms
Compute timefor three mails on an ordinary CPUlower is better

As of 25 November 2026, Nema Winnow 0.1.0, threshold 0.9. Source: README.md in the repository nema/models/winnow.

How we measure

An independent test set
140 mails, 100 German and 40 English, written by an author who did not know the training data. They are meant to be hard: part of the real mail looks suspicious, part of the spam is calm and well written.
Sources held out
The SpamAssassin corpus was kept out of the training completely. From the Nazario phishing collection, everything from 2020 on was held out, so the model is tested on real phishing it has never seen.
A high threshold
We report every number at the threshold 0.9, the one we recommend for use. We do not pick the threshold per test set to make a number look better.
The real measurement comes later
No test set replaces a real inbox. That is why Winnow is meant to start in an observation mode: it scores real incoming mail, moves nothing, and every disagreement with the existing rules is logged.

Where it has limits

  1. Winnow sees only the content. It sees no sender address, no SPF, DKIM or DMARC and no attachments. A perfectly worded mail from a forged sender is caught by the sender check, not by Winnow.
  2. Fraud that is only wrong in context and contains no link is often missed from the text alone: changed bank details from a supplier, or a short “Are you at your desk?”.
  3. Both test sets with German mail are written, not collected from a real inbox. Real German mail was not part of the training. German was learned from translations, a synthetic set and our own generated mails.
  4. The model reads the beginning of a mail, about the first 1,000 characters. What comes after that does not count.
  5. In the SpamAssassin corpus it flags 3.23% of the real mails. Most of these are newsletters and mailing list mail from 2002.