Introduction
In modern industrial applications, such as managing retail inventory for millions of SKUs or tracking advertising impressions, time series forecasting faces a significant "trilemma" of scale, accuracy, and interpretability. Traditional statistical models like ARIMA are interpretable but difficult to scale and automate. Conversely, deep learning models like N-BEATS or PatchTST offer high capacity but often act as "black boxes" that are computationally expensive and hard for stakeholders to trust. Furthermore, real-world data is frequently "dirty," containing outliers, missing values, and structural breaks like those seen during the COVID-19 pandemic.
To address these challenges, Google researchers developed ARIMA_PLUS, a modular, in-database framework built directly into BigQuery. By utilizing a "divide-conquer-combine" statistical pipeline, ARIMA_PLUS achieves state-of-the-art accuracy while maintaining the scalability required to process 100 million time series in just 90 minutes.
The ARIMA_PLUS Pipeline
The core of ARIMA_PLUS is a modular assembly line that decomposes a time series into its constituent parts. Rather than fitting a single monolithic model, the framework sequentially extracts components, allowing for both robust modeling and high interpretability.
The pipeline consists of several key stages:
- Preprocessing & Regularization: Standardizes timestamps and handles missing data using LOESS or Kriging interpolation.
- Holiday & Event Extraction: Identifies spikes using a global holiday database or custom inputs, employing a "sub-holiday" approach to capture varying effects across multi-day events.
- Spikes and Dips Cleaning: Removes temporary anomalies using adaptive double exponential smoothing.
- Seasonality Extraction: Uses an enhanced version of STL (Seasonal and Trend decomposition using Loess) to handle multiple seasonalities (daily, weekly, yearly).
- Step Change Adjustment: Detects structural breaks or level shifts using rolling local forecasts and Chow tests to prevent old data regimes from biasing future predictions.
- Trend Modeling: The remaining residual trend is modeled via auto.ARIMA, with automatic order selection $(p, d, q)$ based on the Akaike Information Criterion (AIC).
For multivariate scenarios, the system integrates Ridge Regression to account for external covariates like weather or pricing before passing residuals into the univariate pipeline.
Evaluation and Scalability
The framework was rigorously benchmarked against 42 public datasets from the Monash Forecasting Repository, as well as internal Google use cases and public BigQuery datasets (e.g., Iowa liquor sales).
ARIMA_PLUS demonstrated superior performance, achieving a 17% improvement in geometric mean Mean Absolute Scaled Error (MASE) over the next best model. It ranked first in 11 datasets and within the top five for 19 out of 41. Beyond accuracy, the system is designed for massive scale. By operating within the BigQuery query engine (Dremel), it avoids the "data egress" bottleneck of moving data to external ML servers. In testing, it reached a throughput of over 18,000 time series per second, forecasting 100 million series in 1.5 hours using 5,000 BigQuery slots.
Key Insights
A primary finding of this research is that interpretability is a feature, not a trade-off. Because ARIMA_PLUS is modular, users can inspect the individual components (trend, holiday, seasonality) via functions like ML.EXPLAIN_FORECAST. This transparency allows business users to reconcile automated forecasts with their own domain intuition.
Furthermore, the results suggest that refined statistical models can outperform complex neural networks in industrial settings. Explicitly handling "dirty" data components—such as step changes and specific holiday effects—is often more effective than relying on a neural network to learn these patterns from noisy, limited samples. The researchers also noted that "less is more" regarding model complexity; increasing the ARIMA order beyond 2 often decreased robustness and increased training time without improving accuracy.
Limitations and Future Work
While highly effective, the authors noted that the sequence of modules can impact performance; some use cases benefit from reordering steps like outlier cleaning and seasonality extraction. Additionally, while AIC is used for local optimization of the trend, it does not directly optimize for final forecasting metrics like MASE. Future work may involve automating the customization of the modular sequence based on specific data characteristics.
Summary updated