← Questions

Mine new information from a huge unlabeled image corpus

0
OpenAIAI/ML designLast asked May 2026

An AI/ML design interview question asked in OpenAI's technical screen (system design), last asked May 2026. It tests unsupervised learning, embeddings and data mining.

You have a huge, growing corpus of unlabeled images (on the order of 10^8 to 10^9). Design a system that surfaces a small, ranked, deduplicated stream of images unlike anything already in the training data, and that can also find the images containing a given object of interest. Human labelers exist but are scarce (hundreds to a few thousand judgments a day), so the system must not depend on heavy manual labeling.

Requirements

  • Functional: define and score "novel" or "interesting" without labels; ingest, deduplicate, filter and store images; given an object of interest (a text description or a few example images), return images that contain it; spend the label budget where it teaches the most; output a ranked, diverse set that researchers and training pipelines can consume.
  • Non-functional: batch or near-real-time (minutes to hours of freshness), throughput and label efficiency over per-image latency; unsafe content filtered before any human sees it; cost that scales with a growing corpus.

Clarifying questions

  • Who consumes the output, and for what: training-data acquisition, content discovery, or safety auditing? That changes what "interesting" means.
  • One pass over a fixed corpus, or a continuous pipeline?
  • Which foundation models may we use, and can we fine-tune them?
  • Is novelty relative to our existing training set, and do we have it?
  • Daily label capacity, label types allowed (binary, pairwise), labeler expertise?
  • Mandated safety classifiers or policies on what may be stored or shown?

What a strong answer covers

  • Interestingness split into measurable parts: rarity relative to the training set, usefulness to the consumer, quality (not corrupt, blurry, a screenshot or watermarked) and safety, since the rarest raw images are often junk.
  • Representations: a frozen image–text encoder (CLIP-like) for embeddings, perceptual hashes for exact and near-duplicate removal; why text alignment helps steer and audit.
  • Rarity without labels: nearest-neighbour distance or local density against the training-set embeddings, cluster sizes; an approximate nearest-neighbour index (sharded IVF or HNSW) for scale.
  • Object search: text-to-image retrieval from the same embeddings, refined with a few labeled examples (a small classifier or prototype on top), plus open-vocabulary detection on the shortlist.
  • Cheap candidate generation over billions, then expensive scoring on a shortlist.
  • Label budget via active learning: uncertain and uncovered regions first, pairwise "which is more useful" questions instead of 1–5 ratings, gold checks for labeler quality.
  • Diverse selection: redundancy penalties or per-cluster quotas so output isn't 100 near-identical outliers.
  • Evaluation: precision of surfaced sets from labeled samples, downstream gain when mined data is added to training, coverage and diversity; monitoring of drift, junk and safety rates.

Follow-ups

  • The encoder itself was trained on similar data, so it can't "see" some kinds of novelty. How do you notice and fix that?
  • Mined images are added to training; how do you avoid the novelty score collapsing as the reference set grows?
  • Search for an object that is tiny in most images it appears in.
  • Cut the cost of embedding a billion new images a month.

Where it's asked

What it tests

unsupervised learning · embeddings · data mining

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