Skip to content
Rivl
4 December 2026AI11 min

AI demand forecasting for retail, and the benchmark it has to beat

The largest forecasting competition ever run used five years of real Walmart sales. Of 5,507 teams, 415 beat a well tuned statistical benchmark, and most were beaten by it by more than 13 per cent. The teams that won did beat it convincingly. Both halves of that matter before you commission anything.

Forecasting is the feature every retailer asks for second. The first ask is usually stock accuracy, and we have argued in several of these notes that it has to come first. The forecasting question is then deferred rather than answered, which is unsatisfying, so this note answers it.

There is unusually good public evidence here, because the question has been settled empirically on real retail data at serious scale. The answer is not the one either side of the argument wants.

An outline panel headed WHAT THIS COVERS, numbering the first five of this note's eight sections: what the largest retail forecasting competition measured (shown truncated), how few teams beat a tuned simple benchmark, what the winning methods actually did, why cross learning is the finding that matters here, and what the platforms document about the data you need. The panel stops there, so the three later sections on the honest sequence, when a learned forecast beats a reorder rule, and the honest limits are not shown.
The first five of this note's eight sections. The later three are listed in the text below.

What the largest retail forecasting competition measured

The M5 competition asked entrants to forecast 42,840 time series of hierarchical unit sales for Walmart, and the results paper by Makridakis, Spiliotis and Assimakopoulos was published in the International Journal of Forecasting (volume 38, issue 4, pages 1346 to 1364). The organisers' own write up is public: The M5 Accuracy competition: Results, findings and conclusions.

The scale is worth stating because it is what makes the findings usable. The data was daily, running from 29 January 2011 to 19 June 2016, which is 1,969 days or roughly 5.4 years. The series were structured in twelve aggregation levels, from total company sales down to 30,490 individual product and store combinations. Entrants forecast 28 days ahead. And the dataset included the things that actually move retail demand: calendar events classified as sporting, cultural, national and religious, weekly selling prices per store, and a flag for whether food assistance payments were active in that state on that day.

In other words this was not a toy problem, and it was not an unfair one either. 7,092 participants on 5,507 teams from 101 countries entered, against 24 published benchmarks.

How few teams beat a tuned simple benchmark

This is the number that should govern the build decision, and it is rarely quoted by anyone selling forecasting software.

Of the teams that entered, 2,666 of them, or 48.4 per cent, beat a naive forecast. 1,972, or 35.8 per cent, beat a seasonal naive forecast. And 415, or 7.5 per cent, beat the best of the organisers' benchmarks, an exponential smoothing model reconciled from the bottom up. The paper is blunt about the rest: the majority of teams were outperformed by that benchmark by more than 13 per cent.

So more than nine in ten expert teams, self selected for interest in forecasting, working on clean prepared data with price and calendar features supplied, could not beat a competent statistical baseline. If your plan is to point a model at your sales history and expect an improvement, that is the base rate you are betting against.

The other half of the result is just as real. The teams that did beat the benchmark beat it properly. All of the top 50 improved on it by more than 14 per cent, the top five by more than 20 per cent, and the winning entry by 22.4 per cent. A 20 per cent reduction in forecast error across a chain's whole range is a large operational prize. The evidence does not say forecasting fails. It says it is a skilled build with a high floor.

What the winning methods actually did

Three things characterised the top of the table, and none of them is a large language model or anything that arrived recently.

Nearly all the leading entries used gradient boosted trees, specifically LightGBM, rather than deep learning. The paper notes that M5 was the first of these competitions where all the top performing methods were pure machine learning and significantly better than every statistical benchmark and their combinations, which was not true of the earlier M4.

Second, they combined models. The winner used an equal weighted combination of six models, the runner up five, and the third placed entry an equal weighted combination of 43 neural networks. Simple averaging, not clever weighting: of the combination approaches in the top 50, only one weighted its components unequally.

Third, and most relevant to anyone smaller than Walmart, every one of the top 50 methods used cross learning.

Why cross learning is the finding that matters here

Cross learning means training a single model across many series at once rather than fitting a separate model to each product. The paper makes the point that this both reduces computational cost and mitigates "difficulties related to limited historical observations".

That last clause is the one worth reading twice if you run a shop rather than a chain. The intuitive objection to forecasting is that an individual product does not have enough history, and for a per product model that objection is correct. A model trained across your whole range learns the shape of a weekend, a payday, a Ramadan week and a price cut from every product at once, and then applies it to the thin ones. The constraint is not years of history per item. It is a usable volume of consistent history across the range, plus the features that explain the spikes.

The questionA reorder point ruleA learned forecast
What it needs to runStock level, lead time, a bufferConsistent history across the range
A promotion next weekCannot see itOnly if past promotions are recorded
A product launched last monthSet the level by handWeak, and cross learning only partly helps
How it failsVisibly, you see the ruleQuietly, with a confident wrong number
Who maintains itWhoever owns the bufferSomeone who can retrain and check it
Evidence it beats the otherIt was close to the M5 benchmark415 of 5,507 teams managed it
The comparison table from this note drawn as an AT A GLANCE panel with three columns: the question, a reorder point rule, and a learned forecast. Five rows are shown, several with their text truncated: what each needs to run, a promotion next week, a product launched last month, how each fails, and who maintains it. A reorder rule needs stock level and lead time and fails visibly; a learned forecast needs consistent history, sees a promotion only if past promotions were recorded, is weak on new products, and fails quietly. The sixth row in the table below, on the evidence that each beats the other, is not shown in the panel.
Five of the six rows from the table above. The evidence row is in the table, not the panel.

What the platforms document about the data you need

It is worth checking the vendor documentation rather than the vendor marketing, because the documented requirements are narrower than the pitch and more useful. Google's own data preparation page for its forecasting product is specific (Prepare forecasting training data, Vertex AI documentation).

It requires a dataset of "at least 1,000 and no more than 100,000,000 rows", at least 3 and no more than 100 columns, and a time column, a target column and a series identifier column with no missing values in any of them. It caps a single series at 3,000 time steps. It recommends "at least 10 time series for every column you use to train the model", and says that while training on a single series is possible, the product "is a better fit for training data that contains two or more time series", which is the cross learning point again in vendor form.

Two of its statements are more honest than most sales conversations. The interval between training rows "must be consistent", which rules out a sales table with missing days unless you fill them deliberately. And on the row minimum it adds that "1,000 rows might not be enough to train a high-performing model" depending on how many features you have. Notably, there is no documented minimum history length at all. The requirement is expressed in rows and consistency, not years, which means the common claim that you need a fixed number of years before you can start is not something the platform documentation supports either way.

The honest sequence, and why forecasting is still not first

Everything above assumes the history you train on is true. That assumption is where most retail forecasting projects actually die, and it is why we keep deferring this feature in scoping notes rather than because the technique is weak.

A forecast is a calculation on top of your sales and stock records. If stock figures are adjusted by hand, if sales are recorded against the wrong branch, if returns are netted off silently, or if stockouts are invisible, then the model learns your recording habits rather than your demand. The stockout case is the nastiest: a product that sold zero because there was none on the shelf looks exactly like a product nobody wanted, and a model trained on that will confidently recommend you stock less of your best seller. Nothing in the modelling fixes it. Only the data layer does.

That is the same ordering argument as an inventory system for a retail chain, which puts forecasting in year two on data you believe, and the smaller version in when a stock spreadsheet starts costing more than it saves. In a pharmacy the prerequisite is stricter still, because stock is held per batch and expiry rather than per product: a pharmacy inventory management system covers why.

When a learned forecast genuinely beats a reorder rule

On the evidence above, the honest conditions are fairly specific. Your demand has structure a rule cannot express, meaning real seasonality, promotion effects or price elasticity rather than just noise. You have a usable volume of consistent history across the range, with stockouts and promotions distinguishable in the data. You hold enough distinct lines that manual buffer tuning has stopped being feasible. And somebody will own the model after launch, because a forecast nobody retrains degrades silently.

If those hold, the M5 numbers say a well executed build is worth a double digit improvement in forecast error. If any of them does not hold, a reorder point with a sensible buffer will probably beat your first model, and it has the considerable advantage that a human can see why it did what it did. The buy against build framing is in custom software versus off the shelf, and for forecasting specifically the answer leans toward buying, because this is a well served category and the hard part is your data rather than the algorithm.

If what you want to forecast is a sales pipeline rather than stock, the discipline is different and the data is far thinner. BDG Labs covers that properly in how to forecast B2B sales accurately, starting with slippage. The reorder logic that sits underneath distribution demand is in a wholesale distributor ordering portal.

Honest limits

  • M5 is one retailer, in one country, in one period. The data is Walmart, 2011 to 2016, in three US states. How well the results transfer to other retailers is an open question in the literature rather than a settled one.
  • Competition conditions are not your conditions. Entrants got clean, prepared, gap free data with prices and calendar events supplied. Your first project will spend most of its budget reaching that starting line.
  • The 7.5 per cent figure is about beating a tuned benchmark. It is not a failure rate for forecasting projects, and nobody has published one of those that we would trust.
  • We have no local benchmark. There is no figure in this note for Egyptian or Gulf retail forecast accuracy, because we have no measured source for one in this market.
  • The vendor documentation changes. The Vertex AI numbers above were read in December 2026 and are worth rechecking rather than quoting back to us.
  • A 28 day horizon is a specific question. M5 measured four weeks ahead. Next day replenishment and next season buying are different problems with different error profiles.

The short version: forecasting is a real technique with a real prize and a high floor. Beat a reorder rule on paper before you build one, fix the stockout and adjustment records first, train one model across the whole range rather than one per product, and treat anyone who promises a percentage improvement before seeing your data as selling rather than forecasting.

Describe it. We build it.

Seven or twelve days, pay on delivery, a year of maintenance included. Bring the problem, not a spec.

Book a meeting

Read next