Design Automatic Category Classification for New Product Listings
Last updated: November 29, 2026
Quick Overview
Design an ML system that assigns each new product listing (title, description, images, attributes) to the right node in a product category tree with tens of thousands of leaf categories.
Amazon
November 29, 20260
0
0 solved
Design an ML system that assigns each new product listing (title, description, images, attributes) to the right node in a product category tree with tens of thousands of leaf categories.
Sellers list millions of new products on Amazon, and wrong categories hurt search, browse, fees, and compliance. Interviewers check hierarchical classification design, multimodal features, noisy labels from seller-provided categories, and when to route items to human review.
What the Interviewer Expects
- Hierarchical label space with long tail categories
- Multimodal input: text, images, structured attributes
- Noisy training labels from seller choices
- Confidence-based routing to human review
- Handling taxonomy changes over time
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How would you handle a new category added to the tree with few examples?
- How do you clean noisy seller labels?
- How would you evaluate errors that are 'close' in the tree versus far away?
- How would you serve this for a bulk feed of a million items?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Functional: given a listing, predict the leaf category and a confidence; auto-apply above a threshold, otherwise suggest top 3 to the seller or send to a review queue; support bulk feeds and singl...
High-Level Design
- Feature Builder: title and description tokens, brand, structured attributes, and image.
- Encoders: a pretrained text transformer fine-tuned on listings, an image encoder, and attribute embe...