Problem
Picnic, an online grocer, ranks a customer's previously bought items with a gradient-boosted repeat model (CARP). It wants recommendations for any article in the store, including ones the customer never bought, and has no model for that. The task is hard for two reasons. The assortment has over 30,000 articles, yet the average customer has bought no more than 200 distinct products, and a few staples such as milk and bananas dominate the data. Customers also differ in subtle ways between near-identical products.
Example from the article: two customers both buy crisps, but one prefers Lays Salt & Vinegar in a family bag and the other Tyrell's Chili.
Solution in brief
Picnic benchmarked nine general sequential recommenders from RecBole on its purchase history and on the public TaFeng dataset, adapted to predict a whole basket by mean-pooling next-item scores. The simple repeat model wins on repeat items, and on explore items even large models often lose to a popularity baseline. Two easier targets work better: explore categories instead of articles, and a longer purchase horizon.
Questions this case answers
- How to recommend never-before-seen items to users whose history is dominated by a small, stable set of repeated items and a long tail of rarely interacted items
- How to benchmark sequential recommendation models on a set-valued target where one repeat model already exists
- How to recommend grocery items a customer has never bought when interactions are extremely sparse?
- How to adapt next-item sequential recommenders to predict a whole next basket?
Tools and methods
- CARP (XGBoost) — existing repeat-purchase model with handcrafted features, the reference for comparison
- RecBole — open-source library that runs all the models reproducibly
- FPMC, HRM, GRU4Rec, SASRec, BERT4Rec, LightSANS, RepeatNet, Caser, SRGNN — benchmarked sequential models
- Popularity baseline — always recommend the 30 most popular articles in the store
- TaFeng — public grocery dataset
Google or a one-time email code. No password.