Cluster-and-Conquer: A Framework For Time-Series Forecasting

Reese Pathak, Rajat Sen, Nikhil Rao, N. Benjamin Erichson, Michael I. Jordan, Inderjit S. DhillonarXiv 2021

Abstract

In high-dimensional time-series forecasting, researchers typically choose between fast univariate models that ignore cross-series correlations and powerful multivariate models that suffer from poor scalability. We present "Cluster-and-Conquer," a three-stage meta-framework that bridges this gap. By clustering similar time series and applying joint models only within these clusters, the framework captures essential dependencies without the $O(n^6)$ computational cost of full multivariate modeling. Empirical results demonstrate that this approach, even when using simple linear models, can outperform state-of-the-art deep learning methods on large-scale traffic and medical datasets.

Introduction

Modern forecasting tasks, such as predicting demand for millions of retail items or monitoring thousands of urban sensors, present a significant challenge. Univariate modeling is computationally efficient and parallelizable but fails to capture inter-series correlations (e.g., how weather in one region affects energy demand in another). Conversely, multivariate models like Vector Autoregression (VAR) capture these relationships but scale poorly—a standard VAR model has a complexity of $O(n^6)$, where $n$ is the number of series.

The "Cluster-and-Conquer" framework addresses this by providing a statistically and computationally efficient alternative. It filters out irrelevant inter-cluster noise while focusing on meaningful intra-cluster signals, allowing for high-dimensional forecasting that is both accurate and scalable.

Methods: The Three-Stage Framework

The Cluster-and-Conquer framework operates in three distinct phases:

  1. The Local Step: An independent univariate model (e.g., a scalar Autoregression model) is trained for each individual time series. This step is "embarrassingly parallel," making it highly efficient for massive datasets.
  2. The Clustering Step: The parameters (coefficients) learned in the local step serve as features to group similar time series into $k$ clusters. Scalable algorithms like METIS or spectral clustering are employed to handle high-dimensional feature spaces.
  3. The Global Step: For each identified cluster, a joint multivariate model (such as a VAR model) is trained. Since each cluster contains only a fraction of the total series, the computational bottleneck of full multivariate modeling is bypassed.
Figure 1: Illustration of the block-wise data structure used for joint forecasting within clusters.

As shown in Figure 1, the data is organized into blocks for the global modeling step. This structure allows the framework to efficiently process segments of the time series while maintaining the temporal dependencies required for accurate forecasting. By adjusting the number of clusters $k$, the framework can interpolate between purely univariate ($k=n$) and fully multivariate ($k=1$) modeling.

Experimental Results

The framework was evaluated against synthetic benchmarks and several real-world datasets, including PEMS07 (traffic flow), ECG (medical data), and Electricity (energy consumption).

Performance Against Deep Learning

A key finding is that Cluster-and-Conquer, using simple linear AR/VAR models, consistently outperformed sophisticated deep learning architectures. On the PEMS07 and ECG datasets, it surpassed state-of-the-art models like DeepGLO and StemGNN across metrics such as Mean Absolute Error (MAE) and Root Mean Square Error (RMSE). This suggests that the structural organization of the model—grouping related series—can be more impactful than the complexity of the underlying function class.

Efficiency and Robustness

The authors demonstrated that training time decreases significantly as the number of clusters increases. Furthermore, the framework proved robust to the choice of $k$, maintaining consistent performance even when the optimal number of clusters was not precisely known. This robustness is critical for real-world applications where the underlying group structure of the data is often latent.

Discussion and Conclusion

Cluster-and-Conquer highlights that linearity is often underrated in time-series forecasting when paired with the right structural framework. By clustering, the model naturally filters out noise from unrelated series, reducing model variance.

While the current implementation uses static clustering and linear models, future work could extend this to dynamic clustering to account for evolving relationships between series. Additionally, the framework is model-agnostic, meaning non-linear models like LSTMs or Transformers could be integrated into the local or global steps to further enhance predictive power. Ultimately, Cluster-and-Conquer provides a rigorous, scalable path forward for high-dimensional forecasting.

Summary updated

BibTeX
@misc{pathak2021cluster,
  author = {Reese Pathak and Rajat Sen and Nikhil Rao and N. Benjamin Erichson and Michael I. Jordan and Inderjit S. Dhillon},
  title = {{Cluster-and-Conquer: A Framework For Time-Series Forecasting}},
  year = {2021},
  eprint = {2110.14011},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.14011},
}
Figure