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).

16 / 22beat all 24 organizer benchmarks (3 in Top 50)
0.5575best LLM WRMSSE (#22 / 51 Kaggle Top 50)
42,840evaluated nodes (30,490 series · 12 levels)
12-level reconciliation hierarchy28-day horizon · SNAP calendars + sell prices · 60 min
10 stores across 3 states (CA, TX, WI)×3,049 items=30,490 item-store series→42,840 nodes across 12 equal-weight levels

Competition records & historical benchmarks

Metric / Cohort Historical Archive #1 Fixed Baseline Best LLM Leading Model
12-Level Hierarchical WRMSSE0.5204 (YJ_STU #1 of 5,558 teams)0.8470 (Seasonal Naive)0.5575Gemini 4 Argon ★ #22 / 51 Kaggle Top 50
Best Organizer Benchmark (24 methods)0.6710 (ES_bu #1 benchmark)0.9254 (Global LightGBM)0.5575Gemini 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

Forecast curves shown
Hover or focus any horizon step to compare exact ground truth against each model’s prediction.
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

Best LLM Median LLM Global LGB base S.Naive
LEVEL NODES HIERARCHY FAN-OUT (LOG) LEVEL RMSSE (0 → 1.22) BEST L1 Total10.278L2 State30.365L3 Store100.422L4 Category30.320L5 Department70.394L6 State×Cat90.438L7 State×Dept210.511L8 Store×Cat300.503L9 Store×Dept700.601L10 Item3,0490.958L11 Item×State9,1470.921L12 Item×Store30,4900.879
Hierarchy LevelScopeSeries / NodesHorizonS.Naive WRMSSEGlobal LGBBest LLMLeaderMedian LLMMedian LLM < S.Naive
L1 TotalAll Walmart US unit sales1280.56000.84360.2780Gemini 4 Argon0.4252100.0%
L2 StateCA, TX, WI3280.67310.86620.3655Gemini 4 Argon0.4812100.0%
L3 Store10 stores (CA_1..WI_3)10280.71760.87590.4224Gemini 4 Argon0.522290.0%
L4 CategoryFOODS, HOBBIES, HOUSEHOLD3280.62300.87020.3198Gemini 4 Neon0.4491100.0%
L5 Department7 departments7280.70820.95950.3936Gemini 4 Neon0.526485.7%
L6 State×Cat9 state-category aggregates9280.76000.90880.4379Gemini 4 Neon0.5337100.0%
L7 State×Dept21 state-department aggregates21280.82920.97380.5110Gemini 4 Neon0.609595.2%
L8 Store×Cat30 store-category aggregates30280.80080.90750.5032Gemini 4 Argon0.592996.7%
L9 Store×Dept70 store-department aggregates70280.88810.96540.6005Gemini 4 Neon0.674391.4%
L10 Item3,049 national item totals3,049281.22331.04550.9576GPT-6.2 Astra0.993192.3%
L11 Item×State9,147 state item series9,147281.20450.97680.9207GPT-6.2 Astra0.947594.4%
L12 Item×Store30,490 bottom-level item-store series30,490281.17640.91190.8788GPT-6.2 Astra0.896293.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

42,840total nodes
39,375consensus LLM wins (≥20/22 beat Seasonal Naive)
40,374majority LLM wins (≥13/22 beat Seasonal Naive)
1,387split / contested (1–12/22)
1,079hard — 0/22 LLMs beat Seasonal Naive

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
Page 1

Search trajectories across committed checkpoints

Hidden-test score over the 60-minute research window

Every valid commit snapshotted without returning test feedback

Models shown
Hover any checkpoint dot to inspect commit timestamp and hidden-test score.

All 22 models on M5 Accuracy (2020)

ModelWRMSSEArchive RankKaggle Top-50Bench-24 RankEstimator FamiliesReplayCommitsEst. CostRepo
01Gemini 4 Argon0.5575#22/75#22/51#1/25
LightGBMNeural networkForecast combinationCross-sectional / shrinkage
Source + 6 art.5$3.54
02Gemini 4 Neon0.5582#25/75#25/51#1/25
LightGBMNeural networkNaive / seasonal naiveCroston / intermittent demand
Source + 4 art.3$4.78
03GPT-6.2 Sol0.5606#28/75#28/51#1/25
ThetaETS / exponential smoothingLightGBMLinear / ridge regression
Source + 22 art.7$4.34
04Opus 5.50.5966#51/75—#1/25
LightGBM
Pure source5$1.59
05Sonnet 5.50.6001#51/75—#1/25
LightGBM
Pure source3$1.94
06Haiku 5.50.6077#51/75—#1/25
Neural network
Pure source6$0.09
07GPT-6.2 Astra0.6145#51/75—#1/25
ETS / exponential smoothingLightGBMNeural networkDrift
Source + 7 art.6$13.73
08Muse Spark 1.30.6221#51/75—#1/25
LightGBMForecast combination
Source + 4 art.10$1.25
09Fable 5.20.6224#51/75—#1/25
LightGBMNeural networkForecast combination
Source + 20 art.6$8.50
10Gemini 4 Carbon0.6324#51/75—#1/25
LightGBMNeural networkForecast combinationCross-sectional / shrinkage
Source + 4 art.4$3.23
11GPT-6 Astra0.6365#51/75—#1/25
LightGBMLinear / ridge regressionNeural networkCross-sectional / shrinkage
Source + 3 art.8$15.69
12Fable 5.10.6422#51/75—#1/25
LightGBMNeural networkForecast combination
Source + 1 art.6$7.25
13Grok 4.70.6426#51/75—#1/25
LightGBMForecast combinationCross-sectional / shrinkage
Source + 29 art.8$1.94
14GPT-6.1 Sol0.6543#51/75—#1/25
LightGBMLinear / ridge regressionNeural network
Source + 4 art.8$1.69
15Kimi K3.1 Pro0.6607#51/75—#1/25
LightGBMNeural networkForecast combination
Source + 5 art.8$3.04
16Gemini 4 Hydrogen0.6692#51/75—#1/25
LightGBMNeural networkForecast combination
Source + 12 art.3$1.97
17Gemini 3.8 Flash0.6885#54/75—#4/25
LightGBMCross-sectional / shrinkage
Source + 3 art.12$3.49
18DeepSeek V4.1 Flash0.6896#54/75—#4/25
Neural networkForecast combination
Pure source5$0.11
19GPT-6 Luna0.7321#57/75—#7/25
Cross-sectional / shrinkage
Pure source9$0.13
20GLM-5.30.7594#58/75—#8/25
LightGBMForecast combination
Pure source4$1.35
21Muse Wonder 1.00.7644#58/75—#8/25
LightGBMNeural networkForecast combination
Pure source6$4.03
22MiMo-V2.6-Pro588.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)
Episode Inspector

Loading episode…

Loading pipeline bundle…