Continual Learning in Predictive Autoscaling

Hongyan Hao, Zhixuan Chu, Shiyi Zhu, Gangwei Jiang, Yan Wang, Caigao Jiang, James Y. Zhang, Wei Jiang, Siqiao Xue, Jun ZhouCIKM 2023

Abstract

Predictive autoscaling is a critical component of modern cloud infrastructure, enabling proactive resource allocation to meet fluctuating demand. However, the non-stationary nature of cloud workloads—characterized by sudden traffic spikes and evolving patterns—presents a significant challenge. Traditional approaches rely on periodic retraining from scratch, which is computationally expensive and storage-intensive. This paper discusses the Density-based Memory Selection and Hint-based Network Learning Model (DMSHM), a novel continual learning framework designed specifically for regression tasks in autoscaling. By utilizing kernel density estimation for memory management and intermediate layer "hints" for knowledge distillation, DMSHM reduces resource consumption by nearly 70% while significantly improving prediction accuracy compared to state-of-the-art methods.

Introduction

In cloud computing, predictive autoscaling serves as a forecasting mechanism that anticipates server workloads, allowing systems to adjust resources before performance bottlenecks occur. Despite its importance, real-world data is rarely stationary. Events such as application updates, marketing promotions, or seasonal shifts cause traffic patterns to change abruptly.

To maintain accuracy, the current industry standard involves retraining models using massive windows of historical data. At scale, this is prohibitively expensive. For instance, retraining a single application zone at Alipay requires approximately 119GB of storage and over 1,800 CPU core-hours. While Continual Learning (CL) offers a theoretical alternative by allowing models to learn from new data incrementally, it faces two primary hurdles in the context of autoscaling:

  1. Sample Overlap: In regression-based forecasting, new data often overlaps significantly with historical data, making it difficult to select a representative and diverse "memory set" to prevent forgetting.
  2. The Regression Gap: Most CL techniques rely on "dark knowledge" distillation from classification logits. Because regression models output continuous values rather than probability distributions, standard distillation techniques are ineffective.

The DMSHM Framework

The DMSHM framework addresses these challenges through two primary innovations: Density-based Memory Selection (DMS) and Hint-based Network Learning.

Density-based Memory Selection (DMS)

Rather than selecting historical samples randomly—which often leads to redundancy—DMS employs Kernel Density Estimation (KDE) to evaluate the spatial distribution of data points. By calculating the "crowdedness" of samples, the system identifies "border samples" representing rare or critical patterns. Furthermore, the framework introduces a ShiftLevelScore to detect genuine distribution shifts. This ensures that the memory set remains diverse and focuses on the most informative data points, effectively managing the trade-off between plasticity (learning new patterns) and stability (retaining old ones).

Hint-based Network Learning

To bridge the "regression gap," DMSHM moves beyond final output distillation. Instead, it utilizes intermediate representations—the outputs from the neural network's middle layers—as "hints." By forcing the current model to mimic the internal feature extraction process of its predecessor, the framework preserves structural knowledge. This approach allows the model to retain prior insights without requiring the classification logits used in traditional distillation methods.

Experimental Evaluation

Datasets

The researchers evaluated DMSHM using two distinct industrial datasets:

  • ATEC Dataset: A publicly available industrial dataset focused on workload forecasting.
  • CUE Dataset: An internal dataset from Alipay containing nine types of traffic metrics and CPU utilization recorded per minute over eight days. This dataset is particularly challenging due to frequent and significant distribution shifts.

Performance and Efficiency

DMSHM was benchmarked against several baselines, including standard Fine-tuning, CLeaR, and DER++. The results demonstrated that DMSHM consistently achieved the lowest Forgetting Error (FE) and Prediction Error (PE). On the CUE dataset, DMSHM reduced the Forgetting Error to 15.70, a stark improvement over the 33.46 error rate observed with simple fine-tuning.

Beyond accuracy, the framework delivered substantial efficiency gains in a real-world deployment across 20,000+ zones at Alipay Cloud:

  • Training Time: Reduced from 113 minutes to 36 minutes.
  • Storage Requirements: Dropped from 119 GB to 37 GB.
  • Robustness: The model maintained high predictive accuracy even during sudden configuration changes and app behavior shifts.

Conclusion and Future Work

DMSHM represents a significant step toward "green computing" in large-scale data centers. By reducing the compute and storage footprint of model maintenance by approximately 70%, the framework demonstrates that continual learning can be both more accurate and more sustainable than traditional retraining cycles.

Future research will focus on extending this approach to the final stage of the autoscaling pipeline: scaling decision-making. While DMSHM excels at forecasting, the decision to add or remove nodes often involves reinforcement learning. Integrating continual learning directly into the decision logic could result in a fully end-to-end adaptive system. Additionally, the team plans to explore optimized kernel functions to further refine the DMS module for diverse industrial time-series data.

Summary updated

BibTeX
@inproceedings{hao2023continual,
  author = {Hongyan Hao and Zhixuan Chu and Shiyi Zhu and Gangwei Jiang and Yan Wang and Caigao Jiang and James Y. Zhang and Wei Jiang and Siqiao Xue and Jun Zhou},
  title = {{Continual Learning in Predictive Autoscaling}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2023},
  url = {https://openreview.net/forum?id=TpMoAnIhir},
}
Figure