Design an image/video near-duplicate detection system

Quick Overview

This question evaluates competency in ML system design and large-scale multimedia retrieval, focusing on perceptual fingerprinting versus embedding strategies, scalable indexing and nearest-neighbor retrieval, and robustness to resizing, re-encoding, watermarks, minor edits, and adversarial manipulations.

Design an image/video near-duplicate detection system

Company: OpenAI

Role: Machine Learning Engineer

Category: ML System Design

Difficulty: hard

Interview Round: Onsite

## Question Design a system to detect near-duplicate images/videos (e.g., reuploads, minor edits, different encodes) at large scale. ## Requirements - Support both images and videos. - Robust to resizing, cropping, re-encoding, watermarks, small edits. - High throughput ingestion; low-latency query for takedown/merge/dedup. - Handle billions of media items. ## Deliverables - Fingerprinting approach (perceptual hashing vs embeddings). - Indexing and retrieval architecture. - Thresholding, evaluation, and operational concerns (false positives, adversarial behavior).

Quick Answer: This question evaluates competency in ML system design and large-scale multimedia retrieval, focusing on perceptual fingerprinting versus embedding strategies, scalable indexing and nearest-neighbor retrieval, and robustness to resizing, re-encoding, watermarks, minor edits, and adversarial manipulations.

|Home/ML System Design/OpenAI
OpenAI logo
OpenAI
Dec 15, 2025, 12:00 AM
hardMachine Learning EngineerOnsiteML System Design
11
0

Question

Design a system to detect near-duplicate images/videos (e.g., reuploads, minor edits, different encodes) at large scale.

Requirements

  • Support both images and videos.
  • Robust to resizing, cropping, re-encoding, watermarks, small edits.
  • High throughput ingestion; low-latency query for takedown/merge/dedup.
  • Handle billions of media items.

Deliverables

  • Fingerprinting approach (perceptual hashing vs embeddings).
  • Indexing and retrieval architecture.
  • Thresholding, evaluation, and operational concerns (false positives, adversarial behavior).

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...