Deep Learning based Forecasting: a case study from the online fashion industry

Manuel Kunz, Stefan Birr, Mones Raslan, Lei Ma, Zhen Li, Adele Gouttes, Mateusz Koren, Tofigh Naghibi, Johannes Stephan, Mariia Bulycheva, Matthias Grzeschik, Armin Kekić, Michael Narodovitch, Kashif Rasul, Julian Sieber, Tim Januschowski23 May 2023

Problem

Zalando sets discounts on about 1.6 million articles in 25 European markets. Much of the assortment is ordered before the season and cannot be reordered, so forecasts serve pricing, not replenishment. Demand is long-tailed, much of the catalog is new each season, and sales understate demand whenever sizes run out. A forecast that ignores discount, or reads it with the wrong sign because of confounding, feeds the price optimizer bad inputs.

Example from the article: during the 2022 end-of-season sale, the naive last-week forecast had a demand error of 0.877, while the transformer model had 0.491.

Solution in brief

Train one global transformer on all articles, predicting weekly demand for 26 weeks. Impute true demand from sales and size shares first. Pass future discount straight into an output layer that makes demand a monotone, piecewise-linear function of discount, and score a grid of discount levels for the optimizer.

Questions this case answers
  • How to forecast demand for a large catalog with short histories and a fixed inventory when the forecast feeds a price optimizer
  • How to recover true demand from sales that are censored by stock-outs
  • How to forecast article-level demand when the catalog turns over every season and each article has little history?
  • How to make a demand forecast respond sensibly to price, so a pricing optimizer can use it?

Tools and methods

  • Global transformer encoder-decoder — one model for the whole assortment.
  • Sales-to-demand imputation — size shares fill demand for out-of-stock sizes.
  • Monotonic demand layer — demand rises with discount by construction.
  • Near/far decoders — separate heads for weeks 1–5 and later weeks.
  • LightGBM, DeepAR, naive forecast — benchmarks.
  • Apache Spark and Amazon SageMaker — training and batch prediction pipeline.
Continue reading — it's free

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