Multiscale Representation Enhanced Temporal Flow Fusion Model for Long-Term Workload Forecasting

Shiyu Wang, Zhixuan Chu, Yinbo Sun, Yu Liu, Yuliang Guo, Yang Chen, Huiyang Jian, Lintao Ma, Xingyu Lu, Jun Zhou · DOI

Introduction

In cloud computing environments, accurately predicting workload—often measured in Requests Per Second (RPS)—is critical for operational efficiency. Under-prediction leads to system instability and crashes, while over-prediction results in the wasteful consumption of expensive server resources. Researchers from Ant Group and Zhejiang University have introduced a novel two-stage framework designed to master long-term workload forecasting by combining multiscale self-supervised learning with Conditional Normalizing Flows.

The Challenge of Cloud Workloads

Current Transformer-based models often struggle with cloud workload data due to three primary hurdles:

  1. Complex Periodicity: Workloads exhibit overlapping cycles (hourly, daily, weekly) and non-stationary trends that are difficult to capture in a single sequence.
  2. Non-Gaussian Distributions: Real-world traffic is frequently non-linear and "messy," defying the standard "bell curve" assumptions of most statistical models.
  3. History-Forecast Gap: There is a persistent difficulty in effectively integrating long-term historical patterns with immediate, rapidly changing near-term observations.

Methods: A Two-Stage Framework

The proposed solution addresses these challenges through a decoupled architecture that separates historical pattern encoding from the final prediction task.

Overview of the two-stage framework: Multiscale Representation and Temporal Flow Fusion.

1. Multiscale Representation Stage (Pretraining)

Instead of processing the entire timeline as a monolithic sequence, the model employs self-supervised contrastive learning to analyze data at multiple scales (day, week, month, quarter).

  • Time Domain Analysis: Causal convolutions are used to extract underlying trends.
  • Frequency Domain Analysis: Fast Fourier Transforms (FFT) identify periodic "heartbeats" within the data. These representations are stored in a database as compressed vectors, creating a robust "memory" of long-term workload behavior.

2. Fusion Prediction Stage

During the forecasting phase, the model retrieves relevant multiscale memories and fuses them with current observations to generate a prediction.

Detailed architecture of the Fusion Prediction Stage, highlighting FusionAttention and Conditional Normalizing Flow.
  • FusionAttention: A multi-head attention mechanism intelligently weighs the long-term historical representations against near-term reality captured by an RNN encoder.
  • Conditional Normalizing Flow (CNF): To handle non-Gaussian distributions, the model uses Normalizing Flows (specifically a modified RealNVP architecture). This component maps complex, non-linear data distributions into a simpler space, allowing the model to "learn" the true shape of the traffic distribution rather than forcing it into a predefined statistical mold.

Results and Real-World Impact

The model was evaluated against 9 benchmarks, including standard datasets (ETT, Electricity, Traffic) and a massive "Service-Workload" dataset comprising RPS data from 1,589 microservices at Alipay.

  • Performance Gains: The framework achieved State-of-the-Art (SOTA) results, showing a 26% improvement on the Alipay workload dataset and a 32% improvement on Solar-Energy compared to previous leading methods like TimeMAE.
  • Operational Efficiency: Upon deployment in Alipay’s production cloud, the model's superior accuracy enabled a 67% reduction in server resource consumption for certain microservices, reducing the required container count from 1,500 to fewer than 500.

Conclusion

By decoupling historical representation from immediate prediction and utilizing Normalizing Flows to model complex distributions, this framework provides a powerful tool for cloud resource management. While the two-stage architecture adds some complexity, the significant gains in accuracy and the massive reduction in real-world resource costs demonstrate its practical value for large-scale cloud infrastructures.

Summary updated

BibTeX
@inproceedings{wang2024multiscale,
  author = {Shiyu Wang and Zhixuan Chu and Yinbo Sun and Yu Liu and Yuliang Guo and Yang Chen and Huiyang Jian and Lintao Ma and Xingyu Lu and Jun Zhou},
  title = {{Multiscale Representation Enhanced Temporal Flow Fusion Model for Long-Term Workload Forecasting}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2024},
  doi = {10.1145/3627673.3680072},
}
Figure