Problem
A marketplace recommends only similar items: a user who looks at a tennis racket sees more rackets. Complementary items such as balls or a bag are never shown, so the marketplace misses extra engagement and traffic to other categories. Co-purchase data would reveal complementary pairs, but it covers only part of the catalogue and misses new or rarely viewed items. Adevinta had no purchase data at all, only "lead" interactions (interest without buying).
Example from the article: for a running shoe the model recommends sport tops and track pants, and for a mattress it recommends bed frames and a cot.
Solution in brief
Label relations between item categories (not items) from consecutive user interactions, join the labels back to items as quadruplets (seed, similar, complementary, negative), and train a network on title embeddings with a margin loss. An approximate nearest-neighbour index plus the category labels then yields top-k complementary items.
Questions this case answers
- How to recommend items that go with a seed item rather than substitute for it when purchase pairs are scarce and only weak interaction signals exist
- How to build labeled relation data for a large catalogue by labeling category pairs instead of individual items
- How to recommend complementary items (accessories, add-ons), not only similar ones, when there are no purchase data?
- How to label similar, complementary and negative item relations without labeling every item?
Tools and methods
- Category-pair labeling — mark each pair of leaf categories as similar (S), complementary (C) or negative (N) from consecutive interactions
- Quadruplet network with margin loss — learn embeddings where similar, complementary and negative items sit at different distances from the seed
- Universal Sentence Encoder — turns ad titles into 512-dimensional input vectors
- HNSW index — finds nearest neighbours of a seed among active items
- Vertex AI, BigQuery, Dataproc — training, data processing and batch inference on Google Cloud Platform
Google or a one-time email code. No password.