← Questions

Design an image copyright-violation detection system

0
MetaAI/ML designLast asked Feb 2026

An AI/ML design interview question asked in Meta's AI/ML design round, last asked Feb 2026. It tests computer vision, similarity search and trust and safety.

Design a system that detects when users of a large social platform upload images that infringe someone's copyright. Rights holders register images they own, and every new upload is checked against them. Infringing uploads are often edited to evade detection: cropped, resized, re-encoded, color-shifted, overlaid with text, or used as one part of a collage.

Requirements

  • Functional: rights holders register protected images; every uploaded image is checked against the reference set and is allowed, blocked, or sent to review.
  • Functional: detect near-duplicates under edits, and partial matches where a protected image is only part of the upload.
  • Functional: appeals for wrongly flagged uploads, and actions the rights holder can choose (block, track, claim).
  • Non-functional: billions of uploads a day; a decision in under a second or so at upload time; a reference set of hundreds of millions of images; high precision, since false blocks hurt legitimate users.

Clarifying questions

  • Where does the reference set come from: rights-holder submissions, licensing partners, or both?
  • Must the check block the upload synchronously, or can it run after posting?
  • Which edits must be caught, and how small can a partial match be?
  • What should happen on a match: block, demonetize, notify the owner?
  • Are videos and their frames in scope?

What a strong answer covers

  • The pipeline: perceptual hashing for exact and near-exact copies, then learned embeddings for edited copies, then a verification step on top candidates.
  • Robustness: an embedding model trained with contrastive learning on augmentations that mimic real evasions (crops, flips, color changes, overlays, screenshots).
  • Partial matches and collages: embed local regions or keypoints as well as the whole image, and match regions against the reference set.
  • Large-scale similarity search: approximate nearest-neighbor indexes (IVF-PQ, HNSW), sharded by embedding, with updates as references are added.
  • Decision: similarity thresholds per action, a verification model that compares the candidate pair, and human review for the uncertain band.
  • Labels and evaluation: precision and recall on a labeled set of matched and non-matched pairs, with slices by edit type; online measures such as appeal-overturn rate.
  • Abuse of the system itself: false claims by people who do not own the image, public-domain and licensed uses, and an appeals process.
  • Serving cost: when to compute embeddings, caching for re-uploads of the same image, and the latency budget at upload.

Follow-ups

  • Uploaders start adding a heavy border and mirroring every image. How do you detect that, and how fast can you adapt?
  • A famous painting is in the public domain, but a museum's photo of it is copyrighted. How does your system handle this?
  • How do you keep the false-positive rate low as the reference set grows tenfold?
  • Extend the system to video.

Where it's asked

What it tests

computer vision · similarity search · trust and safety

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing