Abstract
Cloud workload prediction is critical for efficient resource auto-scaling, yet traditional models like LSTMs often fail to capture the bursty, non-linear nature of real-world traffic while suffering from high computational overhead. We present the Wasserstein Adversarial Transformer (WGAN-gp Transformer), a novel architecture that leverages the parallel processing capabilities of Transformers and the robust distribution-matching properties of Wasserstein GANs. Our model achieves a 5x speedup in inference and a 5.1% improvement in accuracy over state-of-the-art LSTM baselines, significantly mitigating VM over- and under-provisioning in production environments.
Introduction
Cloud providers rely on predictive auto-scaling to manage Virtual Machine (VM) resources dynamically. By forecasting spikes in demand, systems can pre-emptively spin up instances, avoiding the latency associated with "startup lag." However, cloud workloads are frequently "bursty"—characterized by sudden, stochastic spikes rather than smooth trends. Existing Long Short-Term Memory (LSTM) networks face two primary challenges: sequential processing bottlenecks that limit scalability, and an inability to accurately model highly dynamic, non-linear fluctuations.
Methodology: The WGAN-gp Transformer
The proposed architecture replaces recurrent units with a generative adversarial framework designed for speed and accuracy:
- Generator (Transformer): Utilizing an encoder-decoder Transformer architecture, the model employs attention mechanisms to process entire sequences in parallel. This eliminates the computational bottlenecks of sequential recurrence while capturing long-range dependencies.
- Critic (MLP): A Multi-Layer Perceptron acts as a "critic" within the Wasserstein GAN (WGAN) framework, evaluating the alignment between predicted workloads and the true data distribution.
- Gradient Penalty (gp): To ensure stable training and convergence, a gradient penalty is applied to enforce Lipschitz continuity, preventing gradient instability.
- Optimization: The MADGRAD optimizer was selected for its superior convergence properties in adversarial settings compared to standard Adam optimizers.
Experimental Datasets
The model was evaluated against seven diverse real-world workload traces, encompassing data center logs (Facebook Hadoop, Alibaba-2018, Google Cluster), web traffic (Wikipedia), and cloud services (Azure-VM, Azure-Func).
These datasets provide a rigorous testing ground, ranging from the highly seasonal patterns of Wikipedia to the chaotic, high-fluctuation spikes seen in Google and Facebook traces.
Key Insights and Performance
The transition to a Transformer-based adversarial model yields several critical advantages:
- Computational Efficiency: Parallelism allows the WGAN-gp Transformer to achieve a 5x faster inference time compared to the state-of-the-art LSTM baseline, LoadDynamics.
- Distributional Accuracy: By learning the underlying distribution rather than just minimizing point-wise error (MSE), the model handles "burstiness" more effectively.
- The Seasonality Trade-off: While the Transformer excels in reactive, bursty scenarios, LSTMs retain a slight advantage in datasets with strong, repetitive seasonality (e.g., Wikipedia), suggesting that recurrent memory is better suited for long-term cyclic patterns.
Results and Impact
Empirical results demonstrate a 5.1% lower Mean Absolute Percentage Error (MAPE) across most workloads. In real-world deployment on the Google Cloud Platform (GCP), the model significantly improved auto-scaling performance. For instance, on the Facebook workload, it reduced under-provisioning—a primary cause of application performance degradation—by nearly 28%.
Conclusion
The WGAN-gp Transformer represents a significant step forward in real-time cloud resource management. While currently optimized for one-step-ahead forecasting, future work will explore multi-step predictions and hybrid architectures to better integrate long-term seasonal memory with the Transformer's high-speed reactive capabilities.
Summary updated