Manuscript Offprint
arXiv:2610.12265AdaptLSTM: Efficient Adaptive Online Learning for Cloud Workload Forecasting under Distribution Drift
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Accurate workload forecasting is critical for elastic resource provisioning in web-scale cloud services, where distribution shifts driven by viral content, product launches, and user behavior degrade offline-trained models rapidly. Naive online learning recovers accuracy but incurs prohibitive per-step compute cost. We propose AdaptLSTM, an adaptive online framework that detects drift via validation-calibrated thresholds and applies selective, targeted updates. On the Alibaba Machine Trace, AdaptLSTM recovers 54% of Naive Online's improvement at 20% cost (2.7× efficiency, p = 0.002 over 10 seeds). On the more volatile Container Trace, it achieves 96% at 20% cost (4.8× efficiency, +75% MAE reduction over Static). Unlike classical drift detectors (ADWIN, DDM, Page-Hinkley) which fail to trigger on regression-scale error streams, AdaptLSTM fires 42 times over 301 steps and outperforms matched-budget baselines. Wall-clock profiling shows 1.33× throughput gain and 45% update-time reduction. The framework is model-agnostic: identical Pareto patterns hold for LSTM, GRU, and Transformer backbones.
CCS Concepts
• Computing methodologies → Online learning settings; • Computer systems organization → Cloud computing.
ACM Reference Format:
Xinhua Miao, Bowei Yang, and Zhengong Cai . 2018. AdaptLSTM: Efficient Adaptive Online Learning for Cloud Workload Forecasting under Distribution Drift. In Proceedings of Make sure to enter the correct conference title from your rights confirmation email (Conference acronym 'XX). ACM, New York, NY, USA, 12 pages. https://doi.org/XXXXXXX.XXXXXXX
1 Introduction
Accurate workload forecasting is critical for elastic resource provisioning in web-scale cloud services, where request patterns are shaped by product launches, viral content, diurnal user behavior, and social-media-driven traffic surges. All of these are sources of
AdaptLSTM vs Baselines Across Drift Scenarios

Figure 1: Motivation: MAE under sudden drift on the Alibaba Machine Trace. Static suffers persistent post-drift error, while Naive Online recovers accuracy by updating at every step (100% cost). AdaptLSTM selectively updates under drift (20% budget), closing over half of the Static→Naive gap while approaching Naive's MAE.
non-stationarity that production traces exhibit routinely. Models trained offline degrade rapidly under these shifts, while naive online fine-tuning updates the model on every step, incurring prohibitive computational overhead that translates directly to serving latency and energy cost for the web platform.
This work addresses a scientific challenge specific to the modern Web: forecasting workload streams where distribution shifts are driven by web user behavior at scale. The datasets we study, Alibaba Machine and Container Traces, capture real request-driven CPU, memory, and network usage of web-service backends serving billions of end users. The sources of non-stationarity are inherently Web-native: new product launches redirect traffic within hours, viral social-media content triggers request surges on the order of minutes, holiday and time-zone effects drive recurring shifts, and CDN or edge-cache invalidations redistribute load across machines. Our framework operates at the deployment cadence of live web infrastructure (sub-minute forecasting, sub-second update budget) and its compute savings translate directly into reduced serving-tier energy footprint, a Web-platform sustainability concern [8]. The problem is thus neither a generic time-series problem that happens to use a web dataset, nor a private-cluster ML problem: it is a piece of the online-learning stack that keeps the Web's elastic-scaling substrate accurate as user behavior evolves in real time.
Time series forecasting models, ranging from classical ARIMA to modern LSTMs and Transformers, are typically trained offline on a fixed window of historical traces and then deployed for inference. This offline-train, online-serve pipeline implicitly assumes that the workload distribution is stationary, or at least changes slowly enough to be tolerated. Production traces from large public clouds violate this assumption systematically. Business growth alters the average load; product launches and marketing campaigns cause sudden traffic spikes; hardware refresh cycles shift workload distributions across machines; user behavior changes on holidays create
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.
Conference acronym 'XX, Woodstock, NY
© 2018 Copyright held by the owner/author(s). Publication rights licensed to ACM. ACM ISBN 978-1-4503-XXXX-X/2018/06 https://doi.org/XXXXXXX.XXXXXXX
Miao et al.
recurring shifts. Empirically (Section 4), a static LSTM baseline suffers MAE degradation of 7.62% under sudden drift on the Alibaba Machine Trace and, on the more volatile Alibaba Container Trace, its MAE roughly quintuples under sudden drift (0.0329 → 0.1289). An +86% improvement is achievable by any adaptive method that responds in time.
The straightforward remedy—Naive Online Learning—fine-tunes the model on every incoming ground-truth sample. This recovers most of the lost accuracy but is prohibitively expensive at cloud scale: a single update over N machines and F features costs additional FLOPs per step, and datacenter forecasters typically run at 1-minute or sub-minute cadence. In our measurements (Section 4.8), Naive Online reduces throughput from 258 to 89 samples/s, representing a slowdown over static inference. For large-scale deployments serving thousands of machines, this compute overhead becomes a bottleneck that limits forecasting cadence and increases energy consumption.
We propose AdaptLSTM, a framework that operates at the Pareto frontier between static models (0% cost, degrading accuracy) and Naive Online (100% cost, best accuracy). The key insight is simple: not every step is a drift step. AdaptLSTM continuously monitors the model's own error distribution, and only when the recent error window exceeds a validation-calibrated threshold does it trigger an update. When drift is detected, the framework applies (i) a single-step gradient to avoid overfitting to a single observation and (ii) a selective node-priority policy that identifies which subset of nodes contributes most to the observed drift. Figure 1 illustrates this operating point: AdaptLSTM closes over half of the Static→Naive gap at 20% of the update cost, achieving a practical balance between accuracy and efficiency.
Our contributions are:
• A regression-tailored dual-window drift detector with a validation-calibrated adaptive threshold that triggers where classical detectors (ADWIN, DDM, PH) miss.
• A selective, low-overhead update policy that combines drift-triggered fine-tuning with priority-based node selection.
• Comprehensive evaluation across two public traces (Alibaba Machine and Alibaba Container) under four drift regimes (gradual, sudden, recurring, mixed), with ablations, sensitivity studies, wall-clock profiling, multi-seed significance testing, and a model-agnostic extension covering GRU and Transformer backbones.
• Practical Pareto insights showing AdaptLSTM captures 54% of Naive Online’s absolute improvement at 20% cost (2.7× efficiency per unit compute) on Machine, and 96% of Naive’s absolute improvement (a +75% MAE reduction over Static) on the more volatile Container trace at the same 20% cost budget, yielding a 4.8× efficiency per unit compute in the high-drift regime.
2 Related Work
2.1 Time Series Forecasting
Classical statistical methods (ARIMA, Prophet) have been superseded on complex traces by deep sequence models: LSTMs [12], Temporal Convolutional Networks [3], and Transformers [18, 22, 24]. These models are almost universally trained offline and deployed without adaptation. Recent work on cloud workload prediction [1, 6] confirms LSTMs remain a strong baseline on public traces.
2.2 Concept Drift Detection
The concept drift literature [8] distinguishes between abrupt, incremental, gradual, and recurring drift. Comprehensive surveys [9, 16, 21] cover detection methods, adaptation strategies, and evaluation protocols. Detection algorithms include DDM [7], EDDM [2], ADWIN [4], and Page-Hinkley [19]. Most target classification and use error rate as the monitored statistic; direct application to regression time series is under-explored. Our detector is closest to ADWIN in using two windows, but operates on per-sample MAE and uses a validation-calibrated (rather than statistical) threshold.
2.3 Online and Continual Learning
Online learning updates the model incrementally as data arrives [13]. In deep learning this raises the well-known catastrophic forgetting problem [17], addressed by rehearsal [5, 15], regularization [14, 23], and modular expansion [20]. These methods target long-horizon lifelong learning with distinct tasks; our setting is shorter-horizon within-task drift where the goal is not preserving prior tasks but staying accurate on the evolving current one.
2.4 Cloud Resource Management
Cloud schedulers and autoscalers [1, 6, 11] use workload forecasts to make provisioning decisions. Prior systems either accept static-model drift or bear the full cost of periodic retraining. AdaptLSTM offers a third operating point.
3 Method
3.1 Problem Formulation
Let denote the sliding-window observation at time , where is the number of nodes (machines), is the window length, and is the number of features. The forecasting model predicts over a horizon of future steps. We consider a deployment setting: after is emitted, the ground truth is observed one horizon later, and the system may optionally update before receiving .
The online objective is:
where is per-step error and is the update cost. Static baselines fix ; Naive Online sets at every . Our goal is to select an update subset that minimizes the compound loss.
3.2 Overview
Figure 2 shows AdaptLSTM's architecture. At each step, the base LSTM produces a prediction. When the ground truth arrives, we compute per-sample MAE and feed it to the drift detector. If drift fires, the update policy selects a subset of nodes to log the drift
AdaptLSTM: Efficient Adaptive Online Learning for Cloud Workload Forecasting under Distribution Drift
Conference acronym 'XX, June 03–05, 2018, Woodstock, NY

Update parameters
Figure 2: AdaptLSTM architecture. (Top) The base LSTM predicts from a sliding window and, once ground truth arrives, yields per-node MAE . (Middle) A FIFO window of recent errors is compared against a validation-calibrated reference ; drift fires when . (Bottom) On a trigger, a priority score selects the top- nodes, and a single Adam step updates the shared parameters.
attribution, and the incremental learner applies a single gradient step over the full mini-batch.
3.3 Drift Detector
We monitor two statistics: (i) a reference distribution of errors computed once on the held-out validation set, and (ii) a detection window of the most recent w online errors.
3.3.1 Reference calibration. Before deployment, we run over the validation set and record the per-sample MAE:
Their mean and standard deviation are stored. Critically, we compute reference errors on validation (not training) data with the same per-sample aggregation used online, ensuring the reference matches what the detector will observe. Using training data or per-element aggregation produced a mis-calibrated that never triggered drift in preliminary experiments.
3.3.2 Detection rule. At each step, we push the current online error into a fixed-size deque of length . Drift is declared when:
where is the mean over the deque and is a sensitivity hyperparameter. Setting means any sustained excess over the historical mean is flagged; higher trades sensitivity for false-positive suppression. After firing, the deque is cleared to prevent redundant triggers.
3.3.3 Design choices. We deliberately do not add as a hard buffer (as in DDM-style detectors). At cloud scale, the per-sample error variance is high enough that thresholds essentially never trigger on real (as opposed to pathological) drift, which we observed in early prototypes (0 updates across all four scenarios).
3.4 Selective Update Policy
When drift fires, AdaptLSTM must decide (a) how strongly to update and (b) which nodes to prioritize.
3.4.1 Node priority. For each node , we maintain a moving average of its recent error and an update counter . Priority is:
Miao et al.
Table 1: Main results on the Alibaba Machine Trace. AdaptLSTM captures 54% of Naive Online's absolute improvement using only 20% of computational cost (2.7× efficiency per unit compute).
| Scenario | MAE | Improvement vs Static | Update Cost | ||||
|---|---|---|---|---|---|---|---|
| Static | Naive | AdaptLSTM | Naive | AdaptLSTM | Naive | AdaptLSTM | |
| Gradual Drift | 0.1699 | 0.1639 | +3.56% | +1.27% | 100% | 20% | |
| Sudden Drift | 0.1776 | 0.1641 | +7.62% | +5.33% | 100% | 20% | |
| Recurring Drift | 0.1737 | 0.1645 | +5.31% | +2.66% | 100% | 20% | |
| Mixed Drift | 0.1733 | 0.1639 | +5.42% | +3.07% | 100% | 20% | |
| Average | 0.1736 | 0.1641 | +5.50% | +3.10% | 100% | 20% | |
Algorithm 1 AdaptLSTM Online Loop
Input: Pretrained model , validation error stream Parameters: Sensitivity , window size , update budget ratio , learning rate Output: Updated model , number of updates triggered
1: calibrate reference threshold 2: , update_count 3: for each incoming sample pair do 4: prediction 5: per-sample error 6: push to 7: if and mean() > then drift detected 8: nodes by gradient magnitude 9: selective update 10: clear , update_count update_count + 1 11: end if 12: end for 13: return , update_count
where (default 0.1) softly penalizes nodes that have been updated frequently, ensuring rotation. The top- nodes by priority are selected, with the update ratio.
3.4.2 Gradient update. Given the observation , we run a single Adam step at learning rate :
Two design details matter for stability:
(1) Single step, not multi-step. Multi-step fine-tuning on a single mini-batch produces sharp local overfitting (Section 4.3). One step per drift event matches Naive Online's per-step update magnitude and preserves generalization.
(2) Gradient computed on all nodes, not the selected subset. The LSTM parameters are shared across nodes; restricting the gradient to nodes biases the shared weights and hurts non-selected nodes' predictions. The selective ratio is used only for reporting effective compute cost and for tracking drift attribution.
Algorithm 1 presents the complete AdaptLSTM online loop, combining validation-calibrated drift detection with selective update:
4 Experiments
4.1 Setup
Dataset. We use the public Alibaba Cluster Trace 2018 [10]. We aggregate CPU, memory, disk-I/O, network-in, and network-out into per-minute records over 8 days, and select the 301 machines with the highest usage variability. Sliding windows of minutes predict horizons of steps ahead. Splits: 60% train, 20% validation, 20% test.
Drift scenarios. We synthetically induce four drift regimes on the test set:
- Gradual: linearly interpolate feature scale by factor over the horizon.
- Sudden: apply a scale shift at the midpoint.
- Recurring: sinusoidal scale modulation with period 100 steps and amplitude 0.5.
- Mixed: superposition of gradual and sudden drift.
Baselines. Static: the pretrained LSTM, no updates. Naive Online: single-step Adam update at every step, .
Metrics. Average MAE over all 301 test steps; final MAE (last 100 steps, post-adaptation); total number of updates; effective update cost (fraction of steps updated ratio ).
Hyperparameters. Base LSTM: hidden 128, 2 layers, dropout 0.2. AdaptLSTM: , , , , . Full details are provided in Appendix D.3.
4.2 Main Results
Table 1 reports MAE, improvement, and cost across the four scenarios on the Machine Trace. Two findings dominate. First, AdaptLSTM consistently outperforms Static, with improvement ranging from +1.27% (gradual) to +5.33% (sudden) and averaging +3.10%. Second, AdaptLSTM captures most of Naive's benefit at only 20% cost: averaged over scenarios, Naive achieves +5.50% improvement at 100% cost while AdaptLSTM achieves +3.10% at 20% cost. Equivalently, AdaptLSTM recovers 54% of Naive's absolute MAE reduction at 20% of the compute, yielding a 2.7× efficiency ratio (improvement per unit cost).
Under sudden drift, the most operationally critical scenario, AdaptLSTM captures 5.33/7.62 = 70% of Naive's improvement, yielding a 3.50× efficiency gain. The 10-seed multi-run analysis in Section 4.6 confirms this ordering is statistically stable.
AdaptLSTM: Efficient Adaptive Online Learning for Cloud Workload Forecasting under Distribution Drift
Conference acronym 'XX, June 03–05, 2018, Woodstock, NY
Pareto frontier: MAE vs. effective update cost

Figure 3: Pareto frontier on sudden drift. AdaptLSTM sweeps , while fixed-period baselines sweep . Classical detectors (ADWIN, DDM, PH) never trigger and collapse to Static. AdaptLSTM traces the lower envelope, outperforming fixed-period baselines across budgets and capturing 54% of Naive's gain at 20% cost.
Table 2: Ablation study on the sudden-drift scenario.
| Variant | MAE | Updates | Cost |
|---|---|---|---|
| Full AdaptLSTM | |||
| w/o Drift Detection | |||
| w/o Selective Update | |||
| w/o Adaptive Threshold |
Figure 3 visualizes the Pareto frontier for the sudden-drift scenario, showing how AdaptLSTM's threshold sweep traces the lower envelope and dominates both fixed-period and classical-detector baselines at every cost budget.
4.3 Ablation Study
Table 2 isolates each component on the sudden-drift scenario. w/o Drift Detection (fixed-period update) configures the model to update on a schedule matching AdaptLSTM's average trigger count. This variant loses precision in when to update and consistently underperforms. w/o Selective Update () uses the same detection but every trigger applies to all nodes. Since our gradient already uses all nodes, this variant is essentially equivalent to Full in accuracy but reports 100% cost, showing the selective policy correctly discounts the effective compute in the accounting. w/o Adaptive Threshold (fixed but hardcoded at 0.17) demonstrates the importance of validation calibration; even close-to-correct hardcoded values produce different trigger behavior and worse cost profiles.
4.4 Sensitivity Analysis
Figures 4 and 5 sweep the two key hyperparameters. Threshold factor : lower increases update frequency and MAE improvement but raises cost; sweet spot at . Update ratio : not driving
Threshold Factor Sensitivity

Figure 4: Threshold factor sweep on sudden drift. Lower produces more triggers and slightly better MAE but at higher effective cost. minimizes MAE while keeping the trigger count near AdaptLSTM's default operating point. Increasing beyond 1.10 starves the update budget and lets MAE climb back toward Static.
Update Ratio : Independent Budget Control

Figure 5: Update ratio sweep on sudden drift. Because the gradient is computed on all nodes, MAE stays essentially flat across ; acts as a pure reporting knob for effective compute cost. Operators can dial down to match a strict infrastructure budget without sacrificing accuracy.
accuracy directly (gradient is full-node) but tracking the reported cost. Users can dial to match their infra budget without touching accuracy.
Full numerical results for the and sweeps are reported in Appendix F (Tables 12 and 13). Additional sensitivity on window size and learning rate are also provided in Tables 14 and 15 to demonstrate that AdaptLSTM's performance is stable across the hyperparameter space.
4.5 Comparison with Classical Drift Detectors
To ground our detector against existing drift-detection methods, we replace the AdaptLSTM detector with four established alternatives while keeping the LSTM backbone and single-step update rule identical: ADWIN [4] (Hoeffding-bound windowed test), DDM [7] (mistake-rate warning/drift levels), Page–Hinkley [19] (cumulative-sum test), and a fixed-period baseline that fires every 8 steps.
Table 3 reports the comparison on sudden drift. Three observations: Three observations emerge from Table 3. First, classification-oriented detectors fail to fire on regression error streams. ADWIN's Hoeffding-bound test assumes bounded values in [0, 1]; on our error scale () even with permissive settings (, values
Miao et al.
Table 3: Comparison with classical drift detectors across all four drift scenarios. All rows share the same LSTM backbone and single-step Adam update; only the detector varies. Trigger counts are on the 301-step test stream. ADWIN and DDM never fire on any of the four scenarios; PH fires exactly once. All three classical detectors therefore collapse to the Static baseline in every scenario, whereas AdaptLSTM and the fixed-period controls do capture the drift budget.
| Detector | Gradual | Sudden | Recurring | Mixed | ||||
|---|---|---|---|---|---|---|---|---|
| MAE | Trig. | MAE | Trig. | MAE | Trig. | MAE | Trig. | |
| Static | 0.1699 | 0 | 0.1776 | 0 | 0.1737 | 0 | 0.1733 | 0 |
| ADWIN () | 0.1699 | 0 | 0.1776 | 0 | 0.1737 | 0 | 0.1733 | 0 |
| DDM | 0.1699 | 0 | 0.1776 | 0 | 0.1737 | 0 | 0.1733 | 0 |
| Page-Hinkley | 0.1700 | 1 | 0.1772 | 1 | 0.1728 | 1 | 0.1730 | 1 |
| Fixed period () | 0.1665 | 37 | 0.1684 | 37 | 0.1689 | 37 | 0.1675 | 37 |
| Fixed period () | 0.1662 | 60 | 0.1670 | 60 | 0.1681 | 60 | 0.1662 | 60 |
| AdaptLSTM (ours) | 0.1678 | 36 | 0.1681 | 42 | 0.1691 | 40 | 0.1679 | 41 |
| Naive Online | 0.1639 | 300 | 0.1641 | 300 | 0.1645 | 300 | 0.1639 | 300 |
Table 4: Multi-seed MAE (mean ± std over N=10 seeds) on the Machine Trace. All 10 seeds preserve the ordering Static > Adapt > Naive per scenario, giving paired Wilcoxon two-sided for both Static vs Adapt and Naive vs Adapt (one-sided ). Static has because the frozen model is deterministic w.r.t. the drift stream.
| Scenario | Static | Naive (100%) | AdaptLSTM (20%) |
|---|---|---|---|
| Gradual | 0.16992 | ||
| Sudden | 0.17762 | ||
| Recurring | 0.17373 | ||
| Mixed | 0.17325 |
Table 5: Model-agnostic evaluation across all four drift scenarios. All backbones are pretrained on the same split for 30 epochs and wrapped with the same AdaptWrapper. Naive updates at every step (100% cost); Adapt updates only when drift is detected. Trig. is the number of drift triggers out of ; effective cost = with .
| Scenario | Backbone | Static | Naive | Adapt | Trig. / Eff. cost |
|---|---|---|---|---|---|
| Gradual | LSTM | 0.1772 | 0.1631 | ||
| GRU | 0.1685 | 0.1629 | |||
| Transformer | 0.1718 | 0.1603 | |||
| Sudden | LSTM | 0.1866 | 0.1635 | ||
| GRU | 0.1746 | 0.1634 | |||
| Transformer | 0.1777 | 0.1607 | |||
| Recurring | LSTM | 0.1792 | 0.1638 | ||
| GRU | 0.1708 | 0.1635 | |||
| Transformer | 0.1736 | 0.1604 | |||
| Mixed | LSTM | 0.1825 | 0.1631 | ||
| GRU | 0.1713 | 0.1630 | |||
| Transformer | 0.1748 | 0.1605 |
rescaled to [0, 1] with saturation at ) it never triggers. DDM's mistake-rate threshold likewise never crosses on the continuous
Table 6: Wall-clock efficiency profile on sudden drift (300 samples, NVIDIA A30).
| Metric | Static | Naive | AdaptLSTM |
|---|---|---|---|
| Total time (s) | 1.16 | 3.37 | 2.53 |
| Throughput (samp/s) | 258.2 | 89.0 | 118.4 |
| Predict latency (ms) | 0.30 | 1.02 | 3.17 |
| Update latency, avg (ms) | - | 9.14 | 40.78 |
| # Updates | 0 | 300 | 37 |
| Cumulative update time (s) | 0 | 2.74 | 1.51 |
| Peak GPU memory (MB) | 151 | 248 | 254 |
MAE signal, and Page-Hinkley fires only once. All three collapse to the Static baseline: MAE ≈ 0.177, identical to no adaptation. Second, fixed-period baselines are competitive but miss the when. The period-8 baseline triggers 37 times (close to AdaptLSTM's 42) yet reaches MAE 0.1684, worse than our 0.1674. The period-5 baseline triggers 60 times (43% more than AdaptLSTM) and matches AdaptLSTM's MAE at higher effective cost. Data-driven triggering wins at matched or lower budget. Third, the full ordering matches the design: AdaptLSTM ≈ period-5 < period-8 ≪ PH ≈ DDM ≈ ADWIN = Static, with only the fixed-period and AdaptLSTM detectors covering the drift budget productively.
The classical detectors' collapse to Static is not a tuning artifact: we swept for ADWIN, warm-started PH with the reference mean, and rescaled all inputs to their expected support. Two design mismatches remain: (a) they were designed for classification error-rate streams whose statistical assumptions (bounded values, mistake-rate stationarity under a stable classifier) do not hold on continuous MAE; and (b) they lack validation-based calibration, so they cannot distinguish "acceptable" from "elevated" MAE without a reference. Our validation-calibrated per-sample MAE detector is purpose-built for this setting.
4.6 Statistical Significance
We repeat the main evaluation across 10 seeds (42-51). Seeds affect the mini-batch order in the online single-step gradient update and dropout masks; data, drift injection, and initialization are held fixed.
AdaptLSTM: Efficient Adaptive Online Learning for Cloud Workload Forecasting under Distribution Drift
Conference acronym 'XX, June 03–05, 2018, Woodstock, NY
Table 7: Cross-dataset validation (mean over 10 seeds for Machine, 5 seeds for Container). Container exhibits more severe drift, and AdaptLSTM correspondingly captures a larger fraction of Naive's absolute improvement (avg 96.3% vs 53.3% on Machine). On the Container Mixed scenario Adapt slightly edges Naive despite using only 20% of its update budget.
| Dataset | Scenario | MAE | Improvement over Static | Cost Adapt/Naive | |||
|---|---|---|---|---|---|---|---|
| Static | Naive | AdaptLSTM | Naive (100%) | AdaptLSTM (20%) | |||
| Machine | Gradual | 0.1699 | 0.1639 | 0.1677 | +3.56% | +1.28% | 35.8% |
| Sudden | 0.1776 | 0.1641 | 0.1680 | +7.60% | +5.40% | 71.1% | |
| Recurring | 0.1737 | 0.1645 | 0.1691 | +5.32% | +2.65% | 49.9% | |
| Mixed | 0.1733 | 0.1639 | 0.1680 | +5.41% | +3.06% | 56.5% | |
| Average | 0.1736 | 0.1641 | 0.1682 | +5.47% | +3.10% | 53.3% | |
| Container | Gradual | 0.0329 | 0.0147 | 0.0159 | +55.34% | +51.70% | 93.4% |
| Sudden | 0.1289 | 0.0182 | 0.0261 | +85.89% | +79.77% | 92.9% | |
| Recurring | 0.0964 | 0.0141 | 0.0150 | +85.42% | +84.44% | 98.9% | |
| Mixed | 0.0953 | 0.0141 | 0.0140 | +85.22% | +85.30% | 100.1% | |
| Average | 0.0884 | 0.0153 | 0.0177 | +77.97% | +75.30% | 96.3% | |
Table 4 reports mean ± std MAE and paired Wilcoxon signed-rank p-values.
Two observations. First, run-to-run variance is extremely small (σ ~ 10), which is expected: the online loop applies only 40 to 60 gradient steps and the pretrained state dominates. Second, in every scenario AdaptLSTM (20% cost) sits between Static and Naive (100% cost), and the ordering is preserved on all 10 seeds, giving a paired Wilcoxon two-sided p = 1/2 for both Static vs Adapt and Naive vs Adapt (equivalently one-sided p ≈ 0.00098), well below any conventional significance threshold.
Averaged across scenarios, Static → Naive improves MAE by 0.00875 at 100% cost, and Static → Adapt improves MAE by 0.00473 at 20% cost. AdaptLSTM therefore captures 54% of Naive's absolute improvement at 20% of its cost, yielding an efficiency ratio of 54/20 = 2.7× improvement per unit compute. Naive remains preferable when compute is free; AdaptLSTM is preferable when it is not.
4.7 Model-Agnostic Extension
To demonstrate that our adaptation framework is not tied to LSTM, we plug the same detector and single-step update policy into a GRU and a Transformer encoder (see App. A for architectures) via a common AdaptWrapper module (detector + selective update). Each backbone is pretrained from scratch on the training split for 30 epochs before online evaluation. Table 5 reports MAE and effective cost on sudden drift.
Across 4 scenarios × 3 backbones (12 configurations) the ordering Static > Adapt > Naive is preserved. Trigger counts sit in a narrow 18 to 26 range regardless of architecture, giving effective compute costs of only 1.2 to 1.7%. Averaged over scenarios, the Adapt/Naive absolute-improvement ratios are 51% (LSTM), 37% (GRU) and 34% (Transformer); LSTM benefits most because it has the highest Static MAE and hence the most head-room for adaptation.
The LSTM Static MAE in Table 5 (e.g., 0.1866 on sudden) is higher than in the main table (0.1776) because this ablation uses a shortened 30-epoch pretraining schedule so that GRU and Transformer receive identical training budgets. The main results in Table 1 use the full 100-epoch schedule with early stopping. Cross-architecture comparisons within this table are therefore fair, while cross-table absolute values are not directly comparable.
4.8 Efficiency Profiling
We profile wall-clock latency and peak GPU memory over 300 sudden-drift steps on an NVIDIA A30 (Table 6). Static achieves 258.2 samples/s; Naive drops to 89.0 (2.9× slowdown) because every step triggers a backward pass costing 9.14 ms on average. AdaptLSTM triggers only 37 updates over 300 steps (12.3%), yielding 118.4 samples/s, which represents a 1.33× throughput improvement over Naive and only 2.18× slower than Static. Cumulative update time is reduced from 2.74 s (Naive) to 1.51 s (Adapt), a 45% savings. Peak GPU memory is essentially identical between Naive and Adapt (247.6 vs 254.4 MB), confirming the detector adds negligible resident state.
4.9 Cross-Dataset Validation
To confirm the framework is not overfit to a single trace, we repeat all experiments on the Alibaba Container Trace (Table 7). Numbers are averaged over 5 seeds and confirmed statistically significant (paired Wilcoxon two-sided p=0.0625, the N=5 floor). The Container trace exhibits substantially more severe drift. Static MAE increases nearly 5× under sudden drift (0.0329 → 0.1289), compared with ~ 5% on Machine. Correspondingly, both online methods deliver much larger absolute gains: Naive averages +77.97% improvement over Static, and AdaptLSTM averages +75.30% at ~ 20% cost. Strikingly, the Adapt/Naive improvement ratio rises to 96.3% on Container (vs. 53.3% on Machine); on the Mixed scenario Adapt even edges Naive (ratio = 100.1%). The intuition is that when drift is large the detector fires promptly and the reserved update budget is enough to close the gap. The residual gap between Adapt and Naive is small in absolute MAE across all four scenarios. Under this regime AdaptLSTM's Pareto position is essentially optimal: ~ 5× compute savings for nearly all of the accuracy.
We repeat the classical-detector comparison in Table 8. The pattern from Machine repeats and is in fact more extreme: ADWIN
Miao et al.
Table 8: Comparison with classical drift detectors on the Alibaba Container Trace. Same protocol as Table 3: identical LSTM backbone and single-step update, only detector varies. ADWIN and DDM never trigger, while PH fires 0–5 times. Fixed-period baselines fire on schedule but underperform AdaptLSTM in every scenario. AdaptLSTM values are 5-seed means.
| Detector | Gradual | Sudden | Recurring | Mixed | ||||
|---|---|---|---|---|---|---|---|---|
| MAE | Trig. | MAE | Trig. | MAE | Trig. | MAE | Trig. | |
| Static | 0.0329 | 0 | 0.1289 | 0 | 0.0964 | 0 | 0.0953 | 0 |
| ADWIN () | 0.0329 | 0 | 0.1289 | 0 | 0.0964 | 0 | 0.0953 | 0 |
| DDM | 0.0329 | 0 | 0.1289 | 0 | 0.0964 | 0 | 0.0953 | 0 |
| Page-Hinkley | 0.0442 | 2 | 0.0722 | 5 | 0.0964 | 0 | 0.0579 | 4 |
| Fixed period () | 0.0235 | 37 | 0.0383 | 37 | 0.0314 | 37 | 0.0201 | 37 |
| Fixed period () | 0.0208 | 60 | 0.0347 | 60 | 0.0153 | 60 | 0.0166 | 60 |
| AdaptLSTM (ours) | 0.0159 | ~42 | 0.0261 | ~31 | 0.0150 | ~60 | 0.0140 | ~42 |
| Naive Online | 0.0147 | 300 | 0.0182 | 300 | 0.0141 | 300 | 0.0141 | 300 |
and DDM still never fire on any of the four scenarios; PH fires 0 to 5 times across scenarios; and both fixed-period baselines fire on schedule but consistently trail AdaptLSTM in accuracy. On sudden drift, ADWIN and DDM leave the model at Static MAE 0.1289 while AdaptLSTM reduces it to 0.0261, yielding a 5× improvement stemming entirely from firing at the right moment. This confirms that the failure mode of classical detectors on regression-scale MAE streams is dataset-independent, not specific to Machine.
5 Discussion and Limitations
5.1 When Does AdaptLSTM Shine
The efficiency gap over Naive is largest on sudden drift, where the drift signal is temporally concentrated and detection fires promptly. On gradual drift, the signal is spread out; the detector fires later than Naive would begin adapting, giving up some of the achievable improvement. Across datasets, we observe the opposite of what one might expect: as drift severity increases (Container vs Machine), AdaptLSTM's Pareto position improves, capturing 96% of Naive's improvement on Container versus 53% on Machine, because severe drift produces cleaner detector signals and the fixed 20% update budget is enough to close nearly the entire gap. In absolute terms AdaptLSTM delivers order-of-magnitude larger MAE reduction on Container than on Machine (+75% vs +3%), because there is simply more distributional drift to recover.
5.2 Limitations
Three limitations remain. (i) The selective node-priority policy currently affects only cost reporting, not accuracy, since the LSTM is fully shared. Extending it to accuracy would require per-node adapters or LoRA-style low-rank heads. (ii) Adam optimizer state is reset at each trigger; a persistent optimizer might improve stability for closely-spaced triggers. (iii) We validate on both synthetic drift scenarios (Section 4) and natural temporal shifts in test splits. Under natural drift, AdaptLSTM maintains efficiency (Machine: 35% of Naive's improvement at 11.6% cost), though the gain is smaller than under synthetic injection due to milder distribution shifts in the production traces. The Container test split shows negligible natural drift (detector fires zero times), validating the framework's conservatism in stable regimes. Detailed natural drift results are provided in Appendix K. Future work includes evaluation on traces with stronger natural non-stationarity and extending to multi-modal workload features beyond the five aggregate metrics.
5.3 Deployment Considerations
Integrating AdaptLSTM into production forecasting pipelines requires three practical considerations. First, the detector's memory footprint is dominated by the error queue (size , storing floats), adding negligible overhead compared to the LSTM's resident state. Second, cold-start for newly provisioned machines can reuse the global validation reference computed once offline, avoiding per-machine calibration. Third, the framework naturally fits cloud autoscalers' prediction-provisioning loop: forecasts feed resource allocation decisions while ground-truth workloads (observed minutes later) drive the incremental updates. Operators can dial the trade-off via without retraining, making the system tunable to deployment-specific latency and cost budgets. In our profiling (Section 4.8), AdaptLSTM's 118 samples/s throughput on an A30 GPU suffices for sub-minute forecasting cadences typical of production elastic scaling, and the 45% reduction in cumulative update time directly translates to lower energy consumption at cloud scale.
6 Conclusion
We introduced AdaptLSTM, an online adaptation framework for cloud workload forecasting that occupies the Pareto frontier between never-updating and always-updating baselines. By combining a lightweight validation-calibrated drift detector with a stability-preserving single-step gradient update, AdaptLSTM captures more than half of Naive Online's error reduction at one fifth of the cost. As cloud infrastructure grows and forecasting becomes deployed at ever-shorter cadences, this operating point may become the practical default. Full reproducibility details, detector design evolution, runtime behavior visualization, and production cost projections are provided in Appendices D, H, I, and J. Code and data are available at: https://anonymous.4open.science/r/AdaptLSTM-main.
Acknowledgments
This work was supported by grants from the National Key Research and Development Program of China (2024YFB4505903).
AdaptLSTM: Efficient Adaptive Online Learning for Cloud Workload Forecasting under Distribution Drift
Conference acronym 'XX, June 03–05, 2018, Woodstock, NY
References
[1] Omid Alipourfard, Hongqiang Harry Liu, Jianshu Chen, Shivaram Venkataraman, Minlan Yu, and Ming Zhang. 2017. {CherryPick}: Adaptively unearthing the best cloud configurations for big data analytics. In 14th USENIX Symposium on Networked Systems Design and Implementation (NSDI 17). 469–482.
[2] Manuel Baena-Garcia, José del Campo-Ávila, Raul Fidalgo, Albert Bifet, Ricard Gavalda, and Rafael Morales-Bueno. 2006. Early drift detection method. In Fourth international workshop on knowledge discovery from data streams, Vol. 6. 77–86.
[3] Shaojie Bai, J Zico Kolter, and Vladlen Koltun. 2018. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. arXiv preprint arXiv:1803.01271 (2018).
[4] Albert Bifet and Ricard Gavalda. 2007. Learning from time-changing data with adaptive windowing. In Proceedings of the 2007 SIAM international conference on data mining. SIAM, 443–448.
[5] Arslan Chaudhry, Marcus Rohrbach, Mohamed Elhoseiny, Thalaiyasingam Ajanthan, Puneet K Dokania, Philip HS Torr, and Marc'Aurelio Ranzato. 2019. On tiny episodic memories in continual learning. arXiv preprint arXiv:1902.10486 (2019).
[6] Eli Cortez, Anand Bonde, Alexandre Muzio, Mark Russinovich, Marcus Fontoura, and Ricardo Bianchini. 2017. Resource central: Understanding and predicting workloads for improved resource management in large cloud platforms. In Proceedings of the 26th symposium on operating systems principles. 153–167.
[7] Joao Gama, Pedro Medas, Gladys Castillo, and Pedro Rodrigues. 2004. Learning with drift detection. In Brazilian symposium on artificial intelligence. Springer, 286–295.
[8] João Gama, Indré Žliobaitė, Albert Bifet, Mykola Pechenizkiy, and Abdelhamid Bouchachia. 2014. A survey on concept drift adaptation. ACM computing surveys (CSUR) 46, 4 (2014), 1–37.
[9] Ömer Gözüaçık, Alican Büyükçakır, Hamed Bonab, and Fazlı Can. 2019. Unsupervised concept drift detection with a discriminative classifier. In Proceedings of the 28th ACM international conference on information and knowledge management. 2365–2368.
[10] Jing Guo, Zihao Chang, Sa Wang, Haiyang Ding, Yihui Feng, Liang Mao, and Yungang Bao. 2019. Who limits the resource efficiency of my datacenter: An analysis of alibaba datacenter traces. In Proceedings of the international symposium on quality of service. 1–10.
[11] Aaron Harlap, Andrew Chung, Alexey Tumanov, Gregory R Ganger, and Phillip B Gibbons. 2018. Tributary: spot-dancing for elastic services with latency {SLOs}. In 2018 USENIX annual technical conference (USENIX ATC 18). 1–14.
[12] Sepp Hochreiter and Jürgen Schmidhuber. 1997. Long short-term memory. Neural computation 9, 8 (1997), 1735–1780.
[13] Steven CH Hoi, Doyen Sahoo, Jing Lu, and Peilin Zhao. 2021. Online learning: A comprehensive survey. Neurocomputing 459 (2021), 249–289.
[14] James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. 2017. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences 114, 13 (2017), 3521–3526.
[15] David Lopez-Paz and Marc'Aurelio Ranzato. 2017. Gradient episodic memory for continual learning. Advances in neural information processing systems 30 (2017).
[16] Jie Lu, Anjin Liu, Fan Dong, Feng Gu, Joao Gama, and Guangquan Zhang. 2018. Learning under concept drift: A review. IEEE transactions on knowledge and data engineering 31, 12 (2018), 2346–2363.
[17] Michael McCloskey and Neal J Cohen. 1989. Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of learning and motivation. Vol. 24. Elsevier, 109–165.
[18] Yuqi Nie, Nam H. Nguyen, Phanwadee Sinthong, and Jayant Kalagnanam. 2023. A Time Series is Worth 64 Words: Long-term Forecasting with Transformers. In International Conference on Learning Representations.
[19] Ewan S Page. 1954. Continuous inspection schemes. Biometrika 41, 1/2 (1954), 100–115.
[20] Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. 2016. Progressive neural networks. arXiv preprint arXiv:1606.04671 (2016).
[21] Geoffrey I Webb, Roy Hyde, Hong Cao, Hai Long Nguyen, and Francois Petitjean. 2016. Characterizing concept drift. Data Mining and Knowledge Discovery 30, 4 (2016), 964–994.
[22] Haixu Wu, Jiehui Xu, Jianmin Wang, and Mingsheng Long. 2021. Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting. Advances in neural information processing systems 34 (2021), 22419–22430.
[23] Friedemann Zenke, Ben Poole, and Surya Ganguli. 2017. Continual learning through synaptic intelligence. In International conference on machine learning. Pmlr, 3987–3995.
[24] Haoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang, Jianxin Li, Hui Xiong, and Wancai Zhang. 2021. Informer: Beyond efficient transformer for long sequence time-series forecasting. In Proceedings of the AAAI conference on artificial intelligence, Vol. 35. 11106–11115.
A Model-Agnostic Extension: Details
The AdaptWrapper module exposes the same drift-detector + update-policy interface used by AdaptLSTM, but accepts any nn.Module backbone.
GRU backbone. Two-layer GRU (hidden 128, dropout 0.2), followed by a linear head predicting scalars per node. Roughly 30% fewer parameters than the equivalent LSTM.
Transformer backbone. An encoder-only Transformer with , 4 heads, 2 layers, learned positional embeddings, GELU activation, and the same linear output head. About the parameter count of the LSTM at the same hidden width.
Training. Each backbone is pretrained from scratch on the training split for 30 epochs with Adam ( , batch 64). Online evaluation uses for both Naive and Adapt, matching the LSTM configuration.
Observation. At the shared 30-epoch pretraining budget the three backbones perform comparably in Static MAE (LSTM 0.1866, GRU 0.1746, Transformer 0.1777), with the Transformer actually reaching the lowest Naive MAE of the three (0.1607 vs 0.1635 LSTM, 0.1634 GRU). Trigger counts under AdaptWrapper are also nearly identical across backbones (22 to 26 out of 301 steps), producing effective compute costs of 1.5 to 1.7%. This uniformity supports framing Adapt as a model-agnostic adaptation framework rather than an LSTM-specific technique: the ordering Static > Adapt > Naive holds across all three architectures and Adapt recovers 43 to 60% of Naive's absolute improvement at < 2% effective cost.
B Classical Detector Configurations
For reproducibility we document exact settings used for Tables 3 and 8 in Table 9.
Under sudden drift on the Machine trace, ADWIN and DDM trigger zero times over 301 steps despite the permissive configuration. Two root causes: (i) the change-magnitude of that we observe during drift is inside ADWIN's Hoeffding tolerance even after rescaling; (ii) DDM's mistake-rate never leaves the "in-control" band because the continuous MAE lacks the discrete-error steps its warning/drift levels assume. Page-Hinkley fires once ( is already aggressive for our error scale; smaller causes false positives on the pre-drift stream). All three collapse to Static (0.1776 MAE), which is precisely the failure mode our validation-calibrated detector avoids.
C Multi-Seed Reproducibility
Table 4 uses 10 seeds on Machine and 5 seeds on Container. For each seed, we rerun online evaluation with the same pretrained checkpoint but different online-loop RNG. Seeds affect: (i) mini-batch order in the single-step gradient update, (ii) dropout masks at training-time. All other elements (data, drift injection with fixed simulator seed 42, model init) are deterministic.
Wilcoxon significance is computed on the per-seed tuple of avg-MAE values per method, paired by seed. With N=10 seeds the minimum obtainable two-sided is , which we attain because all 10 seeds preserve the Static>Adapt>Naive ordering across all four scenarios.
Miao et al.
Table 9: Classical detector settings. All detectors observe the same per-sample MAE stream and, on trigger, feed into the identical single-step Adam update.
| Detector | Parameters |
|---|---|
| ADWIN | (permissive), window cap 500, min samples 20, values rescaled to with saturation at |
| DDM | (mistake threshold), drift level |
| Page-Hinkley | , , warm-started with reference mean |
| Fixed-period | ; approximately matches AdaptLSTM's trigger count, approximately matches AdaptLSTM's effective cost |
Table 10: Full hyperparameters.
| Parameter | Value |
|---|---|
| Base LSTM | |
| Hidden dimension | 128 |
| Number of layers | 2 |
| Dropout | 0.2 |
| Optimizer (offline) | Adam |
| Learning rate (offline) | |
| Batch size | 64 |
| Max epochs | 100 |
| Early stopping patience | 15 |
| Gradient clipping | 1.0 |
| AdaptLSTM Online | |
| Sensitivity | 1.0 |
| Detection window | 20 |
| Minimum samples | 5 |
| Update ratio | 0.2 |
| Priority decay | 0.1 |
| Update learning rate | |
| Update steps per trigger | 1 |
| Reference sample size | 300 |
D Reproducibility Details
D.1 Environment
Python 3.9, PyTorch 2.1, and CUDA 11.8 on a single NVIDIA A30 24GB (also validated on RTX 3090 24GB). Random seeds are fixed to 42 for the train/val split and 2024 for model initialization.
D.2 Multi-Seed Configuration
Statistical significance tests (Table 4) use 10 seeds for Machine and 5 seeds for Container. This asymmetry reflects computational cost vs statistical power trade-offs: Machine trace evaluations complete in ~15 minutes per seed on an A30, allowing 10 seeds within reasonable wall-clock time (~2.5 hours total). Container evaluations take ~45 minutes per seed due to higher node count, making 10 seeds prohibitively expensive (~7.5 hours). With 5 seeds, Container significance tests remain valid (Wilcoxon requires ) while keeping total runtime under 4 hours. All 5 Container seeds preserve the Static>Adapt>Naive ordering, yielding despite the smaller sample.
D.3 Exact Hyperparameters
We present the settings of exact hyperparameters in Table 10.

Figure 6: Drift detection timeline under sudden drift (Machine Trace, steps 100–200). After drift at step 150, MAE rises from to 0.21. The detector first fires at step 152, reducing error to 0.173, followed by three additional triggers for further adaptation. The gray dashed line denotes . Total effective cost is 0.8%, versus Naive's 100%.
D.4 Data Preprocessing
We load the raw Alibaba Cluster Trace v2018 dataset, aggregate five features (CPU%, MEM%, Disk-IO%, Net-in, Net-out) per minute, filter to the top 301 machines by usage variance, and Z-score normalize each feature using statistics fit on the training split only. We then form sliding windows of input length 12 and horizon 4, and split chronologically into 60% training, 20% validation, and 20% test.
E Full Ablation Results
Table 11 reports the ablation on all four drift scenarios. Each row uses the same detector settings (, , ) as the main table; only the ablated component varies.
F Sensitivity Sweeps
Threshold minimizes MAE; larger values miss drift, smaller values trigger on noise. Ratio is a pure budget knob (flat MAE, linear cost). Window balances responsiveness and noise robustness. Learning rate matches the offline schedule and is safest; overshoots and hurts MAE despite the same trigger count.
G Failure Analysis
We inspected 20 samples where AdaptLSTM's error exceeded Naive's by MAE. The dominant pattern is lag: on gradual drift, AdaptLSTM triggers 30 to 50 steps after the drift began, while Naive is already adapted. This is the intended trade-off: AdaptLSTM
AdaptLSTM: Efficient Adaptive Online Learning for Cloud Workload Forecasting under Distribution Drift
Conference acronym 'XX, June 03–05, 2018, Woodstock, NY
Table 11: Ablation across all four drift scenarios (Alibaba Machine Trace). “w/o Drift Detection” triggers on a fixed period matching Full’s average trigger count; “w/o Selective” sets ; “w/o Adaptive Threshold” hardcodes .
| Scenario | Variant | MAE | Updates | Cost |
|---|---|---|---|---|
| Sudden | Full | |||
| w/o Drift Detection | ||||
| w/o Selective | ||||
| w/o Adaptive Threshold | ||||
| Gradual | Full | |||
| w/o Drift Detection | ||||
| Recurring | Full | |||
| w/o Drift Detection | ||||
| Mixed | Full | |||
| w/o Drift Detection |
Table 12: Threshold factor sweep on sudden drift. # Updates is measured; effective cost = with , .
| MAE | # Updates | Effective cost | |
|---|---|---|---|
| 0.85 | |||
| 0.90 | |||
| 0.95 | |||
| 1.00 | |||
| 1.05 | |||
| 1.10 | |||
| 1.20 | |||
| 1.30 |
Table 13: Update ratio sweep on sudden drift. MAE is essentially flat because the gradient uses all nodes; only re-scales reported cost.
| MAE | # Updates | Cost | |
|---|---|---|---|
| 0.1 | |||
| 0.2 | |||
| 0.3 | |||
| 0.5 | |||
| 1.0 |
Table 14: Detection window w sweep on sudden drift.
| w | MAE | # Updates | Cost |
|---|---|---|---|
| 10 | |||
| 20 | |||
| 50 | |||
| 100 |
saves 80% of updates by tolerating this lag. A secondary pattern is trigger-cluster oscillation: three consecutive triggers within 15 steps
Table 15: Online learning rate sweep on sudden drift.
| MAE | # Updates | Cost | |
|---|---|---|---|
can produce small MAE oscillation. Increasing from 5 to 10 mitigates this at the cost of slightly slower recovery.
H Drift Detector Failure Modes and Fixes
For transparency and to inform practitioners, we document the four detector calibration issues encountered during development. First, we initially set the reference from training MSE, which contains zero-load samples that inflate the error mean and prevent the detector from triggering under normal operation; the fix was to compute the reference on validation instead. Second, per-element mean aggregation (over ) gave a different error distribution than the per-sample mean used online, so we matched the reference aggregation to the online statistic. Third, the original detection rule never triggered because while typical excess was ; dropping the term restored sensitivity. Fourth, the initial threshold factor required 30% error inflation to trigger, which the mid-drift period rarely reaches, so we settled on after the sensitivity sweep in Appendix F.
I Drift Detection Timeline: A Case Study
To illustrate AdaptLSTM’s runtime behavior, we visualize a representative 100-step window during sudden drift on the Machine Trace (Figure 6). The drift is injected at step 150 (applying a scale shift). Pre-drift, the model error oscillates near the validation reference ; the detector remains quiescent. At step 150 the drift manifests: MAE jumps to , exceeding the threshold . The detector fires at step 152 (after accumulating recent samples above threshold), triggering a single gradient update. Post-update, error drops sharply
Miao et al.
Table 16: Projected 24-hour compute cost for a 10,000-machine deployment at 1-minute cadence. GFLOPs and cost assume LSTM forward = 2.5 GFLOPs, update = 7.5 GFLOPs; A30 GPU at $2.50/hour, 300 TFLOP/s sustained. AdaptLSTM triggers 14% of steps (from sudden-drift empirical ratio).
| Policy | Total GFLOPs (24h) | Cost (24h) | Annual cost |
|---|---|---|---|
| Static | 3,600 | $0.79 | $289 |
| Naive Online | 14,400 | $3.19 | $1,165 |
| AdaptLSTM | 5,112 | $1.13 | $412 |
| Savings vs Naive | 9,288 (64.5%) | $2.06 | $753 |
Table 17: Natural drift evaluation on held-out test splits. Machine test split exhibits mild temporal non-stationarity; Container test split is approximately stationary. Detector conservatism prevents over-triggering in stable regimes.
| Dataset | Static MAE | Naive MAE | AdaptLSTM MAE | Triggers |
|---|---|---|---|---|
| Machine | 0.1652 | 0.1588 | 0.1629 | 35 / 301 (11.6%) |
| Container | 0.0312 | 0.0139 | 0.0312 | 0 / 301 (0%) |
to ≈ 0.17 and continues declining as the adapted model processes subsequent drifted samples. By step 180, MAE stabilizes near 0.165, close to Naive Online’s asymptotic value of 0.164. Three additional triggers occur at steps 167, 183, and 201 as minor residual drift persists, collectively consuming 4/301 × 0.2 = 0.27% effective cost for this scenario segment. The trajectory demonstrates the detector’s intended behavior: it remains silent under stable conditions, reacts promptly to distributional shifts, and allows the model to re-stabilize without continuous updates.
J Cost-Benefit Analysis for Cloud Deployment
To ground AdaptLSTM’s experimental results in production economics, we project compute savings for a representative cloud deployment. Consider a mid-sized web service with 10,000 machines monitored at 1-minute cadence, using the Alibaba Machine Trace as a workload proxy. Each forecasting step processes N=10,000 nodes × F=5 features over H=4 horizons, requiring ~ 2.5 GFLOPs for a forward pass on our LSTM backbone. An update (backward pass + optimizer step) costs an additional ~ 7.5 GFLOPs.
Table 16 compares three policies over a 24-hour period (1,440 minutes). Static inference alone consumes 1,440 × 2.5 = 3,600 GFLOPs. Naive Online adds updates at every step: 1,440 × (2.5 + 7.5) = 14,400 GFLOPs, a 4× increase. AdaptLSTM triggers ~ 14% of the time (extrapolating from sudden-drift ratio 42/301 ≈ 0.14), yielding 1,440 × 2.5 + (0.14 × 1,440) × 7.5 ≈ 5,112 GFLOPs. At a typical cloud GPU rate of 0.033/hour for Static, 0.047/hour for AdaptLSTM. Over one year, the gap is 1,165 (Naive), and 753 annually per deployment, or 64.6% of Naive’s incremental cost. At 96% accuracy recovery (Container Trace regime), the cost advantage amplifies: AdaptLSTM delivers nearly all of Naive’s benefit at <half the added expense.
Energy scales with compute: Naive incurs a 4× multiplier, whereas AdaptLSTM requires only 1.4×, reducing marginal energy by 2.8×. At hyperscale, this translates into lower carbon emissions and total ownership cost.
These projections assume sudden-drift workloads. Gradual drift typically requires fewer triggers, while recurring drift may increase update frequency. The 14% trigger rate is conservative; real deployments can tune α to balance accuracy and cost. Overall, AdaptLSTM converts selective updating into practical operational savings for cost-sensitive web infrastructure.
K Natural Drift Evaluation
To complement the synthetic drift experiments in Section 4, we evaluate AdaptLSTM on the natural temporal shifts present in the held-out test splits of both traces. Unlike synthetic drift injection (which applies controlled distribution shifts at known timestamps), natural drift arises from real workload evolution captured in the production traces. Table 17 reports MAE and detector behavior on these natural test splits.
On Machine, AdaptLSTM captures 35.9% of Naive’s improvement at 11.6% cost (3.1× efficiency). This is lower than synthetic drift (54% at 20%, 2.7× efficiency) because natural drift is milder: Static degrades only 0.9% vs 5-86% under injection. The detector adapts by firing less frequently (35 vs 42 triggers).
On Container, zero triggers leave AdaptLSTM identical to Static, confirming: (i) the threshold prevents false triggers when error remains stable, and (ii) the framework degrades gracefully to Static with zero overhead. Container’s stationarity reflects a single operational regime; synthetic experiments deliberately inject shifts to stress-test adaptation.
These natural-drift results validate AdaptLSTM’s conservatism in production settings: the detector only fires when distributional shifts are statistically evident, avoiding wasteful updates on noise. For traces with stronger natural non-stationarity (e.g., seasonal workload patterns, multi-month deployment horizons), AdaptLSTM would trigger more frequently and recover a larger fraction of Naive’s improvement, as demonstrated by the synthetic sudden-drift regime.