Cloud services add machines when traffic rises, but new capacity takes minutes to arrive. Metrics must be observed, a controller must decide, a virtual machine or container must boot, and caches must warm. Predictive autoscalers try to close this gap by forecasting demand ahead of time. We argue that they fail during traffic bursts for a specific, testable reason. What matters is not the average accuracy of the forecast. It is whether the forecast's upper range, at a lookahead equal to the actual provisioning delay, is honest about how high demand can go. Neural and Gaussian forecasters tend to be overconfident exactly there. Current evaluation protocols hide this in two ways. They score forecasts at lookaheads shorter than the real delay, using data splits that let the model see outcomes it could not have seen at decision time. They also tune headroom knobs by replaying the same handful of historical bursts again and again, until the tuned setting fits those particular bursts rather than bursts in general.
The proposal has two parts. The first is a small recalibration layer that sits on top of any existing forecaster. It adjusts the forecaster's upper quantile at the service's measured provisioning lag, and it updates only with outcomes that would genuinely have been available at each decision. The second is an evaluation protocol that tests the layer on unseen future data. It enforces the lag, seals the most recent bursts from any tuning, and reports how much of each method's apparent gain comes from reusing the same burst events during tuning. If the layer beats strong autoscalers at equal cost under this protocol, that is a practical result. If the reuse gap turns out to be large, it also means published autoscaler gains are partly an artifact of how they were measured.
Core Claim
We make two claims. First, for predictive autoscalers, the quantity that governs service-level violations is the coverage of the forecast's upper quantile at horizon $L$ during burst regimes. Here $L$ is the service's end-to-end elastic lag, the time from a demand change to usable capacity. Coverage over all time steps can look fine while burst-time coverage is badly below nominal. Second, a lag-respecting online recalibration of that quantile removes most of the gap, and does so more cheaply than switching to a heavier uncertainty model. Concretely, the provisioning target at time $t$ is $\hat q_t + \theta_t$. Here $\hat q_t$ is the base forecaster's $\alpha$-quantile of demand at time $t+L$, and $\theta_t$ is a learned offset. The offset is updated as
$$\theta_{t+1} = \theta_t + \eta\left(\mathbf{1}\{y_{t} > \hat q_{t-L} + \theta_{t-L}\} - (1-\alpha)\right),$$
where $y_t$ is realized demand, $\eta$ is a step size, and the indicator compares today's demand with the target that was set $L$ steps ago. Because the update uses only outcomes whose forecast horizon has already elapsed, it never uses information unavailable at decision time. The rule raises the offset whenever the target was exceeded too often and lowers it otherwise, which pushes long-run exceedance toward $1-\alpha$ without assuming any noise distribution. We apply it separately inside burst and non-burst regimes, where regimes are flagged by a simple, pre-registered rate-of-change detector, so that calm periods cannot mask burst-time under-coverage.
The novelty is not online quantile tracking itself. It is three things together: matching the calibration horizon to a measured lag, enforcing the delay in how the offset is updated, and treating burst-regime tail coverage, rather than point error, as the target of evaluation.
How This Relates to Prior Work
Two lines of autoscaling work motivate the claim. AHPA shifts scaling actions earlier using periodicity decomposition, deep forecasters and queueing models. MagicScaler goes further: Gaussian-process regression supplies a predictive variance, which a risk-aware receding-horizon planner then consumes. MagicScaler is the closest existing work. It already treats forecast uncertainty as the lever against elastic lag. Our proposal differs in three ways. We check whether that uncertainty is calibrated at the lag horizon during bursts, rather than assuming a Gaussian form. We correct it with a distribution-free, delay-respecting offset. And we evaluate under a protocol where tuning cannot touch the scoring bursts. Continual Learning in Predictive Autoscaling keeps forecasters current under drift by selecting informative boundary samples. It notes that carrying adaptation into the decision layer is open, which is exactly the layer we recalibrate.
Queueing work explains why upper-tail errors matter more than average error. Lui et al. show that threshold-based systems collapse when capacity arrives after a short burst has passed. That asymmetry justifies targeting a high quantile. Work on CPU throttling constrains the study. CPU-Limits kill Performance and Shetty et al. show that some latency violations come from container limits rather than scaling decisions. We therefore hold resource limits fixed across all compared methods, so those violations are not credited to or blamed on the forecaster.
The evaluation protocol borrows from chronological-splitting work. Simonetto et al. show that ignoring labeling and deployment delays overestimates drift mitigation by up to 39.86% in Matthews correlation on a bank dataset. We port that lesson to autoscaling: the "delay" becomes the provisioning lag, and it must be imposed both on the updates and on the gap between the data used for tuning and the data used for scoring. The explicit gap between training and test periods used in Temporal Convolutional Networks for the Advance Prediction of ENSO supplies the purging idea.
Adaptive-overfitting theory supplies the lens on tuning. Dwork et al. show that repeatedly querying a holdout leaks its noise into the chosen model. Steinke and Ullman show that no efficient mechanism can answer arbitrarily many adaptive queries accurately. The relevant sample size for tail tuning is the number of distinct bursts, often a few dozen, not the number of minutes. This is why the concern is real for autoscalers even though telemetry is plentiful.
Some prior work constrains how much theory we can use. Adaptive Data Analysis for Growing Data and Shenfeld and Ligett give guarantees that assume stationary independent samples, which drifting workloads violate. We therefore do not claim formal guarantees. We measure reuse-induced optimism empirically.
On calibration, Kong et al. and Kapoor et al. improve calibration using static validation sets. Kapoor et al. explicitly leave calibration under drift open. AERA shows that observable confidence misleads when outcomes are non-monotonic, and that its stopping gate is sensitive to the set used to choose thresholds. We read that sensitivity as a warning about tuning on reused data.
Research Program
The work has three parts.
The first part is lag measurement. For each service or trace we estimate the distribution of $L$ by summing the four delay stages the literature identifies: metric windowing, controller decision time, boot, and warm-up. Where traces lack boot logs, we use the 10–13 minute lead that Lanciano et al. needed to beat a reactive scaler as a reference scale. We also sweep $L$ as a controlled variable.
The second part is the recalibration layer described above. It wraps three base forecasters: an AHPA-style decomposition plus deep forecaster, MagicScaler's Gaussian-process predictor, and a plain quantile-regression network. For MagicScaler, the upper quantile is read directly from the predictive distribution.
The third part is the evaluation protocol. Each trace is split chronologically into a tuning period, a purge gap of at least $L$, and a sealed tail that no method's hyperparameters may touch. Inside the tuning period, every method receives the same budget of backtest evaluations. We then compute a reuse optimism score: violation rate on the tuning-period bursts minus violation rate on the sealed-tail bursts, at the method's chosen configuration. As a secondary diagnostic, we compare two ways of tuning in the tuning period. One reuses the same bursts; the other uses a noise-added reusable holdout in the style of Dwork et al. This tests whether guarded reuse shrinks optimism at all under drift.
Scaling outcomes are produced by replaying traces through a Kubernetes-style simulator with injected boot and warm-up delays. KIS-S is the model for this. It provides ramp, periodic, random and spike patterns to which we add real traces.
Baselines
The naive reference is the standard reactive threshold scaler, the Kubernetes horizontal pod autoscaler, run with the same lag injection. AHPA reports that standard HPA has a 30% QoS violation rate versus 2.7% for AHPA on 14 days of Alibaba container-service traces. We expect a similar ordering, but we will not reuse those numbers directly, since they come from a different protocol.
The strongest simple competitor is a per-service static multiplicative headroom on the base forecast. Its single multiplier is tuned in the tuning period under the same evaluation budget. It is cheap and hard to beat, so every comparison is made at matched cost: we sweep headroom until its cost equals the proposal's cost, then compare violations.
The strongest existing method is MagicScaler. It reports reducing QoS violations by nearly 90% with a 1.2% increase in resource cost on Alibaba Cloud traces. We re-implement its Gaussian-process forecaster and risk-aware planner and run it on identical splits, lag, simulator and tuning budget. Beating it means one of two things on the sealed tail. Either fewer burst-period violations at equal or lower cost, or equal violations at lower cost, with the difference exceeding the spread across trace segments. We also run Continual Learning in Predictive Autoscaling's forecaster where its data permits. That paper reports a forgetting error of 15.70 versus 33.46 for simple fine-tuning on the CUE dataset, but CUE is Alipay-internal, so this comparison may be infeasible.
Three ablations isolate the key ingredients. The first calibrates at a one-step horizon instead of at $L$, to test lag matching. The second lets the offset update use outcomes immediately rather than after $L$ steps, to measure leakage in the Simonetto sense. The third calibrates on all time steps together instead of per regime.
Why not just…?
Why not just add a fixed safety buffer? A tuned static headroom is a real threat, especially on strongly periodic services. AHPA and MagicScaler argue that blanket over-provisioning is costly. Neither shows that a tuned, forecast-relative multiplier loses at matched cost. Our cost-matched comparison settles this. If headroom matches the layer on the sealed tail, the conclusion is that burst-regime adaptivity is unnecessary for that trace class, and we will report it that way.
Why not just use MagicScaler's predictive variance? It already models uncertainty. But a Gaussian variance fitted mostly on calm periods can under-cover the upper tail precisely when bursts begin. Our first decisive check measures burst-time coverage of its upper quantile at horizon $L$ directly. If that coverage is already near nominal, the recalibration layer adds little, and the contribution narrows to the evaluation protocol.
Why not just evaluate on a fresh future window instead of worrying about adaptive overfitting? Our protocol does exactly this through the sealed tail. What the alternative misses is that tuning within the past still reuses the same few bursts. The reuse-optimism score quantifies how misleading tuning-period results are. If optimism is negligible, the adaptive-overfitting concern is empirically unimportant for autoscalers. We will then drop the reusable-holdout component and say so.
Why not just apply temperature scaling or a one-off variance inflation? A single global rescaling fitted once cannot follow drift. It also averages burst and calm periods together, the failure the per-regime ablation targets. Kapoor et al. note that static calibration does not stay calibrated as data shifts. We include one-off global variance inflation, tuned in the tuning period, as an extra baseline to test this directly.
Proposed Experiments and Decisive Checks
We use the Alibaba traces from MagicScaler and AHPA and the CUE and ATEC workload data where access allows. The public Electricity dataset from Simonetto et al. and the ETT and Weather series from MagicScaler serve as demand-like proxies, with synthetic bursts injected at known times. The semi-synthetic ServiceNow/CAF_7M set provides extra series. No reported autoscaling result was found on Lacuna for ETT, Weather, Electricity or CAF_7M. For those, all numbers will be our own runs.
Metrics are burst-regime coverage of the upper quantile at horizon $L$, service-level violation minutes, p95 latency in the simulator, resource cost, and reuse optimism.
Three checks decide the proposal.
The first check tests the problem. Base forecasters, including MagicScaler's, must show burst-time upper-quantile coverage clearly below nominal at horizon $L$ while global coverage looks acceptable. If this fails, the diagnosis is wrong.
The second check tests the solution. The recalibration layer must reduce sealed-tail burst violations relative to both cost-matched headroom and MagicScaler. The lag-matched and delay-respecting ablations must each give up part of that gain. If only the immediate-update variant wins, the apparent gain was leakage.
The third check tests the measurement argument. Reuse optimism must be positive and must grow with the tuning budget for published autoscalers under our protocol. That would show their offline gains are partly selection effects. Whether the noise-added reusable holdout shrinks this optimism under drift, where existing guarantees do not apply, is reported either way.
References
- AHPA: Adaptive Horizontal Pod Autoscaling Systems on Alibaba Cloud Container Service for Kubernetes
- MagicScaler: Uncertainty-aware, Predictive Autoscaling
- Continual Learning in Predictive Autoscaling
- A fast and accurate iterative solution of a multi-class threshold-based queueing system with hysteresis
- CPU-Limits kill Performance: Time to rethink Resource Control
- On the Impact of Industrial Delays when Mitigating Distribution Drifts: An Empirical Study on Real-World Financial Systems
- Temporal Convolutional Networks for the Advance Prediction of ENSO
- Generalization in Adaptive Data Analysis and Holdout Reuse
- Interactive Fingerprinting Codes and the Hardness of Preventing False Discovery
- Adaptive Data Analysis for Growing Data
- Generalization in the Face of Adaptivity: A Bayesian Perspective
- Calibrated Language Model Fine-Tuning for In- and Out-of-Distribution Data
- Large Language Models Must Be Taught to Know What They Don’t Know
- AERA: Adaptive Evidence Residual Allocation for Efficient Test-Time Reasoning
- Predictive Auto-scaling with OpenStack Monasca
- KIS-S: A GPU-Aware Kubernetes Inference Simulator with RL-Based Auto-Scaling