Graph Deep Factors for Forecasting with Applications to Cloud Resource Allocation

Hongjie Chen, Ryan A. Rossi, Kanak Mahadik, Sungchul Kim, Hoda Eldardiry

TL;DR

This paper introduces Graph Deep Factors (GraphDF), a novel framework for probabilistic time-series forecasting that leverages graph structures to model arbitrary dependencies between time series. By combining relational global and local models, GraphDF achieves superior accuracy and efficiency, demonstrating its practical utility in optimizing cloud resource utilization.

What Problem Does This Paper Address?

Forecasting time-series data is crucial in many domains, from finance to resource management. Existing deep learning approaches often fall into two extremes: treating time series as completely independent (local models) or entirely interconnected (global models). This is problematic because real-world systems often exhibit complex, non-uniform dependencies. For instance, in cloud computing, the resource usage of one machine can be highly correlated with a specific subset of other machines, not all of them. This paper addresses the challenge of modeling these nuanced, arbitrary dependencies in large collections of time series for more accurate and efficient probabilistic forecasting.

Methods

The core innovation is the Graph Deep Factors (GraphDF) framework, which models time series as nodes in a graph, with edges representing dependencies. GraphDF is a hybrid approach combining two key components:

  • Relational Global Model: This component learns complex, non-linear patterns across all time series by leveraging the graph structure. Instead of treating all series as fully connected, it uses graph convolutions to efficiently capture global dependencies, improving computational efficiency and scalability.
  • Relational Local Model: This component focuses on individual time series but also incorporates information from neighboring time series (1-2 hops away in the graph). This makes the model more data-efficient, especially for shorter time series, and helps capture local fluctuations and uncertainties.

GraphDF is designed to be flexible, allowing for interchangeable components. The paper explores using Graph Convolutional Recurrent Networks (GCRN) and Diffusion Convolutional Recurrent Networks (DCRNN) for the global component and various RNN-based models for the local component. The output is a probabilistic forecast, providing not just point estimates but also uncertainty measures.

Datasets

The paper evaluates GraphDF on two real-world cloud traces:

  • Google Trace Data: Records CPU and memory usage for approximately 12,580 machines over 29 days, with data aggregated to machine level at 5-minute intervals.
  • Adobe Workload Trace: Captures CPU and memory usage for 3,270 nodes over roughly 35 days, with a 30-minute timescale.

The authors construct graphs for these datasets by estimating edge weights based on the similarity of time-series data between nodes.

Key Insights and Ideas

  • Beyond Extremes: The paper highlights that real-world time-series dependencies are rarely purely independent or fully connected. GraphDF's ability to model arbitrary graph structures is a significant step beyond existing methods.
  • Graph Structure as a Shortcut: By explicitly encoding dependencies in a graph, GraphDF avoids the computational burden of fully connected models, leading to improved efficiency and scalability.
  • Data Efficiency through Neighborhoods: The relational local model's use of neighboring time-series data makes it more robust and accurate, especially when dealing with limited historical data for individual series.
  • Probabilistic Forecasting for Actionable Insights: The probabilistic nature of GraphDF's forecasts is crucial for applications like opportunistic scheduling, where understanding uncertainty is as important as the prediction itself.

Key Results

  • Superior Forecasting Accuracy: GraphDF models consistently outperformed state-of-the-art probabilistic forecasting methods (Deep Factors, DeepAR, MQRNN, NBEATS) across various datasets and forecast horizons, achieving significantly lower variance in predictions. For example, GraphDF-GG showed strong performance in both Google and Adobe datasets.
  • Enhanced Efficiency and Scalability: GraphDF demonstrated significantly faster training times compared to Deep Factors, scaling nearly linearly with the amount of training data. Inference was also very fast, crucial for real-time applications.
  • Practical Cloud Optimization: In a case study on opportunistic workload scheduling, GraphDF-based forecasting led to a substantial increase in cloud cluster utilization (up to 47.5% on average) by enabling more accurate scheduling of batch workloads on underutilized resources, with a lower cancellation ratio compared to DF.

Limitations and Future Work

  • Graph Construction: The paper relies on pre-defined or learned graph structures. The quality of the graph significantly impacts performance, and methods for robust graph construction remain an area for further exploration.
  • Model Interpretability: While GraphDF offers improvements, the deep learning components can still be challenging to interpret fully.
  • Future Work: The authors suggest exploring more sophisticated graph construction techniques, investigating different graph neural network architectures, and extending the framework to handle more complex forecasting scenarios and diverse types of time-series data. The flexibility of GraphDF also opens doors for integrating it with other advanced forecasting techniques.

Summary updated

BibTeX
@inproceedings{chen2021graph,
  author = {Hongjie Chen and Ryan A. Rossi and Kanak Mahadik and Sungchul Kim and Hoda Eldardiry},
  title = {{Graph Deep Factors for Forecasting with Applications to Cloud Resource Allocation}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2021},
  doi = {10.1145/3447548.3467357},
}
Figure