Preparing your design workspace

Loading the problem and your latest saved attempt…

Design Short-Video Near-Duplicate Detection

Detect edited visual copies in a large video corpus, balance retrieval quality with latency and improve calibrated decisions through creator appeals.

Problem statement

For this exercise, assume a short-video platform checks an immutable uploaded-video version for a visual near-duplicate within its currently eligible corpus.

A copy contains at least five continuous seconds of the same underlying visual content, possibly cropped, resized, overlaid or mildly retimed; merely showing the same topic or object is not a copy. Videos last five to sixty seconds. A check returns PENDING, DUPLICATE_FLAGGED, NO_MATCH_WITHIN_SCOPE or REVIEW_REQUIRED.

A duplicate flag is reversible, carries query/reference segment evidence and identifies the searched corpus scope. Incomplete required evidence or an unavailable required dependency cannot become a no-match result. Design ingestion, visual representations, candidate retrieval and temporal verification.

Compare a ViT and vector-index baseline with feature compression or quantization and LSH or another bounded candidate filter. Explain quantitatively how embedding dimension, representation quality, index size and the full request path affect latency.

Every result identifies exact video versions, representation/quantizer versions, index generation and decision policy; withdrawn reference videos are filtered before new results are returned. Authorized reviewers can confirm, overturn or leave unresolved an appealed flag with a traceable history.

A review applies to that video pair and version, never a blanket creator exemption.

Reviewed appeals and an independently sampled traffic audit may inform the next calibrated threshold or representation release, with uncertain labels retained, edits of one original grouped within one data split and independent evaluation separate from threshold development.

A label does not immediately mutate a live model. Design the data and learning lifecycle, compatible model/index release, APIs, state ownership, retry and overload behavior, monitoring and appeal calibration.

Exclude feed ranking, playback delivery, audio-only similarity, rights adjudication, general harmful-content moderation and irreversible enforcement.

What to build

  1. Accept immutable uploaded-video versions, expose processing and search readiness and publish traceable compatible visual descriptors into the eligible corpus.
  2. Check a video against the eligible corpus, verify temporal copy evidence and return a scoped reversible flag, no-match, pending or review result with exact release lineage.
  3. An authorized reviewer can confirm, overturn or leave unresolved an appealed flag without losing history, applying a stale revision or exempting unrelated video pairs.
  4. Use reviewed evidence and independent audits to compare retrieval and representation alternatives at a fixed false-flag budget, quantify dimension versus end-to-end latency and safely release compatible model/index/policy changes.

At scale

  • For this exercise, assume 100 million currently eligible video versions, each five to sixty seconds long; compact segment descriptors and bounded candidate retrieval must scale with that corpus.
  • For this exercise, assume peak accepted ingestion of 1,000 video versions per second and 20,000 feature-ready checks per second; offered traffic can burst to ten times those rates and needs explicit overload outcomes.
  • For this exercise, target 500 ms p95 for healthy checks with query features already ready and searchable readiness within two minutes for 99 percent of accepted ingestions under admitted healthy load. A process or single-zone failure must not lose acknowledged check or appeal identities.
  • For this exercise, compare alternatives on fixed independently reviewed data with at least 50,000 non-copy queries and positive transformation slices. Target at most 0.1 percent empirical false flags among non-copy queries and report uncertainty, recall, review volume and full-pipeline latency; this empirical target is not a population guarantee.