Vector search in content moderation: fitting 200+ models into one ensemble

Lev Nechaev17 Jul 2026

Problem

A marketplace must find protected brands and faces in about 12 million product cards a day (70+ million images). Managers keep asking for new brands, sometimes tens more within hours, and the rules shift with regulators and new countries. A YOLO detector per brand eats GPU capacity. One multi-class model is risky because retraining can silently degrade quality on brands that already work. Either way, collecting data and validating on daily volumes keeps time to market (TTM) long.

Example from the article: a manager asks to moderate one brand, a single-class YOLO model goes live, and a few hours later the request grows to 10, 20 or 30 more brands.

Solution in brief

Split the job in two. A class-agnostic YOLO detector finds anything that looks like a logo. A CLIP image embedder turns each candidate into a vector, and cosine similarity against reference vectors stored in Faiss decides which brand it is. A new brand needs only an uploaded reference image, not a new model.

Questions this case answers
  • How to cover a constantly growing set of visual reference objects with one detector and a vector index, without retraining a model per object or losing quality on existing ones
  • How to estimate precision and alert volume of a two-threshold detector offline, before it reaches human reviewers
  • How to moderate hundreds of brand logos and faces in marketplace listings without training a detector per brand?
  • How to add a new brand or face to automatic moderation within minutes instead of retraining a model?

Tools and methods

  • YOLO (class-agnostic "logo" detector) — proposes candidate logo regions in every image
  • CLIP image encoder — embeds references and candidates into normalized vectors
  • Faiss, one index per brand — stores references and answers similarity queries
  • VLM labeling and deduplication — builds the detector's training set
  • Threshold table (confidence × similarity) — forecasts precision and trigger counts offline
  • Triton, DALI, TensorRT FP16, ClearML — serving and experiment tracking
Continue reading — it's free

Google or a one-time email code. No password.