Engineer Title Text Features for Duplicate Product Listing Detection

Last updated: November 29, 2026

Quick Overview

Sellers sometimes create duplicate detail pages for the same product with slightly different titles. Design text features from pairs of product titles that a classifier could use to decide whether two listings are the same item.

Amazon
Machine Learning
Machine Learning Engineer
Amazon
November 29, 2026
Machine Learning Engineer
Technical Screen
Machine Learning
Medium

0

0

0 solved


Sellers sometimes create duplicate detail pages for the same product with slightly different titles. Design text features from pairs of product titles that a classifier could use to decide whether two listings are the same item.

Amazon's catalog depends on one detail page per product, so duplicate detection is a real catalog quality problem. The interviewer checks that you can design pairwise similarity features that are robust to seller noise, and that you know which tokens carry identity (model numbers, sizes).

What the Interviewer Expects
  • Normalizes titles: case, punctuation, units, brand aliases
  • Builds pairwise features: token Jaccard, character n-gram TF-IDF cosine, edit distance
  • Extracts and compares identity attributes such as model numbers, sizes and pack counts
  • Uses embeddings for semantic similarity with caution about variants
  • Explains candidate generation (blocking) before pairwise scoring
Key Topics to Cover
text similarity
TF-IDF
entity resolution
blocking
attribute extraction
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • How would you avoid merging a 12-pack with a 24-pack of the same item?
  • How do you generate candidate pairs without comparing every pair of listings?
  • How would you get labeled pairs to train on?
  • When would a cross-encoder beat handcrafted features?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Ask what is in scope (titles only, or also brand, images and bullet points), the language mix, and the cost of a wrong merge (high: it can mix reviews and inventory of different items) versus a missed...

Approach

Treat it as entity resolution. First block: only compare listings sharing brand plus a category, or close in an embedding index. Then for each candidate pair compute similarity features and train a cl...


Submit Your Answer
Markdown supported