Manuscript Offprint

arXiv:2610.25170

World Models, Trees and Foundation Models for Retail Forecasting: Evidence from Four Public Data Sets

Karthik Iyer, Madan Dabbeeru

Karthik Iyer Madan Dabbeeru

Correspondence: karthik.iyer.au@gmail.com ORCID: 0009-0004-0593-1602

Abstract. A retailer makes different decisions at different grains of the product, store and time hierarchy: store orders for one item in one store by day or week, supplier funding for an item across stores by week, category performance by store and week or across weeks, and the financial plan for the chain. Which forecasting model to use depends on the grain being solved for. This paper compares models at each of these grains on four public data sets (M5, six Dominick's categories, Breakfast at the Frat, and Corporación Favorita, the last kept out of all development), over rolling forecast origins with paired tests and model confidence sets. It addresses two of the four Ps of retail, price and promotion, through the plan inputs these data record; it does not forecast product, assortment or place, and does not solve them jointly. The models are a world model that carries each item's state forward under the price and promotion plan, the same network without that carried state, LightGBM, the Temporal Fusion Transformer, TimesFM, Chronos-Bolt, Timestral, seasonal naive, and an equal-weight average of the world model, LightGBM and TimesFM given the plan. On these data the answer changed with the grain. For an item by store and for an item across stores, the average had the lowest error on seven and eight of nine data sets, and the 90% confidence set held a median of 1 and 2 models. For a category by store, a category and the chain total, the lowest-error model differed between data sets and a median of 4 of nine models were not separated by the four to six windows available. For category-by-store planning cost, the average or LightGBM was lowest on seven of eight data sets, ahead of the world model by an interval over category-by-store nodes within windows (the world model was lower in at most two windows), and the world model was lowest only on M5; it was behind LightGBM item by store on six of eight. Every trained model used the plan, and on the weekly promotion-driven data pretrained models were less accurate without it. These are results for these data sets, with the plan inputs and constraints they carry; a forecast solved across all four Ps, or a retailer's own data, may give different results. Every model, test and change that lost is reported, with each change scored against the configuration it changed.

Keywords: retail forecasting; hierarchical evaluation; forecast combination; promotions; world models; foundation models; rolling-origin evaluation.

1 Introduction

A retailer uses sales forecasts for several decisions, and each decision is made at its own grain of the product, store and time hierarchy. Store orders and inventory are set for one item in one store, by day or week. Supplier funding and deal terms are agreed for an item across all stores, by week. Category performance is reviewed by category and store, week by week or over a run of weeks, and category sales and margin plans are set for the category across the chain. The financial plan is a chain total. A forecast can be accurate item by store and still miss the category total by several percent, because small errors in the same direction add up while large errors in opposite directions cancel. Knowing which grain is being solved for therefore bears on which model to use.

This paper asks that question directly: at which grain do which models forecast best, when the price and promotion plan for the weeks ahead is known? Of the four Ps of retail (product, price, promotion and place), it addresses price and promotion, through the plan inputs that public data record: shelf price, temporary price cuts, promotion flags, displays and circulars, event and payment days. It does not forecast product (assortment, new items, ranging) or place (space, distribution), and it does not solve the four together. A forecast that did, or a retailer's own data with stock, space and range recorded, could give different results from those reported here.

We compare models chosen to span what retailers use or are offered: LightGBM, the tree model behind the leading M5 entries; the Temporal Fusion Transformer; three pretrained models used without training on our data (TimesFM, Chronos-Bolt and Timestral); a world model of our own, which turns each item's recent history into a state and carries it forward one period at a time under the plan (Figure 2); the same network without the carried state; and an equal-weight average of the world model, LightGBM and TimesFM given the plan. An earlier version of this work scored one final window per data set and found that the most accurate model changed with the level scored, the month and the data set. This version tests that on rolling forecast origins taken before any window used for development, on four public data sets, one of them kept out of all development, with paired tests, model confidence sets, interval forecasts, decision costs and reconciliation, every analysis written down before it ran except checks of unexpected results and two corrections, which are marked where they appear (Figure 1).

On these data sets, with the plan inputs and constraints they carry, we observed the following.

  1. The model with the lowest error depended on the grain ( §6.1§6.1). For an item by store and an item across stores, the equal-weight average had the lowest error on seven and eight of nine data sets, and the 90% confidence set kept few models with it (median 1 and 2 of nine). For a category by store, a category and the chain total, the lowest-error model differed from data set to data set and the confidence set kept a median of 4: with four to six windows, these data did not separate the models at these grains.

  2. The decision costs followed the same pattern. For category-by-store plans the average had the lowest cost on four of eight data sets and LightGBM on three, each ahead of the world model by an interval over category-by-store nodes that excludes zero (the world model was lower in at most two of the four to six windows); under the other horizon and weighting rules the lowest was the same kind of model with one exception. The world model was lowest only on M5, not separated by period and lower in all four windows over the whole window. A first version of this cost, which put the world model first on most data sets, was wrong ( §6.9§6.9). For store orders at critical ratios of 0.5 and 0.8, the average or LightGBM had the lowest cost on every data set.

  3. LightGBM was the strongest single model at the fine grains, and averaging added to it. LightGBM was more accurate than the world model item by store on six of eight data sets by the paired test. The average was more accurate than LightGBM item by store on four and never less accurate. Weights fitted on earlier windows beat equal weights in five of 54 comparisons ( §6.2,§6.3§6.2, §6.3).

  4. The world model added to the average on some data sets, and its carried state on almost none. Without it the average was less accurate item by store on four data sets; on bottled juice, frozen entrees and M5 we did not detect a difference when the same network without the carried state took its place, also on Frat when it was rerun with the world model's regularisation ( §6.3,§6.4§6.3, §6.4).

  5. Every trained model used the plan, and pretrained models needed it. Removing the plan inputs made every trained model less accurate; TimesFM with the plan was the most accurate model not trained on the data, and Timestral, released two days after this revision began, was behind it on every data set item by store and put extreme upper quantiles on a few weekly series ( §6.5,§6.6§6.5, §6.6).

  6. After a promotion the world model forecast more, not the dip that follows stocking up, and the changes we tried for the dip were not kept ( §6.5,§7§6.5, §7).

  7. Every model, test and change that lost is reported, including a seed that never reached single-fit runs and run-to-run noise as large as the differences being tested ( §7§7). Every change to a model setting with saved runs is scored against the configuration it changed, including changes that were kept after winning half their comparisons or fewer ( §B.4§B.4).

Section 2 places the work among retail promotion models, hierarchical evaluation, forecast combination, pretrained forecasters and world models. Sections 3 to 5 give the data, the models and the experimental setup. Section 6 reports the results, Section 7 what was tried and dropped, and Sections 8 to 10 discuss what the results mean for a retailer, their limits, and conclude. The development study is in Supplement B, and the final windows and dropped changes of the first version in Supplement C.

References (52)