AI forecasts and an optimizer set Zalando's markdown prices
Zalando sets markdown discounts across its fashion catalog with a transformer that forecasts demand at every discount level and an optimizer that picks the most profitable ones within management's targets.
ZalandoGermanyE-commerce and marketplacesIn production since 2019
- Scale
- All 600,000 products in 14 countries, as of June 2026
- Scenario
- Markdown pricing optimization
- Business function
- Sales and marketing
- Kind of solution
- Forecasting and planning
- Who built it
- Built with a partner (MIT Data Science Lab and Amazon Web Services)
- Where it runs
- Public cloud
- Human oversight
- Acts under watch
- Organization
- Enterprise
- AI types
- Machine learning, Optimization
- People served
- approximately 52 million
- Sites
- 14
- Unit cost
- approximately 275 US$
tl;drAn optimizer upgrade lifted Zalando's PC2 profit by an observed EUR 5.8 million a week.See the results
Zalando, the Berlin online fashion retailer, lets algorithms set the markdown prices on the vast majority of its products3, 11. A transformer-based demand forecasting model predicts how each article would sell at every discount level1. A mixed-integer price optimizer then picks the discounts that earn the most long-term profit within targets that management sets for each country2.
The forecast has run since 2019 and the optimizer roughly since 20211, 2. In June 2026, Zalando’s pricing scientists described the weekly system as still covering all 600,000 products across 14 countries10.
Zalando’s researchers changed how the optimizer searches for a solution2. Over the next 10 weeks, PC2 rose by an observed EUR 5.8 million a week, in results published in February 20252. PC2 is the company’s accounting measure of revenue minus the cost of sales and fulfillment. The expected effect was EUR 1.56 million, the improvement the optimizer computed by comparing its results with and without the heuristic2.
Before the deployment
Much of Zalando’s stock is bought well ahead of the season and can’t be reordered once the season is under way1. A grocer forecasts demand to know what to reorder, but for this stock the forecast’s main job is pricing1. Price is the retailer’s lever against ending the season overstocked1.
Markdown pricing at Zalando faced the following problems:
- Risk in both directions: Leftover stock runs up costs after the season, and too little stock sends customers to competitors4. Discounting too hard gives away margin on items that would have sold at a higher price6.
- Returns: In most countries, customers get a 100-day free return. A returned item that passes quality control goes back into stock to be sold again3.
- A large, sparse catalog: In 2021, Zalando was active in 25 European markets and had 1.6 million articles on its platform1. Most articles don’t sell on most days, and a large part of the range is renewed each season, so many items have little or no sales history1.
- Short decision windows: Zalando re-optimizes prices for its whole assortment several times a week2. Each window runs from the arrival of the latest data to the commercial steering meetings, typically a few hours2.
- Conflicting goals: Trading teams tend to chase the short-term revenue they can measure, while leadership wants credible estimates of long-term profit6.
At that scale and speed, people can’t oversee each price, so the main operational decisions are fully automated2.
What was built
The solution forecasts how each article would sell at each discount, picks the discounts, and feeds the new sales back into the forecast4. By default, the algorithm’s price is the price, and people steer it through targets and overrides11. The work is divided as follows:
- Forecasting models: Forecast, for each article, demand at different discounts, the share of sold items that customers return, when returns come back into the warehouse, fulfillment costs, and the price after the season4.
- Price optimizer: Maximizes profit as a function of discount, subject to business and stock constraints4. Its discounts go into the shop unless pricing managers overwrite them4.
- Management: Sets targets per country and product category, such as an average discount rate or a gross merchandise volume2, 3. The targets enter the optimization as linking constraints, so called because each one depends on every article at once2.
- Category managers: Oversee a smaller part of the assortment. Once the algorithm has priced a product, they can propose a different discount11.
- Pricing managers: Approve or reject the proposals in batches that can hold thousands of products11. They check only whether the implied overall discount level fits each country’s business constraints, and they’re responsible for reaching the financial targets, not the tool11, 12.
Interventions usually happen once a week, and they never raise a price11.
Other rules encode how Zalando wants to trade:
- Selling during sales periods: The model has to keep selling during a sales period even when holding stock back would earn more5.
- First come, first served: Stock goes to whoever orders first, whatever their country3.
- Safety guardrails: A maximum week-on-week price change and a maximum discount rate stop the algorithm from making sudden or drastic changes on the strength of uncertain forecasts11.
- Infeasible targets: Incompatible business targets can make the optimization infeasible. The system then has to recommend adjustments to them5.
Changes to pricing are measured with A/B tests, which the pricing team sets up so that no customer is discriminated against through different prices5. Prices differ by time and country, but Zalando doesn’t personalize them, so its experiments randomize articles rather than customers11.
Alternatives considered
The team tested its choice against alternatives at three points:
- Forecast model: The team compared the transformer with a naive forecast that repeats the last observation, a LightGBM tree model, and the DeepAR recurrent network1. LightGBM came close on error and trained much faster, but it showed a significantly higher bias1.
- Cut generation: Cuts are the extra constraints that narrow the optimizer’s search for the right multipliers. The researchers compared random cuts, a feasibility heuristic, partial aggregation, and a maximum violation heuristic, and the maximum violation heuristic performed best2.
- Batch inference: Zalando and AWS Professional Services chose SageMaker Processing jobs over two other options4. The inference is embarrassingly parallel, so Spark on Amazon EMR only added communication overhead between nodes, and SageMaker batch transform jobs have a 100 MB payload limit that the data partitions exceeded4.
Rollout
The system reached production a layer at a time, with the forecast first and the optimizer after it1, 2. Zalando developed the optimizer’s Lagrangian design with MIT’s Data Science Lab and published it with the lab in 2021, along with offline tests and field experiments3.
Technology and architecture
The following table lists the parts of the solution.
| Layer | What they used | Role | Source |
|---|---|---|---|
| Forecasting model | Transformer-based demand forecasting model | Weekly demand per article and country at each discount level | 1, 10 |
| Forecasting model | Return rate and return time forecasts | Share of sold items returned and when they’re back in stock | 3, 4 |
| Forecasting model | Fulfillment cost and residual value forecasts | Shipping and return costs, and the price after the season | 4 |
| Data preparation | Sales-to-demand imputation | Fills in demand lost to out-of-stock sizes before training | 1 |
| Optimizer | Mixed-integer price optimizer with Lagrangian decomposition | Each article’s discounts within the country targets | 2, 3 |
| Machine learning platform | Amazon SageMaker | Training jobs and batch inference in processing jobs | 1, 4 |
| Model deployment | Amazon SageMaker Model Registry | Model versions; inference uses the latest approved one | 4 |
| Workflow engine | AWS Step Functions | Orchestrates training, versioning and inference, generated with Zflow | 4 |
| Event stream | Amazon EventBridge | Starts the workflows when new data arrives | 4 |
| Data platform and storage | Amazon S3 | Input and output data, and model artifacts | 4 |
| Monitoring | Amazon CloudWatch | Logs, monitoring and metrics for Zalando’s alerting | 4 |
| Compute and servers | AWS C5 instances | The per-article optimization problems in parallel | 2 |
Data inputs
The forecast uses the following data:
- Sales, discount, and price history: Weekly history per article and country, spanning multiple years and markets4.
- Article features: Brand and commodity group describe the article1. The black price, the recommended retail price an article starts at, is the reference every discount is measured from1.
- Stock and stock uplift: A stock signal shows when sales fall short of demand because sizes ran out1. Stock uplift is the stock that supplier deliveries and customer returns add1.
Demand forecast
The demand forecast is a single global encoder-decoder transformer, trained on the whole assortment1. It returns weekly demand for every article for 26 weeks ahead, for all of Zalando’s markets at once1. The encoder reads an article’s observed history, and the decoder takes the covariates known for the weeks ahead1. The design adds the following parts:
- Near-future decoder: A separate decoder covers the first 5 weeks, because pricing decisions are taken for the first forecast weeks1. It isn’t autoregressive, so it treats the weeks ahead as independent, an assumption made to keep the downstream pricing models simple1.
- Monotonic demand layer: Future discounts skip the encoder and decoder and go straight to a final layer that makes demand a piece-wise linear, monotonically increasing function of discount1. The layer exists because confounding in the data produces counterintuitive demand and discount curves1. A deeper discount can never forecast lower demand.
- Sales-to-demand imputation: Uses each article’s learned split of demand across sizes to fill in what out-of-stock sizes would have sold1. The model trains on that imputed demand, with periods of zero stock masked out1.
Each prediction run produces a demand grid, with forecasts for 14 countries at discounts from 0 to 70% in steps of 5 percentage points1. The model is retrained every week, the schedule that tested best1.
Forecasting pipeline
The pipeline around the forecast models is event-driven and runs on AWS4. Zalando built it with AWS Professional Services as a blueprint that it reuses for similar use cases4. The stack table lists its parts, which work as follows:
- Triggers: When new data lands in Amazon S3, Amazon EventBridge starts the training or the inference workflow in AWS Step Functions4.
- Deployment: Zalando writes the workflows with Zflow, its own Python SDK on the AWS Cloud Development Kit, and Sunrise, its CI/CD tool, deploys them4.
- Release: The team checks each new model against predetermined requirements before approving it in the model registry. Batch inference always uses the latest approved model4.
- Monitoring: Amazon CloudWatch logs and monitors the runs and forwards metrics to Zalando’s internal alerting tool4. Live sales are compared with the forecasts, with alarms on any deterioration, and the input data is watched for distribution shifts1.
- Testing: Model changes pass a suite of test scenarios on accuracy and on training and inference speed1.
Price optimizer
The full pricing problem is far too large for off-the-shelf solvers2.
Lagrangian relaxation moves the linking constraints into the objective with penalty multipliers, which leaves one independent problem per article2. A cluster of around 1000 cloud cores then covers the assortment2.
How one markdown cycle flows through the system
Recommendations go out at least twice a week, and the time from setting targets to delivering results should usually not exceed 3 hours2. One cycle runs as follows:
- New sales and price data reach the forecasting pipeline. The pipeline retrains, checks, and approves a model and produces the demand grid1, 4.
- The optimizer takes the grid and the country targets and solves every article2.
- A cutting-plane procedure adjusts the multipliers, and each iteration means solving every article again2. One iteration takes 3 to 12 minutes, even on a very large cluster2.
- Time and budget cap the search at 10 to 15 iterations2. Since the 2025 upgrade, the maximum violation heuristic combines solutions already found into extra valid cuts, at much less computing cost than solving the whole assortment again2.
- The solutions still commonly violate the linking constraints. A final mixed-integer program picks one of the solutions found for each article, so that the assortment ends close to the optimum with as few violations as possible2.
- The optimizer’s discounts go to the shop4, 11.
- Category managers see the algorithmic price and might propose a deeper discount. The discount reaches the shop only once a pricing manager approves the batch it belongs to11.
Results
The headline figure, published in February 2025, covers one change to the optimizer, the maximum violation cut heuristic2. The following table lists the published results.
| Metric | Before | After | Scope and timeframe | Reported by |
|---|---|---|---|---|
| Weekly PC2 profit | Counterfactual forecast without the new heuristic | EUR 5.8 million observed weekly effect, EUR 1.56 million expected | 10 weeks after the switch, p=0.0001 | Zalando researchers, measured2 |
| Weekly gross merchandise volume | Same counterfactual | EUR 7.9 million observed weekly effect, not statistically significant | Same 10 weeks, p=0.18 | Zalando researchers, measured2 |
| Long-term profit | Optimizer without the new heuristic | About EUR 27 million over eight weeks, projected to EUR 175 million a year | Simulations from 8 start dates | Zalando researchers, projected2 |
| Price-weighted demand error | 0.489 (LightGBM), 0.603 (naive forecast) | 0.449 (transformer) | First forecast week, 10 weeks in 2022, German Textil sales | Zalando researchers, measured1 |
| Profit on articles where poorly rated overrides were blocked | Overrides applied | 237% higher | 32,897 products in 12 countries, 15 days | Zalando and Max Planck researchers, measured11 |
| Engineer time on operations | Not disclosed | 3 to 4 hours saved per ML model per week | After the MLOps rebuild | AWS and Zalando, projected4 |
The metrics need the following explanation:
- Weekly PC2 profit and gross merchandise volume: Long-term profit, the optimizer’s own objective, can’t be observed over a few weeks, so the researchers tracked PC2 and gross merchandise volume (GMV) instead2. Unrelated A/B tests ran at the same time, so a Bayesian structural time-series model, trained on the 25 weeks before the switch, forecast the counterfactual instead of a head-to-head test2.
- Blocked overrides: Zalando blocked the overrides that its margin metric predicted would perform poorly, without the category managers knowing11. Prices rose 30%, sales fell 65%, and revenue fell 60%11.
- All overrides blocked: A second experiment blocked all overrides on 650,000 products in eight countries for 13 days11. On the articles that had an override, sales fell 39% and revenue 38%, and across the whole sample there was no significant effect on profit11.
Later work around the weekly system adds the following results:
- Relative SLV efficiency: Stock Lifetime Value (SLV), which Zalando’s researchers proposed in July 2026, is the expected profit of current stock through the end of its selling life6. An improved return rate forecast raised relative SLV efficiency by 0.9% in a 3-week A/B test in 24 markets6. The test ran on a design with a weighted-sum objective rather than the weekly system’s constraints6.
- Sales-campaign profit: A separate daily tool for sales campaigns uses LightGBM forecasts, takes its estimate of future profit from the weekly system, and now handles most algorithmic pricing for those campaigns10. It raised profit contribution by 6% over the previous mix of algorithm and manual pricing across 23 A/B tests in 12 markets during 2023 and 202410.
Lessons learned
All figures are Zalando’s own account, from papers by Zalando staff, mostly preprints, and from an AWS post co-written with Zalando. The override study has one outside author, at the Max Planck Institute for Human Development, but its data and experiments are Zalando’s11. The EUR 5.8 million comes from the live system, measured against a counterfactual, and it beat the expected effect2.
The forecast’s error metric misses accuracy on low and sparse sellers, which are most of the catalog, because a small portion of the data drives it1. The pricing team names niche articles and jeans, whose many sizes behave like separate articles, as hard to predict1, 5. The model also gives a point forecast with no range around it, which its authors call clearly not best practice1.
In the years after the optimizer went live, unfavorable situations occasionally stopped it from converging, which motivated the new heuristics2. The search is still capped at 10 to 15 iterations, far fewer than a problem of this size would usually need2. If a weekly training run fails, a model with outdated data generates the forecasts, which hits revenue directly4.
The randomized override experiments found that overrides rated well added profit, while blocking the worst-rated ones raised it11. The researchers conclude that neither unguarded interventions nor blocking them all is good for the business11. Interviews with managers suggest that a lack of algorithmic transparency drives some of the distrust behind interventions11.
In a September 2024 talk, Adèle Gouttes said best-sellers are never highly discounted and low-sellers get very high discounts12. The training data is therefore biased, so in her view the model should be causal12. She presented feeding country targets to the optimizer as “the deprecated way”, because the full matrix of targets might not be reachable, conflicts need arbitration, and it imposes a slow cadence12. The June 2026 paper still describes the weekly system with its constraints10.
Revenue can mislead. In a 2024 test that added 20 percentage points of discount to 9,705 slow-moving articles, revenue rose while profit declined substantially6.
The sizes that the sources give most likely measure different things at different dates, such as articles against article-country pairs. The priced assortment is more than 1 million products in the AWS post4, about 900K articles in the 2024 talk12, around 500,000 of close to 2 million articles in the 2025 optimizer runs2, and 600,000 products in 20266, 10. One demand grid is up to 5.5 billion records in 2023, against approximately 10 billion forecast records in 20241, 4.
Case study scorecard
- EUR 5.8 million observed weekly PC2 profit effect of the optimizer upgrade2
- EUR 175 million projected yearly long-term profit gain from the same upgrade2
- 0.449 price-weighted demand error of the transformer forecast1
- Source quality: 69%, High quality. Rests on a preprint.
Sources by publication date
- Organization 2
- Vendors and partners 1
- Press, academic, and regulators 9
Build this solution yourself
Analysis
What you need
To build this solution, you need the following in place:
- Article-level history across markets: Zalando had years of history that tied price, discount, stock, and sales together, because a model can only learn how demand responds to price from discounts it has seen1. Even then, the model learns from Zalando’s own past choices12.
- Operations-research skill beyond a forecasting team: At catalog scale, the optimizer depended on Lagrangian decomposition and custom heuristics that off-the-shelf solvers couldn’t replace2.
- A measure of profit over a season: Zalando needed a way to measure profit over a season rather than this week’s revenue, and it’s still refining that measure6.
Reference architecture
Forecasting and planning
A forecasting and planning solution predicts demand, supply, load, or events from history and outside data, and turns the prediction into a plan such as orders, prices, stock positions, reserve, or crews. Each cycle, forecasting models turn fresh data into a forecast, and an optimizer can turn it into a proposed plan within set targets and limits. Planners decide and enter the plan in the operational system, or they steer an automatic plan through targets and overrides.
- Data feeds and connectors
- Data platform (documented in this case study)
- Data preparation (documented in this case study)
- Forecasting models (documented in this case study)
- Optimizer (documented in this case study)
- Approval rules
- Simulation or digital twin
- Task agents
- Planning workspace
- Operational system
- Training pipeline
- Forecasting and planning platform
A check mark shows a building block that this case study's sources document.
Open the reference architectureOthers who built it
- ASOS deployed two markdown systems, Ithax and Promotheus, which beat its operations teams’ manual decisions on profitability by 79% and 86% in a controlled online test7.
- Myntra, an Indian fashion retailer, predicts next-day demand at each discount and picks prices with linear programming, and its A/B tests showed revenue up 1% and gross margin up 0.81%8.
- Airbnb predicts the booking probability of each listing-night and then a suggested price, which powers the Price Tips and Smart Pricing tools for hosts9.
In the library
- AI agents draft production plans at Siemens' Erlangen plant Siemens
- Walmart plans inventory with AI forecasts and a digital twin Walmart
- Albertsons puts AI replenishment in every fresh department Albertsons Companies
- De Rooy predicts unplanned pickups with machine learning De Rooy Transport
- AstraZeneca calibrates transit lead times with Aera's AI AstraZeneca
- LNER's machine learning tool flags trains at risk of delay LNER
Cite this case study
Enterprise AI Case Studies. "AI forecasts and an optimizer set Zalando's markdown prices." Updated Nov 19, 2026. https://case-studies.ai/case-studies/process-automation/PA-008-dynamic-pricing-optimization/
@misc{csai-pa-008,
author = {{Enterprise AI Case Studies}},
title = {{AI forecasts and an optimizer set Zalando's markdown prices}},
year = {2026},
note = {Updated 2026-11-19},
url = {https://case-studies.ai/case-studies/process-automation/PA-008-dynamic-pricing-optimization/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
Deep Learning based Forecasting: a case study from the online fashion industry
Supporting excerpts (65)
a meaningful part of the inventory arrives at the beginning of a season (having been ordered much ahead of the season) and it cannot be re-ordered throughtout the season
for this non-reorderable part of the assortment, forecasting is not primarily used for replenishment
use-cases as is the case in say, grocery
a primary use-case for forecasting is pricing/discounting
Forecasting provides the input for a down-stream mixed integer optimization problem that sets the prices
pricing presents a major lever to reduce the risk to be overstocked at the end of the season
the prominence of cold start problems (a large part of the catalogue is renewed each season) and short history
It has been in use at Zalando in different versions since 2019
Zalando is active in 25 European markets
with >50M active customers
This amounts to 1.6 million articles on the Zalando platform (as of Q3 2021)
Most articles do not sell on most days
used to provide article specific predictions on a weekly time resolution for a horizon of 26 weeks
our forecast is used to decide on the discounts applied to each article
we forecast all markets in which Zalando is active in simultaneously
For the demand forecast model we rely on an encode/decoder
Encoder handles the observational time series, decoder incorporates the future covariates.
The static-global covariates Brand and Commodity Group categorize an article.
The Black Price is the recommended retail price and the initial price an article receives.
we have a stock signal available which indicates when sales are strictly less than demand because no stock is available
We then use the learned pi to translate sales to demand, and we use this imputed demand in model training.
not only zero padded values are masked out but also all data points with zero stock availability
The Stock Uplift expresses for each time unit the increase in stock of an article, caused by supplier deliveries or customer returning their pruchase.
our down-stream application requires particular focus on the first forecast weeks for which the pricing decisions are taken
We set 5 week as the threshold for near future
the decoder is non-autoregressive, allowing to compute each future state in parallel
The independence assumption between future weeks was made in order simplify the downstream pricing models
the underlying causal mechanism is subject to confounding, resulting in counter intuitive demand and discount curves
as a piece-wise linear and monotonically increasing demand response function in the monotonic demand layer
Future discounts are directly provided to the output (Monotonic Demand) layer, skipping decoder and encoder.
The demand forecast model generates article level demand predictions for 14 different countries in the price range of 0 to 70% discount in 5 percentage point discount steps
The demand grid results in a large data batch with up to5.5 × 109 records
the model first loads the specific features of one article like demand and price history
the down-stream price optimizer then selects an article specific future price trajectory that maximizes the achievable profit of the individual article in the bounds of certain business rules like stock levels and maximum discount steps
In total, the model contains approximately 5.3 × 107 trainable parameters.
A standard time to train the model is about 45 hours on a four GPU instance (ml.g4dn.12xlarge) at a cost of approximately 275 US$
We use a standard forecasting system set-up combining Spark and Amazon SageMaker
We weight this by black price
to place a higher importance on more expensive articles as a proxy for the overall value for Zalando
a metric that resembles the RMSE more closely will have the best result with respect to the downstream pricing application
We also experimented with (weighted and scaled) versions of more common accuracy metrics, like MAPE and MAE
the error is largely driven by a small portion of the data
forecast accuracy on articles with low and sparse demand (which is the majority of our articles) is not adequatly adressed by these metrics
we compare the model described above with a naive forecast that simply repeats the last observation
the autoregressive recurrent neural network DeepAR
For the experiments, we chose 10 weeks in 2022, using all sales data from Germany from the category Textil.
measure the performance of the predictions for the first week
Naive Forecaster 0.603 0.135 0.079 0.161 11.754 4.038 0.088 0.011
lightgbm 0.489 0.066 0.296 0.127 9.737 2.941 0.142 0.005
Transformer 0.449 0.04 - 0.047 0.064 9.588 2.725 0.081 0.007
While tree based models seem to be a close competitor in terms of demand error and were much faster to train, we saw a significantly higher bias.
During the end of season sale in 2022 for example we observed a demand error of0.877 for the naive forecaster while our transformer model reached a much more stable demand error of0.491
we have extensive monitoring metrics that compare incoming live sales data with our forecasts and alarm us, if we observe a deterioration in practice
a deployment pipeline is used with a large suite of test scenarios that cover aspects such as accuracy or training & inference speed in a variety of scenarios
we monitor the input data distribution to scan it for distribution shifts
a weekly retraining scheme offers best results
the most important artefact are discount decisions
We are only at the start of the journey to understand how forecast accuracy changes attribute to price changes
Note that the approach described here is a point forecast. While clearly not best practice
partially remediates this methodological short-coming
We are in fact most interested in causal or counterfactual forecasts
We want to especially thank Tofigh Naghibi
who inspired the team to apply neural networks to our time series forecasting problem back in 2017
contributed the first working prototype of the transformer based forecasting model
When we launched it in 2019
- Source 2:
Supporting excerpts (45)
The large assortment necessitates a high degree of automation so that human oversight cannot be guaranteed for both scale and response time requirements. Key operational questions are hence fully automated.
in the years since the deployment of this solution in production, roughly since 2021, there were occasional repercussions from unfavourable practical situations that led to non-convergence of the solution
our approach allows to improve revenue by 3%–6% and profit by 2%–5% for our show case Zalando SE
close to 2 million articles in its assortment
For a single article, the model contains up to 10 000 variables (5 000 binary) and 10 000 constraints.
Typical examples are targets for an average discount rate or a gross merchandising volume, both aggregated over each country.
These targets are often referred to as linking constraints, as they depend on all articles.
consider the average discount rate over all articles per given country which we typically constrain to a certain range as a leverage for business leaders to steer prices
the pricing problem is prohibitively large for off-the-shelf solvers
By relaxing the linking constraints, we end up with one independent optimization problem per article
throughout a week, Zalando needs to re-optimize prices several times for its entire assortment of several hundred thousands of articles
The window for taking the markdown pricing decision is determined by the time when the most recent data becomes available and commercial steering meetings. This is typically a few hours.
a single article's optimal long-term profit can be computed well below 10 seconds on a single machine
a cluster of machines which provides around 1000 cores, provisioned by a cloud provider
use a Cutting Plane procedure
a single new cut requires all subproblems of the entire assortment to be solved
it's crucial to aim for a small number of iterations to reach convergence
in practice the solutions commonly violate the linking constraints
we use a MIP in order to provide a solution close to the optimum with only a minimal amount of constraint violations
we investigate heuristic methods to obtain valid cuts with less overhead
The core of our idea is to efficiently combine past found solutions
We report results here on a subset of the assortment for around 500,000 articles (depending on the exact time of the season), and for 14 countries
Updated pricing recommendations are delivered at least twice a week
with 48 linking sales-weighted discount rate (sDR) constraints submitted as targets (24 lower and upper bounds each)
the turn-around time between the setting of targets and the delivery of results should usually not exceed 3 hours
the time to solve the Lagrangian relaxation once remains at 150-700 CPU hours (using AWS C5 instances
Even after parallelization over very large clusters the time to complete one iteration is therefore 3-12 minutes.
we are limited to 10-15 iterations, a number that is far below the number of iterations one might usually expect
Applying the feasibility heuristic is also effective in generating useful additional cuts, but less so.
Random cuts are not effective
concluded that the maximum violation heuristic strategy is performing the best
For a gap of 0.01%, the geometric mean of solving times for the partially aggregated strategy is 48 s, while the maximum violation strategy takes less than 2 s.
PC2, which is a company accounting metric, that measures revenue minus the combined cost of sales and
Testing the improvement for 8 different dates
Our simulation indicates that using our suggested strategy could lead to a long term profit-increase of about 27M € in eight weeks, which projects to 175M € per year.
the minimal risk of solution deterioration
have convinced us and the responsible stakeholders to implement the maximum violation heuristic in Zalando's production environment
Due to parallel, unrelated AB tests, we were unable test the improvements through direct comparisons, and instead opted to follow the improvements using causal impact analysis
we select predictors that can be used to train a Bayesian structural time-series model to forecast the variables of interest
Since long term profit (the immediate objective in our markdown optimization) is not directly measurable over short observation horizons
We chose to use 25 weeks prior to treatment (the application of the maximum violation heuristic) for training of the time-series model and monitored the effect of treatment for 10 weeks.
As covariates for the time-series model we chose the respective predictions of the markdown optimization model without the maximum violation heuristic for PC2 and GMV.
we see an improvement in PC2 in the treatment period (p=0.0001, observed weekly effect: 5.8M €, expected effect 1.56M €)
orange are the effects comparing optimization results without heuristic to those with heuristic
an effect on GMV that is not significant, but consistent with expectations (p=0.18, observed weekly effect: 7.9M €, expected effect: 16.7M €)
- Source 3:
Large-Scale Price Optimization for an Online Fashion Retailer
Supporting excerpts (13)
optimize price discount decisions over a large number of products in multiple countries on a weekly basis
Zalando's objective is to set discount levels to maximize total profit over the entire selling horizon while taking into account both local and global business constraints
Zalando needs to balance sales across different countries and over different weeks while adhering to a first-come-first serve policy
as long as product inventory exists, a customer is served independent of the customer's origin country or time of arrival
Global constraints refer to specific targets set by management for different product categories and each country.
we cluster products into groups that behave similarly
we decompose this problem using Lagrangian relaxation into a problem for each product (SKU)
which was implemented as part of Zalando's price discount decision process, we provide results from offline tests and field experiments to demonstrate its benefit
for most of the countries the customers enjoy a 100-day free return after the purchase
if they pass the quality control, are coming back in the stock and can be sold later
The so-called return rate model predicts the probability that a given cSKU is returned, and a return times model that predicts when a given return is expected to arrive.
MIT Data Science Lab, Massachusetts Institute of Technology, Cambridge, MA, USA
Zalando SE, Berlin, Germany
- Source 4:
How Zalando optimized large-scale inference and streamlined ML operations on Amazon SageMaker
Supporting excerpts (35)
This post is cowritten with Mones Raslan, Ravi Sharma and Adele Gouttes from Zalando.
Zalando faces the challenge of regular (weekly or daily) discount steering for more than 1 million products, also referred to as markdown pricing.
An overstock situation would lead to high costs after the season ends, and an understock situation would lead to lost sales because customers would choose to buy at competitors.
Demand – How many items will be sold in the next X weeks for different discounts?
Return rate – What share of sold items will be returned by the customer?
Return time – When will a returned item reappear in the warehouse so that it can be sold again?
Fulfillment costs – How much will shipping and returning an item cost?
Residual value – At what price can an item be realistically sold after the end of the season?
Use the forecasts from Step 1 as input to maximize profit as a function of discount, which is subject to business and stock constraints.
Discount recommendations determined in Step 2 are incorporated into the shop or overwritten by pricing managers.
Updated shop prices lead to updated demand. The new information is used to enhance the training sets used in Step 1 for forecasting discounts.
the predictive models at Zalando range from simple statistical averages, over tree-based models to a Transformer-based deep learning architecture
inference over several billions of records containing weekly data spanning multiple years and markets to produce forecasts
discount steering of more than a million items every week requires generating a large amount of forecast records (approximately 10 billion)
Zalando's commercial pricing team expects results according to defined service level objectives (SLOs)
If an ML model training or inference fails in any given week, an ML model with outdated data is used to generate the forecast records. This has a direct impact on revenue for Zalando
The solution was built in a recent collaboration between AWS Professional Services
The result of the collaboration is a blueprint that is being reused for similar use cases within Zalando.
the required inference operations exhibited embarrassingly parallel characteristics
we decided against using Spark on Amazon EMR, which involved additional overhead for inter-node communication
Batch transform jobs have a hard limit of 100 MB payload size, which couldn't accommodate the dataset partitions.
decided to use an Amazon SageMaker Processing job
Sunrise is Zalando's internal CI/CD tool
AWS Step Functions orchestrates the entire ML workflow
S3 buckets serve as the data store, holding input and output data as well as model artifacts
Amazon SageMaker Model Registry provides a centralized repository for organizing, versioning, and tracking models
Amazon CloudWatch handles logging and monitoring, forwarding the metrics to Zalando's internal alerting tool
we used Zflow, a Python-based SDK developed by Zalando that uses the AWS Cloud Development Kit (AWS CDK) to create Step Functions workflows
It uses SageMaker training jobs for model training, processing jobs for batch inference, and the model registry for model versioning.
All the components are declared using Zflow and are deployed using CI/CD (Sunrise)
On the arrival of data, Amazon EventBridge invokes the training workflow
the team verifies the model properties against the predetermined requirements. If the model meets the criteria, it's approved for inference.
the inference pipeline will point to the latest approved version of that model group
When inference data is ingested on Amazon S3, EventBridge automatically runs the inference pipeline.
Templatization and automation is expected to provide engineers with weekly savings of 3–4 hours per ML model in operations and maintenance tasks.
- Source 5:
Applied Methods from Mathematical Optimization and Machine Learning in E-commerce
Supporting excerpts (9)
The workshop took place October 6-7, 2022 at the Zalando Headquarters in Berlin.
Even with a proven machinery that manages to recommend millions of discounts under given business targets, many pitfalls have to be circumvented.
The demand for niche articles, typically with just few sales per month, is hard to predict accurately.
articles with many sizes, e.g. jeans with many length and width combinations, can behave like multiple separate articles
the model has to sell to customers in a sales period even if it would be more profitable to keep items now for sales in the future
Without them, it could be proposed to take an article offline for a certain period or prefer to sell stronger in countries where shipment costs are lower.
some optimization problems can be infeasible through incompatible business targets and require adjustment recommendations
Matching competitors' prices, incorporating sales events and warehouse capacities are crucial in order to recommend profitable discounts.
Ultimately, the impact has to be measured via A/B testing. When it comes to pricing, we have to carefully set it up to rule out customer discrimination by different prices
- Source 6:
Measuring Opportunity Cost with Stock Lifetime Value
Supporting excerpts (21)
In 2024, Zalando served approximately 52 million active customers, processing over 250 million orders.
Managing pricing for more than 600,000 products requires algorithmic automation.
aggressive discounting sacrifices margin on units that could have sold at higher prices
trading teams often maximize for tangible and measurable short-term revenue, whereas leadership requires credible estimates of long-term profitability
including algorithmic discounts, localized voucher campaigns and competitive price-matching
Conducted between July 24 and August 6, 2024, the experiment applied a 20 percentage point discount increase to 9,705 articles representing approximately 8.5 million euro in stock value across the largest 13 European markets
All articles were pre-selected as slow movers based on sales velocity and inventory age criteria.
despite higher revenue, profit declined substantially, indicating that the aggressive discounting destroyed short term profitability
SLV efficiency estimates from a two-week experiment correctly predicted the loss in profit that would have been observed 18 months later
SLV aggregates the expected profit from current inventory through the end of its selling lifecycle
SLV as an optimization target for pricing algorithms
Zalando's pricing system follows a forecast-then-optimize architecture
the system employs a multi-objective optimization framework using the weighted sum method
Revenue optimization favors higher discounts and faster stock clearance
The experiments tested the impact of an improved return rate forecast on the commercial performance of our main pricing algorithm described here
During a first 3-week experiment in 24 markets in Europe affecting over 4 million articles, we measured the commercial impact of the algorithmic intervention.
The outcomes were positive and statistically significant with a measured 0.9% global uplift in relative SLV efficiency.
We measured a similar uplift in relative SLV efficiency of 0.7% globally
All numbers are scaled by an anonymisation factor to keep the internally reported values confidential.
After review with the finance and pricing department, the algorithmic intervention was subsequently approved, prioritized for production and subsequently rolled-out.
the lowest prices must be displayed for a period of at least 30 days under the European Omnibus directive
- Source 7:
Supporting excerpts (3)
compared to decisions made by our experienced operations teams in a controlled online test
improvements of 86% (Promotheus) and 79% (Ithax) relative to manual strategies
These systems have been deployed to manage markdown at ASOS.com
- Source 8:
Price Optimization in Fashion E-commerce
Supporting excerpts (4)
Sajan Kedia sajan.kedia@myntra.com Myntra Designs India
we use a demand prediction model to predict the next day's demand for each product at a certain discount percentage
a linear programming optimization technique is used
According to the A/B test result, our model is improving the revenue by 1% and gross margin by 0.81%.
- Source 9:
Customized Regression Model for Airbnb Dynamic Pricing
Supporting excerpts (3)
First, a binary classification model predicts the booking probability of each listing-night.
Second, a regression model predicts the optimal price for each listing-night
The proposed pricing strategy has been deployed in production to power the Price Tips and Smart Pricing tool on Airbnb.
- Source 10:
High-frequency pricing at scale for e-commerce
Supporting excerpts (19)
a specialized forecast-then-optimize algorithmic pricing tool for sales campaigns in fashion e-commerce
Zalando Pricing manages price setting for around 600,000 products at any given time across all markets.
The re-pricing process determines discount levels between 0% and 70% for upcoming weeks, primarily driven by risk management considerations.
These events, including end-of-season sales, Black Friday, or mid-season promotions
Around 35% of each year is taken up by sales events with an average duration of 6.2 days.
On the demand forecasting side, our production system relied on a computationally expensive Transformer model operating at weekly granularity with weekly forecast updates.
The existing system employs detailed forecasting models, most notably for demand and return rates, across a 26-week period at weekly granularity spanning 14 countries and covering all 600,000 products.
The existing system applies a Mixed-Integer Programming (MIP) approach with Lagrangian decomposition to handle these constraints, resulting in article-level subproblems that are efficiently solvable as MIPs.
At Zalando, our production solution for predicting weekly article-level demand during non-sales-event periods is based on a Transformer model
We validate our approach through 23 A/B tests across 12 markets during 2023-2024 sales campaigns at Zalando
our current pricing solution (manual modifications applied to discounts from the existing system)
we implement daily-resolution forecasting using gradient-boosted trees (LightGBM) optimized for sales event dynamics
we leverage results from our weekly non-sales-event pricing system
solving the assortment discounting problem in minutes rather than the hours required by the existing system
we designed the system as a decision-support tool rather than a fully automated system, maintaining human oversight for financial accountability
we conducted a total of 23 A/B tests across twelve European markets
The tests were run in multiple waves throughout 2023 and 2024 during major sales campaigns
we observed a statistically significant overall increase of 6% in PCII and an insignificant increase in NMV
the algorithm was deployed to production and now handles the majority of algorithmic pricing decisions for sales campaigns across the company
- Source 11:
Human-Machine Interactions in Pricing: Evidence from Two Large-Scale Field Experiments
Supporting excerpts (32)
At the company, algorithms price the vast majority of products. However, managers monitor the decision and can override the algorithmic decision
By default, algorithms price products, but humans can intervene and overwrite algorithmic decisions.
these interventions accounted for about 7% of all daily price observations and accounted for about 15% of revenues and 7% of profits
The forecaster predicts weekly demand for each product within a specific country, at 15 possible discount levels.
designed to prevent the algorithm from making sudden or drastic changes
Such guardrails include a maximum week-on-week price change or a maximum discount rate
both of which reduce the likelihood of extrapolation bias or accidental over-optimization using high-uncertainty forecasts
After the algorithmic price is computed, human decision-makers observe it and may decide to override it.
Price interventions are proposed by category managers who oversee a smaller part of the assortment.
After category managers propose new discounts, pricing managers review and approve these changes at the country level.
Pricing managers do not consider the exact pricing decisions of the category managers but only control whether the implied overall discount level is compatible with the country-specific business constraints.
groups of products are approved or rejected in batches. These groups can contain thousands of products
Typically, human price interventions occur once a week
Any possible discount change by humans is weakly decreasing the price.
category managers always propose a uniform discount for a specific product across all countries in which Zalando operates
Algorithmic pricing decisions are made at the country level.
Zalando does not engage in personalized pricing.
Randomization at the article level is common in e-commerce because treatment assignment at the customer level would lead to personalized price discrimination
The metric employs the predicted profit margin difference between the proposed algorithmic and human price.
our first field experiment with 32,000 products in 12 countries selectively blocks selected human-suggested prices
We are left with 32,897 unique products and 124,923 product-country pairs.
the category managers proposing an additional price change were unaware of the experiment
The experiment lasted for 15 days.
preventing human pricing interventions that are anticipated to perform particularly poorly generated a 30% increase in prices, which led to a drop in sales and revenue of 65% and 60%, respectively. Furthermore, it increased profit by 237%.
a second, more extensive field experiment with 650,000 products in eight countries
The experiment lasted for 13 days.
blocking all human interventions independently of their expected quality reduces revenues and has no significant effect on profits
led to a decrease in sales and revenue of 39% and 38%, respectively
interventions expected to perform well did indeed increase profits
Completely unguarded human pricing interventions as well as fully blocked interventions are not beneficial for firm outcomes.
Qualitative interviews with managers indicate that it is, in fact, algorithmic (in)transparency that can drive human algorithmic distrust and, thus, interventions.
Center for Humans and Machines at the Max Planck Institute for Human Development
- Source 12:
Setting optimal prices during a sales event steered by humans: Price optimization at Zalando
Supporting excerpts (19)
Recommend the best discount for ~900K articles across 25 countries,
In order to maximize Zalando's profit over the year.
Financial targets: revenue, profit, average discount rate
Targets are set at country-level.
Pricing managers: humans in charge of reaching financial targets
Responsibility: the pricing manager is responsible for reaching the financial targets, not the tool
A good tool requires as little interaction as possible, but some will always be necessary.
Human interactions: Design of the optimizer (the deprecated way)
The full matrix of targets might not be reachable
In case of conflict, arbitration is needed
Imposes a slow cadence (bi-weekly)
The pricing managers choose a unique input-parameter (alpha), to reach the country financial target.
The attempt to satisfy all business constraints can lead to unnecessary complex systems.
Always challenge a constraint/assumption that adds complexity
Best-sellers are never highly discounted
Low-sellers receive very high discounts
Our training data is biased
In a forecast-then-optimise set up, we might create a biased feedback loop
Causation is not correlation: our ML model should be causal
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.