SPADE-S: A Sparsity-Robust Foundational Forecaster

Malcolm Wolff, Matthew Li, Ravi Kiran Selvam, Hanjing Zhu, Kin G. Olivares, Ruijun Ma, Abhinav Katoch, Shankar Ramasubramanian, Mengfei Cao, Roberto Bandarra, Rahul Gopalsamy, Stefania La Vattiata, Sitan Yang, Michael W. Mahoney

TL;DR

SPADE-S is a new foundational forecasting architecture designed to handle highly heterogeneous time series characterized by massive variations in scale and extreme sparsity. By introducing a multi-head dilated convolutional encoder alongside a dedicated parametric sparse quantile network, it eliminates the systematic biases that cause standard deep learning models to underperform on low-velocity items. Evaluated on real-world retail datasets containing up to 700 million series, SPADE-S delivers up to a 15% improvement in forecast accuracy for sparse subsets without sacrificing performance on high-volume products.

What Problem Does This Paper Address?

State-of-the-art deep learning architectures excel at large-scale time series forecasting, but they suffer from a major blind spot: magnitude heterogeneity and sparsity. In supply chain and retail demand forecasting, products have vastly different sales velocities. A few items sell thousands of units a day, while millions of items sell only once every few months.

Standard deep learning models systematically underperform on these low-magnitude, sparse series due to three primary factors:

  1. Loss Function Bias: Common objective functions like Quantile Loss implicitly favor high-magnitude series. Under equal relative error, a high-volume item exerts a strictly larger influence on the aggregate loss than a low-volume item, causing the model to prioritize popular products.
  2. Distributional Collapse: When standard convolutional encoders process highly sparse histories (histories filled with zeros), their predictive uncertainty bands narrow and collapse toward zero. They fail to capture potential demand resurgences, as illustrated in the simulation below:
Figure 1: Convolutional forecast output by sparsity level; distributional collapse occurs at high levels of sparsity.
  1. Normalization Limitations: Popular time series normalization techniques (like RevIN) are poorly suited for probabilistic forecasting tasks where estimating the full predictive distribution—rather than just a point forecast—is required.

As businesses demand more granular forecasts (e.g., daily store-item level), datasets become inherently sparser, turning this systematic bias into a critical bottleneck for foundational forecasting models.

Methods

SPADE-S builds upon the SPADE (Split Peak Attention DEcomposition) architecture, introducing three novel components to robustly handle diverse scales and sparsity patterns:

  • Sparse Series Routing: The input batch is passed through a SparsityMask module. Series with zero aggregate demand over the trailing 52 weeks (and that are not newly listed products) are classified as "sparse" and routed to a specialized model arm. All other series follow the standard path.
  • Masked Multi-Head Dilated Convolutional Encoder: Non-sparse series are processed by an encoder that instantiates multiple identical dilated convolution stacks in parallel. Rather than manually engineering different receptive fields for each head, this approach leverages the variance-reduction power of an ensemble within a single, shared-structure encoder, providing the flexibility needed to scale across highly diverse magnitudes.
  • Sparse Quantile Network (SQN): Sparse series bypass the main encoder-decoder stack entirely to prevent them from biasing the rest of the network. Instead, the SQN uses a patched MLP to estimate the scale parameter ($\theta$) of a simple parametric distribution (such as an exponential distribution). It then applies the distribution's inverse cumulative distribution function (ICDF) to generate robust, stable quantile forecasts that avoid distributional collapse.

The complete architectural pipeline is detailed below:

Figure 2: SPADE-S architecture, including modules to address diverse time series magnitudes, including masked multi-head dilated convolutional encoder, sparse series routing and a sparse quantile network.

Datasets

The authors evaluated SPADE-S on three massive, internal datasets from a large online retailer, representing different velocity profiles:

  • D1 (Low Velocity): Worldwide listing-level weekly demand forecasts consisting of ~700 million unique series spanning 260 weeks (2017–2022) for training and 52 weeks (2023) for backtesting. Roughly 63.7% of these series are extremely sparse ("Zero" demand in the prior year).
  • D2 (Extremely Low Velocity): Weekly regional product demand forecasts across a 10-week horizon, totaling ~100 million series. Over 90% of the series fall into the "Zero" demand category.
  • D3 (Moderate Velocity): Daily store-level product demand forecasts across a 91-day horizon, containing ~3 million unique series spanning 730 days. Only 9.62% of the series are sparse.

Key Insights and Ideas

  • The Mathematics of Neglect: The authors mathematically demonstrate that standard losses like Mean Squared Error (MSE), Continuous Ranked Probability Score (CRPS), and Quantile Loss scale directly with absolute magnitude under equal relative error. This creates a self-reinforcing bias that erodes accuracy for emerging markets and low-scale applications.
  • Parametric Fallbacks for Extreme Sparsity: When data is overwhelmingly sparse, neural networks struggle to learn non-parametric distributions cleanly. Forcing the sparse arm of the network to output parameters for a simple, mathematically sound distribution (like an exponential or truncated normal distribution) acts as a regularizer, preventing the model from collapsing its uncertainty bands to zero.
  • Routing Protects High-Velocity Items: Separating sparse items doesn't just help the sparse items; it protects the high-velocity items. In the D2 dataset, routing zero-demand items away prevented them from dragging down the forecasts of faster-moving products, significantly reducing under-prediction.

Key Results

SPADE-S was compared against baseline models (SPADE for D1 and D2; MQTransformer for D3) and demonstrated consistent improvements across all datasets:

  • Overall Accuracy Gains: SPADE-S achieved overall P90 quantile loss improvements of 2.21% (D1), 6.58% (D2), and 4.28% (D3), alongside P50 improvements of 0.92% (D1), 0.77% (D2), and 1.95% (D3).
  • Low-Velocity Performance: On the low-velocity D1 dataset, P90 forecast accuracy improved by 2.50% for "slow", 5.54% for "super slow", and 10.05% for "zero" demand products.
  • High-Velocity Performance: On the extremely sparse D2 dataset, isolating the sparse items led to massive P90 improvements for the remaining active products: 10.30% for "Super Fast", 14.80% for "Fast", and 12.20% for "Medium" velocity items.

Limitations and Future Work

  • Parametric Constraints: The Sparse Quantile Network relies on simpler distributions (like the exponential distribution) to maintain computational efficiency and closed-form solutions for tail quantiles. Exploring more flexible, zero-inflated distributions without dramatically increasing training and inference costs remains an open challenge.
  • Tuning Head Count: The optimal number of convolutional heads depends heavily on the dataset's sparsity profile. For instance, ablation studies revealed that a 2-head configuration actually outperformed a 6-head configuration on the highly sparse D2 dataset, suggesting that hyperparameter tuning for head count is sensitive to the data mix.
  • Domain Generalization: While highly successful across massive retail demand forecasting use cases, the architecture's performance has not yet been benchmarked on other heterogeneous, sparse domains like financial transactions or intermittent IoT sensor data.

Summary updated

BibTeX
@misc{wolff2025spade,
  author = {Malcolm Wolff and Matthew Li and Ravi Kiran Selvam and Hanjing Zhu and Kin G. Olivares and Ruijun Ma and Abhinav Katoch and Shankar Ramasubramanian and Mengfei Cao and Roberto Bandarra and Rahul Gopalsamy and Stefania La Vattiata and Sitan Yang and Michael W. Mahoney},
  title = {{SPADE-S: A Sparsity-Robust Foundational Forecaster}},
  year = {2025},
  eprint = {2507.21155},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.21155},
}
Figure