The Evolution of Restaurant Recommendations at Delivery Club. Part 1

Ivan Maksimov21 Mar 2022

Problem

A food delivery app inherited a restaurant feed built in 2017 by an outside team. It was an ML ranker plus business rules ("boosts" for popular, well-rated restaurants, and the last ordered restaurant on top). Offline ML gains stopped turning into business-metric gains in A/B tests, and product managers asked questions the model could not answer: why new users leave after 1-2 orders, why recommendations are not personal, why everyone sees the same top. The feed top was filled with past orders and popular chains.

Example from the article: a single feed had to cover three goals at once, and a classic ALS model trained on the app's data degenerated into either "past orders" or "most popular".

Solution in brief

Map each business question to one ML problem (cold start, exploration, exploitation) and split the single feed into blocks, one problem per block. The first iteration shipped a hand-picked "popular fast food" block and a "You ordered" carousel ranked by a LightGBM model with monotonic constraints.

Questions this case answers
  • How to break out of a local optimum in a ranked feed where one model must serve cold-start, exploitation and exploration goals at once
  • How to serve precomputed per-user, per-location recommendations under a strict latency limit when the key space is too large to store
  • How to get a restaurant feed unstuck when better offline ML metrics no longer move business metrics?
  • How to recommend new and less popular items when a model trained on history keeps ranking the same proven ones on top?

Tools and methods

  • Separate recommendation blocks — one block per problem instead of one multi-goal model
  • Popularity baseline — hand-picked popular fast food chains as a compact block for new users
  • LightGBM — ranks the user's past restaurants for the carousel, with monotonic constraints
  • SHAP — feature importance for the carousel model
  • ALS — tried head-on, degenerated into baselines
Continue reading — it's free

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