Design a logo infringement detection system
I was asked this
No reports yet. Sign in to say where you were asked it.
An AI/ML design interview question asked in Amazon's system design round, last asked Nov 2025. It tests computer vision, retrieval and trust and safety.
Design a machine-learning system that finds product listings whose images use a brand's logo without permission. Brands register their logos; the system scans images from new and existing listings, finds logos that match a registered one, and decides whether the use is infringing, sending uncertain cases to human reviewers.
Requirements
- Functional: brands register logos (several variants each); every new listing image is checked soon after upload; matches are scored and either acted on automatically, sent to review, or dropped; reviewers' decisions feed back into training.
- Non-functional: millions of new images a day against tens of thousands of registered logos; seconds of latency per image at upload; high precision for automatic actions, since taking down a legitimate seller's listing is costly; recall tracked per brand.
Clarifying questions
- Is an authorized seller using the logo allowed? Where does the list of authorized sellers come from?
- Does the system act automatically, or only flag for review?
- Do we need to catch altered logos (recoloured, rotated, partly hidden)?
- Images only, or text in the listing too?
What a strong answer covers
- A two-stage pipeline: a logo detector that finds candidate logo regions in an image, then an embedding model that maps each region to a vector compared against the registered logos.
- Metric learning for the embedding (triplet or contrastive loss) so that variants of one logo sit close together and different logos sit far apart; augmentations for rotation, colour, blur and partial cover.
- Retrieval at scale: an approximate nearest-neighbour index over registered logo embeddings, refreshed as brands register new ones.
- The infringement decision as a separate step: the visual match plus seller authorization, listing text, price and seller history.
- Labels: brand reports, reviewer decisions, synthetic composites; hard negatives such as look-alike logos.
- Thresholds per action: high for automatic takedown, lower for review, tuned against reviewer capacity; precision and recall measured on a labelled sample, per brand.
- Serving latency: GPU batch inference at upload, a cache of embeddings for images already seen.
Follow-ups
- Counterfeiters slightly change their logos to evade the system. How do you keep up?
- A new brand registers with only one logo image. How do you get good recall for it?
- How do you scan the existing catalogue of billions of images when the model changes?
Where it's asked
- Amazon · System design · Last asked Nov 202555 min · Design discussion
What it tests
computer vision · retrieval · trust and safety
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
