Composable commerce vs monolithic platforms: how to decide
Composable commerce buys freedom to change parts of your stack independently, and you pay in integration and operations work. A comparison, the signals for each choice and a staged path.
· 5 min read · By the YLinkTech Team
Demand forecasting with machine learning means training one model across many products and stores, using sales history plus drivers such as price, promotions and calendar events, to predict how much of each item will sell. It tends to beat traditional per-item methods when you have many related series and good records of what drove past demand. It does not rescue poor data, so most of the work is in the inputs, the evaluation and the link to replenishment decisions.
The strongest public evidence comes from the M5 forecasting competition, which used Walmart data. The organizers’ results paper, published in the International Journal of Forecasting in 2022, reports that entrants had to forecast 42,840 time series of hierarchical unit sales. LightGBM, a decision-tree-based method, was used by all of the top 50 competitors. The winning entry was an equal-weighted combination of six models.
The authors draw two lessons that matter for retailers. First, “cross-learning”, where a single model learns from many series at once, improves accuracy and helps with items that have short histories. Second, machine learning methods handle explanatory variables such as prices and promotions well. They also caution that firms should weigh the extra cost of running these methods against the accuracy gained.
That caution is the practical test. Machine learning is likely to pay off when you have thousands of item and location combinations, frequent promotions or price changes, and many slow or new items. A simple seasonal method may be enough when you have few products, stable demand and long histories.
Model choice matters less than the inputs. Before you compare algorithms, check that you hold the following, at the level where decisions are made:
The common gap is not volume. It is the business decisions that were never recorded, such as an extra display or a local price change. Start logging them now, even if the model comes later.
| Method | How it works | Fits well when | Watch for |
|---|---|---|---|
| Seasonal naive and moving averages | Repeats the last season or averages recent periods | You need a baseline, or demand is stable | Cannot react to promotions or price changes |
| Exponential smoothing and ARIMA | A statistical model fitted to each series | Long, regular histories and few external drivers | One model per item is hard to maintain at scale and weak for new items |
| Gradient-boosted trees such as LightGBM | One model trained across all series, with lags, prices, promotions and attributes as features | Many related items with rich driver data | Depends on feature engineering, and can leak future information if features are built carelessly |
| Deep learning models | Neural networks trained across all series | Very large datasets and teams with the skills to run them | Higher compute cost and harder to explain to planners |
Combining models is a reasonable default. The M5 winner did exactly that.
Many projects go wrong at evaluation. The online textbook Forecasting: Principles and Practice gives the ground rules.
Add two checks of your own. Measure bias, because a forecast that is consistently high or low costs more than one that is noisy. Measure at the level where the decision is made, because a forecast that looks accurate by category can still be poor for a single store.
Before you start, the AI readiness assessment checklist helps you test whether data and ownership are in place. If you are comparing a packaged planning tool with a custom model, use the build vs buy framework.
We help retailers and consumer brands move from spreadsheet forecasts to models that planners trust. Our AI and Data practice builds the data pipelines, trains and evaluates the models through our machine learning engineering work, and connects the output to replenishment and planning systems. We start with a baseline and a single category, so you see evidence before you scale. Contact us to discuss your forecasting problem.
There is no fixed threshold. What helps most is history across many related items and locations, ideally covering at least two seasonal cycles, together with records of prices, promotions and stock availability. A model trained across all items can forecast products with short histories by learning from similar ones.
Gradient-boosted trees are a strong starting point. In the M5 competition on Walmart sales data, LightGBM was used by all of the top 50 entrants, and the winner combined six models. Always compare against a simple seasonal baseline, because the best method depends on your data, horizon and level of detail.
MAPE divides the error by actual sales, so it is undefined when sales are zero and extreme when they are close to zero. Many items sell nothing on a given day in a given store. Scaled errors, which compare each forecast with a naive forecast on the same series, are more reliable across fast and slow sellers.
This article is general information, not professional advice. See our Disclaimer.
Composable commerce buys freedom to change parts of your stack independently, and you pay in integration and operations work. A comparison, the signals for each choice and a staged path.
Workflow automation follows steps you define. An AI agent chooses its own steps. Here is how the two differ on cost, predictability and risk, and how to decide for a…
US regulators replaced SR 11-7 with revised model risk guidance in April 2026. Here is what it says about AI, what model risk teams expect to see, and how to…
A 30-minute call is usually enough to know whether we are the right fit. We reply within one business day.