Paper Announcement: A Practical Approach to Replenishment Optimization with Extended (R, s, Q) Policy and Probabilistic Models
Zalando's ZEOS replenishment engine combines LightGBM quantile demand forecasts, an extended (R, s, Q) policy with a kick-start quantity and lifecycle cutoff, and Monte Carlo discrete event simulation over a 12-week horizon. It minimizes the 75th percentile of total cost (holding, logistics, returns, lost sales) rather than the mean. A one-year backtest on ~2M articles showed about 22% GMV uplift and 34% better availability versus human decisions, assuming full adoption. It also outperformed tuned (s, S), base-stock and newsvendor baselines. Ablations show probabilistic forecasts give the largest gain, and percentile optimization adds further stability.
Related posts
- Building a dynamic inventory optimisation system: A deep dive
Zalando Engineering mediumAdeptZalando's ZEOS builds replenishment recommendations by minimising a cost function that combines storage, lost sales, overstock, operations and inbound costs. Probabilistic demand forecasts feed a Monte Carlo simulation engine with gradient-free black-box optimisers. The weekly forecasting pipeline runs LightGBM through Nixtla's MLForecast with conformal inference, does pre-processing in PySpark on Databricks and feature transforms on SageMaker, and covers 5 million SKUs over about 3 years of history in under 2 hours. The optimisation service shares features via SageMaker Feature Store (online lookups at 10–20ms per SKU, S3-backed offline store). It serves daily batch transform jobs plus an interactive SQS/Lambda path for partner setting changes, keeping both paths consistent.
- Ensuring Even Ad Spend on the Zalando Homepage: How Our New Bidding Algorithm Maximizes Value for Advertisers and Shoppers
Zalando Engineering mediumAdeptZalando Marketing Services replaced its homepage ad bidding formula with a feedback-controlled pacing strategy that scales each bid by (1 − spent)/(1 − expected even spend), splitting budget into hourly buckets based on traffic forecasts. The old factor, 1 − r·t·(1 − t), lowered bids in the first half of each hour and raised them in the second regardless of whether a campaign was over- or under-spending. The new factor raises bids when underspending, lowers them when overspending, and holds steady at even spend, converging to an equilibrium price. A budget-split A/B test showed 10% more ad views, roughly 10% lower CPV, 23% more clicks and 11% higher CTR, with no significant impact on homepage experience metrics.
- Reducing experiment duration with predicted control variates
Etsy Code as Craft mediumAdeptEtsy upgraded its experimentation platform's variance reduction from CUPED to CUPAC, which feeds pre-experiment features (over 100, up from 3) into LightGBM models whose predictions serve as the covariate in a linear CUPED-style adjustment. Average variance reduction rose from 7% to 27%, with a range of 2% to 77% depending on metric stability. That cuts average experiment duration by almost 3 days. The pipeline runs as an Airflow DAG: BigQuery computes features, Dataflow runs batch predictions, Spark fits the regression, and t-tests follow. Because per-metric models are costly to train and maintain, Etsy still encourages CUPED for team-specific metrics and plans to automate CUPED's pre-experiment data collection.
- From Event-Driven Chaos to a Blazingly Fast Serving API
Zalando Engineering mediumAdeptZalando replaced an event-driven pipeline that merged Product, Price and Stock events with a central Product Read API (PRAPI). During Cyber Week that pipeline delayed price and stock updates by up to 30 minutes, because over 90% of each payload was unchanged. PRAPI is a Caffeine async-loading cache over DynamoDB, run on Kubernetes with Netty/Epoll non-blocking I/O, and serves millions of requests per second at sub-10ms P99. Consistent hash load balancing in Skipper partitions the catalogue so small per-pod caches hold hot products. Fixed ring positions and a bounded-load cap of 2× the average keep caches warm during scaling and stop hyped products from overloading a pod. Tail latency came down by caching payloads as byte arrays to avoid GC pauses, using LIFO queuing, and splitting DynamoDB clients into a 10ms primary and a 100ms fallback. Adoption across ~350 teams worked because PRAPI served the legacy formats via the Accept header, and the org was restructured along CQRS lines.
- Monte Carlo Simulations: Separating Signal from Noise in Sampled Success Metrics
Shopify Engineering mediumAdeptA Monte Carlo simulation can quantify how much sampling noise obscures real trends in a success metric that can only be measured by sampling, using Shopify App Store audits (a "shop issue rate" modeled as Poisson-distributed requirement violations) as the example. The method defines simulation metrics such as MAPE and the share of months where the sampled metric decreases (1mDO, 2mDO), generates sampled time series under assumed monthly improvement rates, repeats them across iterations, and grid-searches sample size and effect size in Python/pandas. With 10 mean issues, 100 audits per month and a true 5% monthly decrease, a decrease is observed in 83% of months and 97% over two months, giving stakeholders a concrete tradeoff between audit cost and certainty.