The Bitter Lesson, Sweet Results: How We Rebuilt Picnic's Recipe Recommender

Majid Hajiheidari, Thijs Sluijter23 Jul 2026

Problem

Picnic, an online grocer, recommended recipes with a two-tower retrieval model that had run in production for two years. The app's Meals page was then redesigned from a "weekly menu" with three picks per day into many sections, each with a small set of recipes, with extra weight on new customers. Picking a few items out of thousands is retrieval. Ordering many small sets is ranking, and the old model no longer fit. In an A/B test against a popularity baseline it only matched the baseline in the Netherlands and lost to it in Germany and France.

Example from the article: the new model had to beat "show the most popular recipes" in three markets with different tastes and data volumes.

Solution in brief

Each section scores few items, so a heavier model with more compute per customer-recipe pair is affordable. Picnic replaced the two-tower model with a Deep & Cross Network (DCN) ranker trained on explicit positives and negatives. Hand-built customer features gave way to embeddings of raw purchase histories, and an agent loop tuned each market.

Questions this case answers
  • How to choose between a retrieval model and a heavier ranking model when each page section scores only a small candidate set
  • How to build training labels for a ranking model when only positive purchase events and exposure logs exist
  • How to tune model hyperparameters per market with an automated agent loop while keeping the evaluation protocol fixed
  • How to adapt a recommender when a UI redesign replaces one short list with many small candidate sets?

Tools and methods

  • Deep & Cross Network (DCN) — ranker scoring one customer-recipe pair
  • Popularity baseline — benchmark for offline work and the first A/B test
  • Purchase-history embeddings — replace hand-built customer features
  • Exposure-based negative sampling — negative labels for the loss
  • Autoresearch-style agent loop — per-market tuning
  • PyTorch — custom DCN implementation
Continue reading — it's free

Google or a one-time email code. No password.