Problem
An e-commerce platform has to decide which articles to hold, when to replenish them and in which warehouse. The catalogue has up to millions of articles, there are dozens of warehouses in several countries, goods rotate in seasonal sales windows, and both demand and shipment lead times fluctuate. The decision repeats continuously, so it must be cheap to recompute, and partners change settings interactively.
Example from the article: ZEOS, Zalando's service for its partners, builds AI-driven replenishment recommendations, and the weekly forecast covers 5 million SKUs (size and colour).
Solution in brief
Replenishment is framed as minimising a sum of storage, lost-sales, overstock, operations and inbound costs. A LightGBM model with Nixtla's MLForecast produces 12-week probabilistic demand forecasts. A second stage feeds forecasts, lead times, costs and stock state into a Monte Carlo simulation, where a gradient-free optimiser picks the stock settings. One algorithm serves a daily batch and an on-demand endpoint.
Questions this case answers
- How to forecast demand for millions of items every week with a lightweight model and a bounded cost
- How to choose stock levels from probabilistic forecasts when demand and supplier lead times are both uncertain
- How to keep batch and real-time versions of one decision algorithm consistent when users change settings interactively
- How to produce weekly demand forecasts for millions of SKUs on a small compute budget?
Tools and methods
- LightGBM with MLForecast — one global gradient-boosted model for weekly demand, lags and transformations generated by the library
- Conformal inference — probabilistic forecasts from the point model
- Monte Carlo simulation with black-box gradient-free optimisers — choose replenishment settings under uncertainty
- Apache Spark, Delta Lake, Databricks — distributed pre-processing of sales and availability history
- AWS — SageMaker training, processing, batch transform and Feature Store, SQS, Lambda
Google or a one-time email code. No password.