Problem
leboncoin is a French classifieds marketplace with about 70 million ads online, 29 million users and about 10 billion ad views per month. Ads are short-lived and sell once. The "similar ads" block on an item page suggests alternatives. Payment is mostly in person, so purchases are often not recorded and ad views are the usable signal.
An ID-only model cannot score an ad nobody has viewed, and with short-lived ads that is a large share of the catalogue.
Example from the article: two ads are "similar" if some users viewed them one after another ("those who have seen this have also seen that").
Solution in brief
Start with Word2vec on ad-view sequences, with ad IDs as words. It is easy to build but needs frequent retraining and skips unseen ads. Add a content-based Siamese network that encodes ad features without the ID, trained on the same co-view pairs with in-batch negatives. New ads get an embedding from their features, and the model is retrained only every 3 to 6 months.
Questions this case answers
- How to recommend similar items for an item page when the catalogue turns over fast and most new items have no interaction history
- How to train item embeddings from co-view sequences with only positive pairs and a compute-heavy encoder
- How to recommend similar ads on an item page when new ads have no interaction history?
- How to choose between an ID-only collaborative model and a content-based model for item-to-item recommendations?
Tools and methods
- Word2vec (CBOW) — embeds ad IDs from click sequences (collaborative filtering).
- Gensim, TorchRec — Word2vec implementations; TorchRec allows a custom architecture and a GPU-sharded embedding table.
- Siamese network — one shared ad encoder embeds features without the ID.
- In-batch negative sampling — negatives come from other pairs in the batch.
- k-NN index — serves the nearest ads.
Google or a one-time email code. No password.