majid.blog

Majid presenting the Polars data pipeline slide at PyData Amsterdam 2026

The Bitter Lesson, Sweet Results

July 23, 2026. Written with Thijs Sluijter, published on Picnic Engineering.

This page summarises the work. The full article is on Picnic Engineering ↗.

Watch the talk

Thijs and I presented this work at PyData Amsterdam 2026 on September 11, 2026. Thijs talks about the modelling, and in the second half I talk about the engineering and scaling challenges that made it happen:

New UI, new recommendation paradigm

We redesigned our Meals Page from the Meal Planner, focused on the “Weekly Menu”, to Meals 2.0, a more inspirational page with many sections for different needs. Previously, the goal was to filter our assortment of thousands of recipes down to three recommendations for each day of the week. The new page needed recommendations for many sections, each containing just a small set of candidates. This changed our recommendation problem from retrieval to ranking: with fewer items to score in each set, we can apply a more powerful model that requires more computation per item.

Before building a new model, we ran an A/B test of our Two-Tower model against a simple popularity baseline. In the Netherlands they performed on par, and in Germany and France the baseline even outperformed the Two-Tower model.

What we changed

Results

Offline, the DCN model outperformed the popularity baseline by as much as 3x on hitrate@15. After a two-week A/B test, customer conversion improved by more than 8% (relative) and recipe buying share, our north star KPI, by 1.5% (absolute). The DCN is especially effective for new and onboarding customers, because article purchase history lets the model recommend recipes to customers who have never bought recipes with us before. The A/B tests in Germany and France showed similar results.

The bitter lesson

Richard Sutton’s essay The Bitter Lesson states that scaling up the data and model size can outperform expert knowledge in a field of expertise. Instead of precomputing features like “number of meat products bought in the last 8 weeks”, we fed sequences of historical purchases to the model and let it learn the customer representation.