Problem
On a marketplace the same product is sold by many sellers under different titles, photos and descriptions. Wildberries wants to show a buyer identical products from other sellers, so they can pick a cheaper offer or faster delivery. The catalog has about 130 million products, so comparing every pair is impossible, and the pairs must be refreshed as products are added and edited. Buyers want true duplicates, not similar items.
Example from the article: two white T-shirts with a cat from different sellers must be recognized as one product.
Solution in brief
The pipeline has three stages. Embeddings plus approximate nearest-neighbor search narrow millions of items to thousands of candidates per item. A bi-encoder and then a text cross-encoder pick the true pairs. Community detection on the pair graph builds the final groups and cuts weak links. Each run is incremental and matches only new or updated products.
Questions this case answers
- How to find all identical items among millions of listings from different providers when only part of the data is labeled and pairwise comparison is too expensive
- How to turn noisy pairwise duplicate predictions into consistent groups without chaining unrelated groups together
- How to find identical products from different sellers in a catalog of 130 million items?
- How to keep a duplicate-matching pipeline fast enough to keep up as the catalog changes?
Tools and methods
- multilingual-E5 small (fine-tuned) — text embeddings and the text cross-encoder
- ViT-H — image embeddings of the first product picture
- FAISS (GPU) with an mmap embedding store — fast candidate search and embedding access
- Bi-encoder (per-category MLP) — cheap pair scoring on embeddings
- Cross-encoder — slower, more precise re-scoring of the best pairs
- Community detection — turns pairs into groups, cuts spurious links
- Prefect, S3, Greenplum — orchestration, hand-off of image embeddings, result storage
Google or a one-time email code. No password.
