♠ SPADE ♠ Split Peak Attention DEcomposition

Malcolm Wolff, Kin G. Olivares, Boris N. Oreshkin, Sunny Ruan, Sitan Yang, Abhinav Katoch, Shankar Ramasubramanian, Youxin Zhang, Michael W. Mahoney, Dmitry Efimov, Vincent Quenneville-Belair

TL;DR

Deep learning forecasters often overreact to massive demand spikes during holidays or flash sales, carrying artificially high predictions forward into quiet post-peak periods. SPADE (Split Peak Attention DEcomposition) solves this "carry-over" problem by cleanly separating time series into peak and non-peak components using masked convolutions and a lightweight, peak-specific attention mechanism. Evaluated on hundreds of millions of retail time series at Amazon, SPADE reduces post-peak forecast errors by 4.5% while boosting accuracy during peak events by 3.9%.

What Problem Does This Paper Address?

In large-scale retail forecasting, Peak Events (PEs)—such as Prime Day, Black Friday, and flash sales—cause sharp, temporary spikes in customer demand. State-of-the-art neural architectures like MQCNN and MQTransformer (MQT) struggle with the aftermath of these spikes:

  • The Carry-Over Effect: Recurrent or convolutional encoders ingest the massive peak values and propagate that elevated state into subsequent time horizons.
  • The Result: Severe upward bias in Post-Peak-Event (PPE) forecasts, causing over-stocking, increased warehouse costs, and frequent manual overrides.
  • The Dilemma: MQCNN tends to under-forecast peaks (dampening post-peak degradation at the cost of peak accuracy), while attention-based models like MQT predict the peak magnitude well but severely degrade post-peak.

Methods

SPADE operates within a sequence-to-sequence probabilistic forecasting framework, simultaneously generating multi-horizon quantile predictions (e.g., P50, P90). Its core design hinges on explicitly splitting the time series into a baseline demand process and a peak adjustment process:

  1. Masked Convolutions: Using known future indicators (such as planned promotional dates or holidays), SPADE generates a binary peak mask $m_{[t][h]}$. Any historical demand value marked as a peak is replaced via conditional forward-fill with the most recent non-peak value. The convolutional encoder only processes this smoothed, non-peak series, preventing extreme outlier states from polluting historical representations.
  2. Peak Attention: To capture the magnitude of spikes, a dedicated cross-attention module queries past peaks rather than the entire temporal history. By restricting attention keys and values strictly to historical peak occurrences, it generates a sharp forecast increment ($\Delta_{[t][h]}$) at a fraction of standard multi-head self-attention's computational cost.
  3. Additive Global Skip Connection: The final quantile prediction combines the baseline multi-horizon MLP decoder output with the sparse peak update: $$\hat{y}_{[t][h]} = \Delta_{[t][h]} + \text{MLPDecoder}\left(e^{(p)}_{[t]}, e^{(s)}\right)$$
Past Series ──> [Peak Masking & Forward-Fill] ──> [Dilated Convolutions] ──> [Decoder] ──(+)──> Final Forecast
                                                                                           │
Known Events ──> [Peak Attention (Over Historical Peaks Only)] ────────────────────────────┘

Datasets

The authors evaluated SPADE on two primary datasets:

  • Worldwide Retail Dataset (Amazon): A massive production dataset containing hundreds of millions of product time series across multiple countries. The training split spans three years (2019–2022) with a one-year evaluation period (2023).
  • Tourism-L (National Visitor Survey, Australia): 555 monthly series (1998–2016) aggregated geographically. Used for controlled ablation experiments by synthetically contaminating 3% of the series with variance-scaled noise to simulate peak demand spikes.

Key Insights and Ideas

  • Decoupling Baseline and Shocks: Standard neural networks try to model baseline trends, seasonality, and violent exogenous shocks in a single latent representation. Separating them via architectural constraints prevents the encoder memory from being corrupted by transient events.
  • Sparsity Beats Full Attention: You don't need a full horizon-to-horizon attention matrix to model special events. Filtering the attention search space strictly to prior peak events yields sharper spike forecasts while keeping compute and memory overhead minimal.
  • Better Scaling with Model Size and Data: By eliminating systematic carry-over bias, SPADE’s loss continues to decrease monotonically as training data scales from $10^8$ to $10^{10}$ series, with upper quantiles (P90 WQL) realizing the largest relative gains.

Key Results

Experiments evaluated Weighted Quantile Loss (WQL) across both median (P50) and tail (P90) distributions:

  • Large-Scale Retail Production:
  • During Peaks: SPADE outperforms MQT by 3% on P50 and 4% on P90, and beats MQCNN by 0.6% on P50 and 5% on P90.
  • Post-Peak Degradation (PPE): SPADE shows an overall 4.5% reduction in PPE degradation compared to standard production architectures.
  • Tourism-L Ablations:
  • Adding masked convolutions alone reduced post-peak P50 WQL error by 9.96% for MQT and 17.12% for MQCNN.
  • Combining masked convolutions with the Peak Attention module yielded the lowest variance and best overall quantile loss across seeds.

Limitations and Future Work

  • Dependence on Prior Labels: SPADE relies on explicit a priori causal flags (e.g., promotional calendars, deals metadata). It cannot natively protect against unexpected, unannounced demand shocks (such as sudden viral social media trends or supply chain panics).
  • Encoder Scope: While validated primarily on dilated convolutional and Transformer-style decoders, extending this split-decomposition framework to other backbones (e.g., state-space models, pure MLPs) remains unexplored.
  • Unsupervised Peak Detection: The authors highlight integrating autonomous, unsupervised event-detection mechanisms into the input pipeline as a crucial next step to eliminate dependence on manual event metadata.

Summary updated

BibTeX
@inproceedings{wolff2024spade,
  author = {Malcolm Wolff and Kin G. Olivares and Boris N. Oreshkin and Sunny Ruan and Sitan Yang and Abhinav Katoch and Shankar Ramasubramanian and Youxin Zhang and Michael W. Mahoney and Dmitry Efimov and Vincent Quenneville-Belair},
  title = {{♠ SPADE ♠ Split Peak Attention DEcomposition}},
  booktitle = {TSALM @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=psbFVen9z9},
}
Figure