Opinion5 min read

Why precision beats recall in moderation

The metric that decides whether a moderation bot survives is not how much spam it catches. It's what it deletes by mistake.

By TG Filter Team

The asymmetry, in numbers

On the on-domain Russian Telegram corpus (21,411 messages, 7,011 spam), TG Filter's Delete band has zero false deletions. A naive "delete everything suspicious" policy on the same data would flag about 5 ham messages to catch thousands more spam. That sounds like a good trade until you read them: they are people saying "I sent you a DM".

Russian is not special-cased. The English set is evaluated the same way, on 20,329 messages mined from Telegram channel exports and public spam collections (6,006 spam), and the signature rules behind both are rebuilt from several sources — Telegram data, public spam corpora, SMS collections and phishing feeds — rather than written from one person's idea of what spam looks like.

Where recall really comes from

  • Normalization: obfuscated variants of the same phrase stop splitting each other's evidence.
  • More evidence types: URL reputation catches phishing that carries no scam wording at all.
  • Campaign detection: repeated blasts are convicted without a model.
  • A judge for the grey zone: resolves ambiguous messages instead of deleting them.

Loosening a threshold is not on that list. It moves messages from Review to Delete without adding any evidence, which is how you buy recall with false deletions.

How to hold the line

Keep a labelled corpus and a regression gate in CI: fail the build if false deletions appear or flagged recall drops. The gate is the thing that stops a future tuning commit from quietly trading precision for a nicer-looking recall number.