Abstract
In the online fashion industry, forecasting demand is a critical operational challenge characterized by high item turnover, fixed inventory constraints, and the need for causal price-response modeling. This paper presents a large-scale Transformer-based forecasting system developed by researchers at Zalando SE. By integrating a global attention-based architecture with a novel "Monotonic Demand Layer," the system moves beyond traditional time-series prediction toward causal "what-if" modeling for pricing and discount optimization. The results demonstrate that the model outperforms standard industry baselines and provides empirical evidence that scaling laws—typically associated with Natural Language Processing—also apply to the domain of demand forecasting.
Introduction
Forecasting in the fashion sector differs significantly from grocery or general retail. The industry operates under a fixed inventory assumption: most stock is ordered months in advance and cannot be replenished mid-season. Consequently, pricing becomes the primary lever for inventory management. If an item underperforms, retailers must apply discounts to clear warehouse space.
To manage this effectively, a forecasting model must navigate several "hard mode" challenges:
- Cold Starts: A significant portion of the catalog is replaced every season, meaning many items have no historical sales data.
- Censored Data: Observed sales do not always equal demand. If an item is out of stock, sales drop to zero even if demand remains high.
- Price Elasticity: The model must accurately predict how demand fluctuates at various discount levels (e.g., 10% vs. 30% off) to inform optimization engines.
Methodology
The researchers deployed a global Encoder-Decoder Transformer architecture. While Transformers are ubiquitous in NLP, their application to fashion forecasting required several industry-specific innovations to ensure stability and economic validity.
Monotonic Demand Layer
The core innovation of this research is the Monotonic Demand Layer. To prevent the model from learning spurious correlations—such as a price increase causing a demand spike—the authors enforced a monotonic relationship between price and demand. They parameterized demand as a piecewise linear function where slopes are constrained to be positive using a Softplus activation. This "bakes in" economic common sense, allowing the model to function as a reliable tool for causal intervention.
Sales-to-Demand Translation
To address the issue of censored data, the model utilizes a Multinomial distribution over item sizes. By observing which sizes are in stock versus which are sold out, the system "imputes" the total latent demand that would have occurred had all sizes been available.
Specialized Decoders and Loss Functions
The architecture employs separate decoders for the "Near Future" (1–5 weeks) and "Far Future" (5–20 weeks). This specialization allows the model to prioritize the high-precision requirements of immediate pricing decisions while still capturing long-term seasonal trends. Additionally, a stabilized loss function—using a third-order Taylor approximation of $e^x$—was implemented to prevent the model from overreacting to outliers during the initial training phases.
Experimental Setup and Results
The study utilized Zalando’s proprietary dataset, encompassing over 1.6 million articles across 25 European markets. The benchmark focused on 10 weeks of data from 2022 for the "Textil" category in Germany.
Performance Benchmarks
The Transformer model was compared against a Naive baseline, LightGBM (tree-based), and DeepAR (RNN-based). The Transformer consistently outperformed all competitors:
- Demand Error: The Transformer achieved a score of 0.449, significantly better than LightGBM (0.489) and DeepAR (0.593).
- Bias: The model exhibited much lower bias (-0.047) compared to LightGBM (0.296), which showed a tendency to over-predict demand.
Scaling Laws and Retraining
A significant finding of the research is the existence of scaling laws in forecasting. As the training set size (number of articles) increases, the demand error continues to drop. The Transformer only begins to significantly outperform naive baselines after a specific data volume threshold is reached, suggesting that global models benefit immensely from the scale of modern retail data.
Furthermore, the authors noted that model accuracy degrades quickly in the fast-paced fashion environment. A model that is not retrained for five weeks loses measurable accuracy, justifying a weekly retraining schedule in production environments.
Discussion and Future Work
While the Transformer-based system represents a significant leap forward, several areas for improvement remain:
- Probabilistic Forecasting: The current system provides point forecasts; moving toward predicting a distribution of demand is a high priority.
- Cross-Item Effects: The model currently treats items in isolation, failing to account for "cannibalization" where a discount on one item reduces demand for a similar competitor.
- Intermittency: Explicitly modeling the "zero-inflated" nature of fashion sales—where most items do not sell on most days—remains an open challenge.
Conclusion
By combining the high capacity of Transformer architectures with specific inductive biases like the Monotonic Demand Layer, Zalando researchers have created a system that is both a powerful predictor and a causal modeling tool. This work demonstrates that with sufficient data and the right structural constraints, deep learning can solve the most complex forecasting problems in the fashion industry.
Summary updated