Unlocking Experimentation with Helios Recommendation Engine

Samara Xiang22 Oct 2024

Problem

Loblaw Digital serves product recommendations to its retail sites and apps through an in-house engine, Helios Recommendation Engine (HRE), which takes about 8 million calls per day. The engine had no built-in A/B testing. Each experiment needed two new endpoints, gateway integrations and code changes in downstream teams, who ran the test with external tools. Iterations on recommendation models were slow, and every variant needed its own deployment.

Example from the article: the team wanted to test a model that raises recommendation diversity using real-time user interactions, which required a second endpoint and multi-team coordination.

Solution in brief

The team built an experiment layer inside the engine (HRE Experiment, EXPT). A router in front of the control and variant model sets, in one deployment, sends each request to one set. A UI creates, ramps up, stops and promotes experiments. A per-experiment Looker dashboard shows traffic and metrics while the test runs.

Questions this case answers
  • How to run online experiments on ML models served behind a shared API when each variant currently needs its own deployment and downstream integration
  • How to route live traffic between a control and variant model inside one deployment while keeping every user on the same variant
  • How to A/B test a new recommendation model without creating a new endpoint and gateway integration for every variant?
  • How to split recommendation traffic between a control and a variant model inside the serving layer?

Tools and methods

  • Router — splits requests between control and variant model sets behind one endpoint
  • User-based split — assigns users to model sets by unique identifier
  • Traffic ramp-up and one-click stop — starts the variant on a small share, rolls back automatically
  • Experiment artifact — stored configuration with a draft, running, complete, promoted life cycle
  • Kubernetes — runs the Seldon-based recommendation APIs on Google Kubernetes Engine
  • Snowplow, BigQuery, Looker — event tracking, storage and the dashboard
Continue reading — it's free

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