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

Manuel Kunz, Stefan Birr, Mones Raslan, Lei Ma, Zhen Li, Adèle Gouttes, Mateusz Koren, Tofigh Naghibi, Johannes Stephan, Mariia Bulycheva, Matthias Grzeschik, Armin Kekic, Michael Narodovitch, Kashif Rasul, Julian Sieber, Tim JanuschowskiarXiv 2023 · DOI

TL;DR

This paper presents a deep learning-based demand forecasting model for the online fashion industry, specifically addressing challenges like high catalog turnover and fixed inventory. Their novel approach utilizes a transformer architecture with a specialized monotonic demand layer to accurately predict demand based on future discounts, crucial for optimizing pricing strategies.

What Problem Does This Paper Address?

The online fashion industry presents unique challenges for demand forecasting. Unlike more stable markets, fashion has a high volume of data, frequent catalog updates (cold start problems), and a fixed inventory assumption. This means that items are ordered in advance and cannot be replenished, making accurate forecasting critical for managing inventory and optimizing pricing to avoid overstocking. Traditional forecasting methods struggle with these complexities, particularly the need to understand how price (discounts) influences demand in a causal way for downstream decision-making.

Methods

The core of the proposed solution is a deep learning model based on the Transformer architecture. Key innovations include:

  • Global Forecasting Model: A single model trained on the entire Zalando article assortment to provide article-specific predictions.
  • Encoder-Decoder Architecture: This is well-suited for handling covariates that are available in the past but not in the future (e.g., historical stock) and those that are only available in the future (e.g., planned discounts).
  • Specialized Decoder: The decoder is split into two parts: a short-term horizon (first 5 weeks) and a long-term horizon (up to 20 weeks). This is because pricing decisions are more critical and frequent in the near future.
  • Monotonic Demand Layer: This is a crucial component that enforces a monotonic relationship between price (discount) and demand. It uses a piecewise linear function to model how demand increases as discounts increase, ensuring that the model's predictions are economically sensible and directly usable for pricing optimization.
  • Sales to Demand Translation: Since only sales data is directly observable, the paper describes a method to impute demand by considering article sizes and stock availability, using a multinomial distribution assumption.

Datasets

The paper uses internal Zalando data for training and evaluation. This data includes:

  • Millions of articles across 25 European markets.
  • Historical sales data, discount levels, stock information, and various categorical and numerical covariates.
  • The paper does not introduce new public benchmarks but rather uses its extensive internal dataset to demonstrate the effectiveness of its approach.

Key Insights and Ideas

  • Transformer Architecture's Suitability: The Transformer's ability to capture complex temporal dependencies and its scalability make it a strong candidate for the large-scale, dynamic nature of fashion demand forecasting.
  • The Importance of Causal Relationships: For pricing decisions, understanding the causal link between discounts and demand is paramount. The monotonic demand layer directly addresses this, moving beyond simple correlation.
  • Near vs. Far Future Forecasting: Differentiating the forecasting horizon is critical. The near future (where pricing decisions are made) requires higher accuracy and a specialized model component.
  • Scaling Laws in Forecasting: The paper provides early evidence that transformer models exhibit scaling laws in forecasting, meaning their performance improves with more training data, similar to observations in NLP.

Key Results

  • The proposed transformer-based model outperforms naive forecasting, LightGBM, and DeepAR in terms of demand error and RMSE.
  • Specifically, the transformer model achieved a demand error of 0.449 and an RMSE of 9.588, outperforming other methods in the first-week forecast.
  • The model demonstrates stable performance even during periods of high demand variation, unlike the naive forecaster.
  • The model is capable of generating demand predictions for 14 countries across a range of discount levels and a 26-week horizon.

Limitations and Future Work

  • Causal Forecasting: While the model incorporates a monotonic relationship, a more comprehensive causal treatment of price/discount and demand is an area for future work.
  • Cross-Item Relationships: The current model forecasts each item independently, ignoring potential cross-item dependencies or hierarchical structures in the data. Extending to multivariate or hierarchical forecasting is suggested.
  • Intermittency: While the paper mentions handling intermittency, further direct methods for this are noted as future work.
  • Retraining Frequency: Experiments suggest that weekly retraining offers the best accuracy, highlighting the dynamic nature of the problem.
  • Data Scarcity: The paper acknowledges that their datasets, while large, are still humble compared to those used in NLP, and further exploration with more data is warranted.

Summary updated

BibTeX
@misc{kunz2023deep,
  author = {Manuel Kunz and Stefan Birr and Mones Raslan and Lei Ma and Zhen Li and Adèle Gouttes and Mateusz Koren and Tofigh Naghibi and Johannes Stephan and Mariia Bulycheva and Matthias Grzeschik and Armin Kekic and Michael Narodovitch and Kashif Rasul and Julian Sieber and Tim Januschowski},
  title = {{Deep Learning based Forecasting: a case study from the online fashion industry}},
  year = {2023},
  eprint = {2305.14406},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.14406},
}
Figure