Abstract
Cloud workload forecasting is essential for efficient auto-scaling in serverless and cloud environments. However, complex periodicity and dynamic concept drift make accurate prediction challenging. We introduce $E^3Former$, an online ensemble Transformer that utilizes multi-resolution feature extraction and rapid online adaptation. $E^3Former$ reduces forecasting errors by approximately 10% and has been deployed at scale within ByteDance to manage over 600,000 CPU cores, achieving a 40% reduction in resource utilization while maintaining high service quality.
Introduction
In modern cloud infrastructure, auto-scaling aims to dynamically match resource allocation with fluctuating user demand. Achieving this "holy grail" of efficiency is complicated by three primary factors:
- Complex Periodicity: Workloads often exhibit nested hourly, daily, and weekly cycles alongside irregular bursts.
- Changing Dynamics: "Concept drift" occurs when user behavior or system updates abruptly alter workload patterns.
- Latency Constraints: Because physical resources require time to initialize, models must provide high-precision forecasts minutes or hours in advance.
Existing solutions often fail to adapt quickly to these shifts or capture fine-grained patterns, leading to either costly over-provisioning or service-degrading under-provisioning.
System Overview
The proposed predictive auto-scaling system integrates workload forecasting directly into the resource management lifecycle. As shown in Figure 1, the system spans from the User Layer (request streams) through a Middle Layer (service initialization and resource allocation) to the Infra Layer (physical resources and monitoring).
The core of this architecture is the Workload Forecasting Model, which informs capacity recommendations and resource scheduling decisions to ensure Service Level Agreements (SLAs) are met efficiently.
The $E^3Former$ Framework
$E^3Former$ addresses the challenges of cloud workload forecasting through four synergistic components:
1. Representer and Multi-Resolution Patching
Instead of analyzing a single time window, the Representer employs "multi-resolution patching." It segments input data into patches of varying lengths (e.g., 8, 16, 32, and 64 units). This allows the model to explicitly capture nested cycles, ranging from short-term bursts to long-term daily trends.
2. Transformer Backbone
A parameter-shared Transformer backbone uses self-attention to capture long-range dependencies across these multi-resolution patches. To maintain efficiency, a Multi-Input Multi-Output (MIMO) mechanism allows the model to process multiple resolutions in parallel.
3. Online Adapter
The Adapter facilitates real-time model updates during inference using an Exponential Moving Average (EMA) of gradients. This enables the model to "pivot" quickly when detecting changes in workload distribution, mitigating the "slow switch" phenomenon common in standard online learning.
4. Ensembler
The Ensembler merges outputs from different sub-networks. Two variants are provided: Online Scaling (OS) for peak accuracy and Follow-The-Perturbed-Leader (FTPL) for high computational efficiency.
Experimental Evaluation
The $E^3Former$ was evaluated on twelve datasets, including six real-world ByteDance workload datasets and six public benchmarks (e.g., ETT, Electricity, and Weather).
- Accuracy: $E^3Former$ achieved an average reduction in MSE, MAE, and WMAPE of 13.9%, 11.7%, and 19.1%, respectively, compared to previous state-of-the-art models.
- Efficiency: Through its MIMO architecture, $E^3Former$ provides ensemble-level robustness with 800% higher throughput than competing methods like OneNet.
- Industrial Impact: Deployed within ByteDance’s Intelligent Horizontal Pod Auto-scaling (IHPA) platform, the system manages over 600,000 CPU cores. It reduced maximum Pod occupation by 29.4% and slashed system latency by 91.7% compared to standard Kubernetes Horizontal Pod Autoscaler (HPA).
Conclusion
$E^3Former$ demonstrates that combining multi-resolution feature extraction with rapid online adaptation can significantly improve cloud workload forecasting. Its successful large-scale deployment proves its readiness for industrial production, offering a path toward more "lean" and responsive cloud operations. Future work will focus on further reducing the "cold-start" gap and exploring even more efficient predictive auto-scaling architectures.
Summary updated