Makridakis Bench: M5 Accuracy Competition (2020)
Hosted on Kaggle with 5,558 teams (Makridakis et al., 2022; M5-methods), M5 Accuracy tested 30,490 correlated, intermittent Walmart item-store unit-sales series across California, Texas and Wisconsin, with SNAP calendars (US food-assistance payout days that drive regular demand spikes), holiday events and weekly sell prices, scored across 12 hierarchical aggregation levels (42,840 nodes).
Scored by dollar-volume Weighted Root Mean Squared Scaled Error (WRMSSE), equally weighting all 12 hierarchy levels (L1 Total through L12 Item×Store so aggregate Walmart sales weigh as much as individual SKU-store pairs), checked against all 50 archived top Kaggle entrants (winner YJ_STU at 0.5204; #50 cutoff at 0.5760) and all 24 organizer benchmarks (best ES_bu at 0.6710; combined N = 75).
Competition records & historical benchmarks
| Metric / Cohort | Historical Archive #1 | Fixed Baseline | Best LLM | Leading Model |
|---|---|---|---|---|
| 12-Level Hierarchical WRMSSE | 0.5204 (YJ_STU #1 of 5,558 teams) | 0.8470 (Seasonal Naive) | 0.5575 | Gemini 4 Argon ★ #22 / 51 Kaggle Top 50 |
| Best Organizer Benchmark (24 methods) | 0.6710 (ES_bu #1 benchmark) | 0.9254 (Global LightGBM) | 0.5575 | Gemini 4 Argon ★ 16/22 beat all 24 benchmarks |
Primary parity check: All 50 archived top entrants & 24 organizer benchmarks verified across 42,840 nodes.
Individual series & held-out forecast curves
Select any hierarchy node or item-store series below, or click Plot curve ↑ in the table, to compare the trailing training history and held-out actuals against all 22 model pipelines and statistical baselines.
Loading series forecast explorer…
M5 Accuracy Competition (2020) · 49 interactive series bundles across all 22 models
All 22 model scores on this selected series Show / hide
12-level Walmart hierarchy breakdown (42,840 nodes)
12-level hierarchy pyramid & RMSSE by aggregation level
Log-scaled node count (left) and level RMSSE (right, lower is better) · shows why unreconciled bottom-up LightGBM struggles at L1–L6
| Hierarchy Level | Scope | Series / Nodes | Horizon | S.Naive WRMSSE | Global LGB | Best LLM | Leader | Median LLM | Median LLM < S.Naive |
|---|---|---|---|---|---|---|---|---|---|
| L1 Total | All Walmart US unit sales | 1 | 28 | 0.5600 | 0.8436 | 0.2780 | Gemini 4 Argon | 0.4252 | 100.0% |
| L2 State | CA, TX, WI | 3 | 28 | 0.6731 | 0.8662 | 0.3655 | Gemini 4 Argon | 0.4812 | 100.0% |
| L3 Store | 10 stores (CA_1..WI_3) | 10 | 28 | 0.7176 | 0.8759 | 0.4224 | Gemini 4 Argon | 0.5222 | 90.0% |
| L4 Category | FOODS, HOBBIES, HOUSEHOLD | 3 | 28 | 0.6230 | 0.8702 | 0.3198 | Gemini 4 Neon | 0.4491 | 100.0% |
| L5 Department | 7 departments | 7 | 28 | 0.7082 | 0.9595 | 0.3936 | Gemini 4 Neon | 0.5264 | 85.7% |
| L6 State×Cat | 9 state-category aggregates | 9 | 28 | 0.7600 | 0.9088 | 0.4379 | Gemini 4 Neon | 0.5337 | 100.0% |
| L7 State×Dept | 21 state-department aggregates | 21 | 28 | 0.8292 | 0.9738 | 0.5110 | Gemini 4 Neon | 0.6095 | 95.2% |
| L8 Store×Cat | 30 store-category aggregates | 30 | 28 | 0.8008 | 0.9075 | 0.5032 | Gemini 4 Argon | 0.5929 | 96.7% |
| L9 Store×Dept | 70 store-department aggregates | 70 | 28 | 0.8881 | 0.9654 | 0.6005 | Gemini 4 Neon | 0.6743 | 91.4% |
| L10 Item | 3,049 national item totals | 3,049 | 28 | 1.2233 | 1.0455 | 0.9576 | GPT-6.2 Astra | 0.9931 | 92.3% |
| L11 Item×State | 9,147 state item series | 9,147 | 28 | 1.2045 | 0.9768 | 0.9207 | GPT-6.2 Astra | 0.9475 | 94.4% |
| L12 Item×Store | 30,490 bottom-level item-store series | 30,490 | 28 | 1.1764 | 0.9119 | 0.8788 | GPT-6.2 Astra | 0.8962 | 93.7% |
RMSSE divides forecast RMSE by each node’s in-sample daily first-difference scale (so Seasonal Naive is 1.1764 rather than 1.0000 on the higher-variance 28-day holdout). At aggregate levels L1–L6, Seasonal Naive beats the unreconciled Global LightGBM baseline because small item-level biases sum across 30,490 series.
Individual series status & win-rate explorer
Per-series status directory
Showing all 154 upper-hierarchy aggregate nodes (L1–L9) plus 200 stratified bottom-level item-store series across all 42,840 evaluated nodes
| Series | Stratum | Train → H | LLM vs. Seasonal Naive Status | Seasonal Naive | Best LLM | Winning Model | Median LLM | Curve |
|---|
Search trajectories across committed checkpoints
Hidden-test score over the 60-minute research window
Every valid commit snapshotted without returning test feedback
All 22 models on M5 Accuracy (2020)
| Model | WRMSSE | Archive Rank | Kaggle Top-50 | Bench-24 Rank | Estimator Families | Replay | Commits | Est. Cost | Repo |
|---|---|---|---|---|---|---|---|---|---|
| 01Gemini 4 Argon | 0.5575 | #22/75 | #22/51 | #1/25 | LightGBMNeural networkForecast combinationCross-sectional / shrinkage | Source + 6 art. | 5 | $3.54 | |
| 02Gemini 4 Neon | 0.5582 | #25/75 | #25/51 | #1/25 | LightGBMNeural networkNaive / seasonal naiveCroston / intermittent demand | Source + 4 art. | 3 | $4.78 | |
| 03GPT-6.2 Sol | 0.5606 | #28/75 | #28/51 | #1/25 | ThetaETS / exponential smoothingLightGBMLinear / ridge regression | Source + 22 art. | 7 | $4.34 | |
| 04Opus 5.5 | 0.5966 | #51/75 | — | #1/25 | LightGBM | Pure source | 5 | $1.59 | |
| 05Sonnet 5.5 | 0.6001 | #51/75 | — | #1/25 | LightGBM | Pure source | 3 | $1.94 | |
| 06Haiku 5.5 | 0.6077 | #51/75 | — | #1/25 | Neural network | Pure source | 6 | $0.09 | |
| 07GPT-6.2 Astra | 0.6145 | #51/75 | — | #1/25 | ETS / exponential smoothingLightGBMNeural networkDrift | Source + 7 art. | 6 | $13.73 | |
| 08Muse Spark 1.3 | 0.6221 | #51/75 | — | #1/25 | LightGBMForecast combination | Source + 4 art. | 10 | $1.25 | |
| 09Fable 5.2 | 0.6224 | #51/75 | — | #1/25 | LightGBMNeural networkForecast combination | Source + 20 art. | 6 | $8.50 | |
| 10Gemini 4 Carbon | 0.6324 | #51/75 | — | #1/25 | LightGBMNeural networkForecast combinationCross-sectional / shrinkage | Source + 4 art. | 4 | $3.23 | |
| 11GPT-6 Astra | 0.6365 | #51/75 | — | #1/25 | LightGBMLinear / ridge regressionNeural networkCross-sectional / shrinkage | Source + 3 art. | 8 | $15.69 | |
| 12Fable 5.1 | 0.6422 | #51/75 | — | #1/25 | LightGBMNeural networkForecast combination | Source + 1 art. | 6 | $7.25 | |
| 13Grok 4.7 | 0.6426 | #51/75 | — | #1/25 | LightGBMForecast combinationCross-sectional / shrinkage | Source + 29 art. | 8 | $1.94 | |
| 14GPT-6.1 Sol | 0.6543 | #51/75 | — | #1/25 | LightGBMLinear / ridge regressionNeural network | Source + 4 art. | 8 | $1.69 | |
| 15Kimi K3.1 Pro | 0.6607 | #51/75 | — | #1/25 | LightGBMNeural networkForecast combination | Source + 5 art. | 8 | $3.04 | |
| 16Gemini 4 Hydrogen | 0.6692 | #51/75 | — | #1/25 | LightGBMNeural networkForecast combination | Source + 12 art. | 3 | $1.97 | |
| 17Gemini 3.8 Flash | 0.6885 | #54/75 | — | #4/25 | LightGBMCross-sectional / shrinkage | Source + 3 art. | 12 | $3.49 | |
| 18DeepSeek V4.1 Flash | 0.6896 | #54/75 | — | #4/25 | Neural networkForecast combination | Pure source | 5 | $0.11 | |
| 19GPT-6 Luna | 0.7321 | #57/75 | — | #7/25 | Cross-sectional / shrinkage | Pure source | 9 | $0.13 | |
| 20GLM-5.3 | 0.7594 | #58/75 | — | #8/25 | LightGBMForecast combination | Pure source | 4 | $1.35 | |
| 21Muse Wonder 1.0 | 0.7644 | #58/75 | — | #8/25 | LightGBMNeural networkForecast combination | Pure source | 6 | $4.03 | |
| 22MiMo-V2.6-Pro | 588.6 | #75/75 | — | #25/25 | LightGBMNeural networkForecast combination | Source + 5 art. | 4 | $0.10 |
Click Code → on any row to inspect the model’s full submitted Python repository, method.json notes, and checkpoint commit history with syntax highlighting.
Standout submitted pipelines on M5 Accuracy (2020)
All 22 committed repositories for M5 Accuracy (2020) are clean-room verified and available under the MIT License on GitHub and Hugging Face.
Gemini 4 Argon Roster #1 · 0.5575 (Archive #22/75)
Horizon-Step & Sparsity-Adaptive Multi-Level Reconciled 3-Family Ensemble combining: (1) Multiplicative Seasonal-Calendar Decomposition (Empirical Bayes DOW Shrinkage, Joint DOWxSNAP, Smoothed DOM, Holiday/Event Multipliers, Horizon-Decaying Windows), (2) Two PyTorch GPU Neural Architectures on CUDA L4 (ReconciledItemNN and Dilated 1D Temporal ConvNet…
forecast.py (518 lines · MIT License)
class ReconciledItemNN(nn.Module):
def __init__(self, d_orig, d_step, n_experts=8, n_sd=70, n_stores=10, n_depts=7):
super().__init__()
self.sd_emb = nn.Embedding(n_sd, 8)
self.store_emb = nn.Embedding(n_stores, 4)
self.dept_emb = nn.Embedding(n_depts, 4)
in_orig = d_orig + 16
self.orig_mlp = nn.Sequential(
nn.Linear(in_orig, 96),
nn.LayerNorm(96),
nn.SiLU(),
nn.Dropout(0.15),
nn.Linear(96, 48),
nn.LayerNorm(48),
nn.SiLU(),
)
self.proj_orig = nn.Linear(48, 48)
self.proj_step = nn.Linear(d_step, 48)
self.step_mlp = nn.Sequential(
nn.SiLU(),
nn.Dropout(0.10),
nn.Linear(48, 32),
nn.SiLU(),
)
self.temp_conv = nn.Conv1d(32, 32, kernel_size=3, padding=1, groups=4)
self.gate_head = nn.Linear(32, n_experts)
self.mult_head = nn.Linear(32, 1)
def forward(self, x_orig, x_step, experts, G_target, sd_codes_t, store_codes_t, dept_codes_t):
# … (473 more lines — open the code link for the complete file)Gemini 4 Neon Roster #2 · 0.5582 (Archive #25/75)
Multi-family M5 hierarchical forecasting ensemble combining: (1) PyTorch GPU 2D Weekly-by-Weekday Sequence CNN (M5WeeklySeqNet) trained end-to-end with exact 12-level WRMSSE + Tweedie loss and last-2-epoch SWA (w=0.45), (2) PyTorch GPU SwiGLU Tabular ResNet + Multi-Scale Horizon 1D-Conv (M5TabHorizonNet) trained with exact 12-level WRMSSE + Tweedie loss…
forecast.py (142 lines · MIT License)
def predict_nn_tab_from_X(ckpt_path, X_flat, N, H, device):
ckpt = torch.load(ckpt_path, map_location=device, weights_only=False)
n_feat = ckpt['n_features']
net = M5TabHorizonNet(n_features=n_feat, d_model=ckpt['d_model'], dropout=0.0).to(device)
net.load_state_dict(ckpt['state_dict'])
net.eval()
X_nhf = X_flat.reshape(N, H, n_feat)
anc = extract_anchor_from_X(X_nhf)
xn = ((transform_features_np(X_nhf) - ckpt['feat_mean']) / ckpt['feat_std']).astype(np.float32)
preds = []
chunk = 8192
with torch.no_grad():
for i0 in range(0, N, chunk):
i1 = min(N, i0 + chunk)
x_t = torch.from_numpy(xn[i0:i1]).to(device)
a_t = torch.from_numpy(anc[i0:i1]).to(device)
if device.type == 'cuda':
with torch.amp.autocast('cuda', dtype=torch.bfloat16):
p = net(x_t.to(torch.bfloat16), a_t)
else:
p = net(x_t, a_t)
preds.append(p.float().cpu().numpy())
return np.maximum(np.concatenate(preds, axis=0), 0.0).astype(np.float32)
def write_submission(output_path, origin_id, series_ids, horizons, preds):
n_series = len(series_ids)
if np.all(horizons == horizons[0]):
H = int(horizons[0])
# … (90 more lines — open the code link for the complete file)