betaFeedback

WorksComputer Science

AdaptLSTM: Efficient Adaptive Online Learning for Cloud Workload Forecasting under Distribution Drift

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×2.7\times efficiency, p=0.002p=0.002 over 10 seeds). On the more volatile Container Trace, it achieves 96% at 20% cost (4.8×4.8\times efficiency, +75%+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×1.33\times throughput gain and 45% update-time reduction. The framework is model-agnostic: identical Pareto patterns hold for LSTM, GRU, and Transformer backbones.

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 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 ~5× 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 [email protected]. 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 recurring shifts. Empirically (§ 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 NN machines and FF features costs O(NFH)O(NFH) additional FLOPs per step, and datacenter forecasters typically run at 1-minute or sub-minute cadence. In our measurements (§ 4.8), Naive Online reduces throughput from 258 to 89 samples/s, representing a 2.9× 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.

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.

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.

Related Work

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.

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.

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.

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.

Method

Problem Formulation

Let Xt∈RN×W×FX_t \in\mathbb{R}^{N \times W \times F} denote the sliding-window observation at time tt, where NN is the number of nodes (machines), WW is the window length, and FF is the number of features. The forecasting model fθf_\theta predicts Y^t∈RN×H×F\hat{Y}_t \in\mathbb{R}^{N \times H \times F} over a horizon of HH future steps. We consider a deployment setting: after Y^t\hat{Y}_t is emitted, the ground truth YtY_t is observed one horizon later, and the system may optionally update θ\theta before receiving Xt+1X_{t+1}.

The online objective is:

min⁡θ1,…,θT∑t=1T(L(fθt(Xt),Yt)+λ⋅C(θt,θt−1)),(1)\min_{\theta_1,\ldots,\theta_T} \sum_{t=1}^{T} \left(\mathcal{L}(f_{\theta_t}(X_t),Y_t) + \lambda\cdot\mathcal{C}(\theta_t,\theta_{t-1})\right), \tag*{(1)}

where L\mathcal{L} is per-step error and C\mathcal{C} is the update cost. Static baselines fix θt=θ0\theta_t=\theta_0; Naive Online sets θt+1=θt−η∇L\theta_{t+1}=\theta_t-\eta\nabla\mathcal{L} at every tt. Our goal is to select an update subset S⊆{1,…,T}\mathcal{S} \subseteq\{1,\ldots,T\} that minimizes the compound loss.

Overview

Figure 2 shows AdaptLSTM’s architecture. At each step, the base LSTM fθf_\theta 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 attribution, and the incremental learner applies a single gradient step over the full mini-batch.

AdaptLSTM architecture

Figure 2. AdaptLSTM architecture. (Top) The base LSTM fθf_\theta predicts Y^t\hat{Y}_t from a sliding window XtX_t and, once ground truth arrives, yields per-node MAE ete_t. (Middle) A FIFO window QQ of recent errors is compared against a validation-calibrated reference μref\mu_{\mathrm{ref}}; drift fires when eˉrecent>αμref\bar{e}^{\mathrm{recent}} > \alpha\mu_{\mathrm{ref}}. (Bottom) On a trigger, a priority score pn=e~n11+βunp_n = \tilde{e}_n \frac{1}{1+\beta u_n} selects the top-KK nodes, and a single Adam step updates the shared parameters.

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 ww online errors.

Reference calibration

Before deployment, we run fθ0f_{\theta_0} over the validation set and record the per-sample MAE:

eival=1NHF∑n,h,f∣y^i,n,h,fval−yi,n,h,fval∣.(2)e_i^{\mathrm{val}} = \frac{1}{NHF} \sum_{n,h,f} \left| \hat{y}_{i,n,h,f}^{\mathrm{val}} - y_{i,n,h,f}^{\mathrm{val}} \right|. \tag*{(2)}

Their mean μref\mu_{\mathrm{ref}} and standard deviation σref\sigma_{\mathrm{ref}} 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 μref\mu_{\mathrm{ref}} that never triggered drift in preliminary experiments.

Detection rule

At each step, we push the current online error into a fixed-size deque of length ww. Drift is declared when:

eˉrecent>α⋅μref,(3)\bar{e}^{\mathrm{recent}} > \alpha\cdot\mu_{\mathrm{ref}}, \tag*{(3)}

where eˉrecent\bar{e}^{\mathrm{recent}} is the mean over the deque and α≥1\alpha\ge1 is a sensitivity hyperparameter. Setting α=1.0\alpha= 1.0 means any sustained excess over the historical mean is flagged; higher α\alpha trades sensitivity for false-positive suppression. After firing, the deque is cleared to prevent redundant triggers.

Design choices

We deliberately do not add σref\sigma_{\mathrm{ref}} as a hard buffer (as in DDM-style detectors). At cloud scale, the per-sample error variance is high enough that μ+kσ\mu+ k\sigma thresholds essentially never trigger on real (as opposed to pathological) drift, which we observed in early prototypes (0 updates across all four scenarios).

Selective Update Policy

When drift fires, AdaptLSTM must decide (a) how strongly to update and (b) which nodes to prioritize.

Node priority

For each node nn, we maintain a moving average of its recent error e~n\tilde{e}_n and an update counter unu_n. Priority is:

pn=e~n⋅11+βun,(4)p_n = \tilde{e}_n \cdot\frac{1}{1+\beta u_n}, \tag*{(4)}

Algorithm 1 AdaptLSTM Online Loop

Input: Pretrained model θ0\theta_0, validation error stream {eival}i=1m\{e_i^{\mathrm{val}}\}_{i=1}^{m}

Parameters: Sensitivity α\alpha, window size ww, update budget ratio ρ\rho, learning rate η\eta

Output: Updated model θ∗\theta^*, number of updates triggered

  1. μref←mean⁡({eival})\mu_{\mathrm{ref}} \leftarrow\operatorname{mean}(\{e_i^{\mathrm{val}}\}) ▷ calibrate reference threshold

  2. Q←Q \leftarrow empty deque, θ←θ0\theta\leftarrow\theta_0, update_count ←0\leftarrow0

  3. for each incoming sample pair (Xt,Yt)(X_t,Y_t) do

  4. Y^t←fθ(Xt)\hat{Y}_t \leftarrow f_\theta(X_t) ▷ prediction

  5. et←MAE⁡(Y^t,Yt)e_t \leftarrow\operatorname{MAE}(\hat{Y}_t,Y_t) ▷ per-sample error

  6. push ete_t to QQ

  7. if ∣Q∣=w|Q|=w and mean⁡(Q)>α⋅μref\operatorname{mean}(Q)>\alpha\cdot\mu_{\mathrm{ref}} then ▷ drift detected

  8. Nt←N_t \leftarrow top-⌈ρN⌉\lceil\rho N\rceil nodes by gradient magnitude

  9. θ←θ−η∇θL(fθ(Xt),Yt)\theta\leftarrow\theta-\eta\nabla_\theta\mathcal{L}(f_\theta(X_t),Y_t) ▷ selective update

  10. clear QQ, update_count ←\leftarrow update_count +1+1

  11. end if

  12. end for

  13. return θ\theta, update_count

where β\beta (default 0.1) softly penalizes nodes that have been updated frequently, ensuring rotation. The top-⌈ρN⌉\lceil\rho N\rceil nodes by priority are selected, with ρ∈(0,1]\rho\in(0,1] the update ratio.

Gradient update

Given the observation (Xt,Yt)(X_t,Y_t), we run a single Adam step at learning rate η=10−4\eta=10^{-4}:

θ←θ−η∇θL(fθ(Xt),Yt).(5)\theta\leftarrow\theta-\eta\nabla_\theta\mathcal{L}(f_\theta(X_t),Y_t). \tag*{(5)}

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 (§ 4.3). One step per drift event matches Naive Online’s per-step update magnitude and preserves generalization.

  1. Gradient computed on all nodes, not the selected subset. The LSTM parameters are shared across nodes; restricting the gradient to ρN\rho N nodes biases the shared weights and hurts non-selected nodes’ predictions. The selective ratio ρ\rho 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:

Experiments

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 W=12W=12 minutes predict horizons of H=4H=4 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 1→1.51 \to1.5 over the horizon.

  • Sudden: apply a 1.5× 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, η=10−4\eta=10^{-4}.

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 ρ\rho).

Hyperparameters. Base LSTM: hidden 128, 2 layers, dropout 0.2. AdaptLSTM: α=1.0\alpha=1.0, w=20w=20, wmin⁡=5w_{\min}=5, ρ=0.2\rho=0.2, η=10−4\eta=10^{-4}. Full details are provided in Appendix D.3.

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).

ScenariosMAEImprovement vs StaticUpdate Cost
StaticNaiveAdaptLSTMNaiveAdaptLSTMNaiveAdaptLSTM
Gradual Drift0.16990.16390.1678+3.56%+1.27%100%20%
Sudden Drift0.17760.16410.1674+7.62%+5.33%100%20%
Recurring Drift0.17370.16450.1691+5.31%+2.66%100%20%
Mixed Drift0.17330.16390.1679+5.42%+3.07%100%20%
Average0.17360.16410.1682+5.50%+3.10%100%20%

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).

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.

Figure 3 visualizes the Pareto frontier for the sudden-drift scenario, showing how AdaptLSTM’s threshold sweep α∈[0.85,1.30]\alpha\in[0.85, 1.30] traces the lower envelope and dominates both fixed-period and classical-detector baselines at every cost budget.

Figure 3. Pareto frontier on sudden drift. AdaptLSTM sweeps α∈[0.85,1.30]\alpha\in[0.85, 1.30], while fixed-period baselines sweep k∈[3,100]k \in[3, 100]. 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.

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 (ρ=1.0\rho= 1.0) 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 α=1.0\alpha= 1.0 but μref\mu_{\mathrm{ref}} hardcoded at 0.17) demonstrates the importance of validation calibration; even close-to-correct hardcoded values produce different trigger behavior and worse cost profiles.

VariantsMAEUpdatesCost
Full AdaptLSTM0.16744220.0%
w/o Drift Detection0.169543100.0%
w/o Selective Update0.167442100.0%
w/o Adaptive Threshold0.17222320.0%

Table 2. Ablation study on the sudden-drift scenario.

Sensitivity Analysis

Figures 4 and 5 sweep the two key hyperparameters. Threshold factor α\alpha: lower α\alpha increases update frequency and MAE improvement but raises cost; sweet spot at α=1.0\alpha= 1.0. Update ratio ρ\rho: not driving

Figure 4. Threshold factor α\alpha sweep on sudden drift. Lower α\alpha produces more triggers and slightly better MAE but at higher effective cost. α=1.0\alpha=1.0 minimizes MAE while keeping the trigger count near AdaptLSTM’s default operating point. Increasing α\alpha beyond 1.10 starves the update budget and lets MAE climb back toward Static.

Update ratio sweep showing MAE and effective update cost as functions of update ratio

Figure 5. Update ratio ρ\rho sweep on sudden drift. Because the gradient is computed on all nodes, MAE stays essentially flat across ρ∈[0.1,1.0]\rho\in[0.1, 1.0]; ρ\rho acts as a pure reporting knob for effective compute cost. Operators can dial ρ\rho down to match a strict infrastructure budget without sacrificing accuracy.

accuracy directly (gradient is full-node) but tracking the reported cost. Users can dial ρ\rho to match their infra budget without touching accuracy.

Full numerical results for the α\alpha and ρ\rho sweeps are reported in Appendix § 13 (Table 12 and Table 13). Additional sensitivity on window size ww and learning rate η\eta are also provided in Table 14 and Table 15 to demonstrate that AdaptLSTM’s performance is stable across the hyperparameter space.

α\alphaMAE# UpdatesEffective cost
0.850.1670533.52%
0.900.1688493.26%
0.950.1673412.72%
1.000.1679362.39%
1.050.1686291.93%
1.100.1708241.60%
1.200.1735110.73%
1.300.177930.20%

Table 12. Threshold factor α\alpha sweep on sudden drift. # Updates is measured; effective cost =(Updates/T)×ρ=(\mathrm{Updates}/T)\times\rho with T=301T=301, ρ=0.2\rho=0.2.

ρ\rhoMAE# UpdatesCost
0.10.16754210.0%
0.20.16744220.0%
0.30.16734230.0%
0.50.16734250.0%
1.00.167342100.0%

Table 13. Update ratio ρ\rho sweep on sudden drift. MAE is essentially flat because the gradient uses all nodes; ρ\rho only re-scales reported cost.

wwMAE# UpdatesCost
100.16817133.8%
200.16744220.0%
500.1687188.6%
1000.171252.4%

Table 14. Detection window ww sweep on sudden drift.

η\etaMAE# UpdatesCost
5×10−55\times10^{-5}0.16914220.0%
1×10−41\times10^{-4}0.16744220.0%
3×10−43\times10^{-4}0.16854220.0%
5×10−45\times10^{-4}0.17324220.0%

Table 15. Online learning rate η\eta sweep on sudden drift.

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. Overall, 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][0,1]; on our error scale (μref≈0.17\mu_{\mathrm{ref}} \approx0.17) even with permissive settings (δ=0.05\delta=0.05, values rescaled 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.

DetectorsGradual MAEGradual Trig.Sudden MAESudden Trig.Recurring MAERecurring Trig.Mixed MAEMixed Trig.
Static0.169900.177600.173700.17330
ADWIN (δ=0.05\delta=0.05)0.169900.177600.173700.17330
DDM0.169900.177600.173700.17330
Page–Hinkley0.170010.177210.172810.17301
Fixed period (k=8k=8)0.1665370.1684370.1689370.167537
Fixed period (k=5k=5)0.1662600.1670600.1681600.166260
AdaptLSTM (ours)0.1678360.1674420.1691400.167941
Naive Online0.16393000.16413000.16453000.1639300

Table 3. Comparison with classical drift detectors across all four drift scenarios. All 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.

The classical detectors’ collapse to Static is not a tuning artifact: we swept δ∈{0.002,0.01,0.05}\delta\in\{0.002, 0.01, 0.05\} 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.

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

to [?, 1] with saturation at 2μref2\mu_{\mathrm{ref}} it never triggers. DDM’s mistake-rate threshold likewise never crosses on the continuous MAE signal, dropout masks; data, drift injection, and initialization are held fixed. Table 4 reports mean ± std MAE and paired Wilcoxon signed-rank pp-values.

ScenariosStaticNaive (100%)AdaptLSTM (20%)
Gradual0.169920.16386 ± 1.5×10−51.5 \times10^{-5}0.16775 ± 3.0×10−53.0 \times10^{-5}
Sudden0.177620.16412 ± 1.4×10−51.4 \times10^{-5}0.16803 ± 1.2×10−41.2 \times10^{-4}
Recurring0.173730.16450 ± 1.7×10−51.7 \times10^{-5}0.16913 ± 3.9×10−53.9 \times10^{-5}
Mixed0.173250.16388 ± 1.2×10−51.2 \times10^{-5}0.16795 ± 3.4×10−53.4 \times10^{-5}

Table 4. Multi-seed MAE (mean ± std over N=10N=10 seeds) on the Machine Trace. All 10 seeds preserve the ordering Static > Adapt > Naive per scenario, giving paired Wilcoxon two-sided p=0.00195p=0.00195 for both Static vs Adapt and Naive vs Adapt (one-sided p=0.00098p=0.00098). Static has σ=0\sigma=0 because the frozen model is deterministic w.r.t. the drift stream.

Two observations. First, run-to-run variance is extremely small (σ∼10−5\sigma\sim10^{-5}), 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/29≈0.00195p = 1/2^{9} \approx0.00195 for both Static vs Adapt and Naive vs Adapt (equivalently one-sided p≈0.00098p \approx0.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.

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. § 8 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.

ScenariosBackboneStaticNaiveAdaptTrig. / Eff. cost
GradualLSTM0.17720.16310.169518 / 1.20%
GradualGRU0.16850.16290.167122 / 1.46%
GradualTransformer0.17180.16030.167918 / 1.20%
SuddenLSTM0.18660.16350.172822 / 1.46%
SuddenGRU0.17460.16340.169826 / 1.73%
SuddenTransformer0.17770.16070.169022 / 1.46%
RecurringLSTM0.17920.16380.173326 / 1.73%
RecurringGRU0.17080.16350.169525 / 1.66%
RecurringTransformer0.17360.16040.170618 / 1.20%
MixedLSTM0.18250.16310.170620 / 1.33%
MixedGRU0.17130.16300.168823 / 1.53%
MixedTransformer0.17480.16050.169819 / 1.26%

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 T=301T=301; effective cost = (Trig./TT) · ρ\rho with ρ=0.2\rho=0.2.

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.

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.

MetricStaticNaiveAdaptLSTM
Total time (s)1.163.372.53
Throughput (samp/s)258.289.0118.4
Predict latency (ms)0.301.023.17
Update latency, avg (ms)–9.1440.78
# Updates030037
Cumulative update time (s)02.741.51
Peak GPU memory (MB)151248254

Table 6. Wall-clock efficiency profile on sudden drift (300 samples, NVIDIA A30).

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. 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.

DatasetsScenariosMAEImprovement over StaticCost
StaticNaiveAdaptLSTMNaive (100%)AdaptLSTM (20%)Adapt/Naive
MachineGradual0.16990.16390.1677+3.56%+1.28%35.8%
Sudden0.17760.16410.1680+7.60%+5.40%71.1%
Recurring0.17370.16450.1691+5.32%+2.65%49.9%
Mixed0.17330.16390.1680+5.41%+3.06%56.5%
Average0.17360.16410.1682+5.47%+3.10%53.3%
ContainerGradual0.03290.01470.0159+55.34%+51.70%93.4%
Sudden0.12890.01820.0261+85.89%+79.77%92.9%
Recurring0.09640.01410.0150+85.42%+84.44%98.9%
Mixed0.09530.01410.0140+85.22%+85.30%100.1%
Average0.08840.01530.0177+77.97%+75.30%96.3%

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.

We repeat the classical-detector comparison in Table 8. The pattern from Machine repeats and is in fact more extreme: ADWIN 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×5 \times 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.

DetectorsGradualSuddenRecurringMixed
MAETrig.MAETrig.MAETrig.MAETrig.
Static0.032900.128900.096400.09530
ADWIN (δ=0.05\delta=0.05)0.032900.128900.096400.09530
DDM0.032900.128900.096400.09530
Page–Hinkley0.044220.072250.096400.05794
Fixed period (k=8k=8)0.0235370.0383370.0314370.020137
Fixed period (k=5k=5)0.0208600.0347600.0153600.016660
AdaptLSTM (ours)0.0159∼42\sim420.0261∼31\sim310.0150∼60\sim600.0140∼42\sim42
Naive Online0.01473000.01823000.01413000.0141300

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.

Discussion and Limitations

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.

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 (§ 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 § 18. Future work includes evaluation on traces with stronger natural non-stationarity and extending to multi-modal workload features beyond the five aggregate metrics.

Deployment Considerations

Integrating AdaptLSTM into production forecasting pipelines requires three practical considerations. First, the detector’s memory footprint is dominated by the error queue QQ (size w=20w=20, 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 Lref\mathcal{L}_{\mathrm{ref}} 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 α\alpha without retraining, making the system tunable to deployment-specific latency and cost budgets. In our profiling (§ 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.

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 § 11, § 15, § 16, and § 17. 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).

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 H⋅FH \cdot F scalars per node. Roughly 30% fewer parameters than the equivalent LSTM.

Transformer backbone. An encoder-only Transformer with dmodel=128d_{\mathrm{model}}=128, 4 heads, 2 layers, learned positional embeddings, GELU activation, and the same linear output head. About 2× 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 (lr=10−3lr=10^{-3}, batch 64). Online evaluation uses lr=10−4lr=10^{-4} 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.

Classical Detector Configurations

For reproducibility we document exact settings used for Table 3 and 8 in Table 9.

DetectorsParameters
ADWINδ=0.05\delta=0.05 (permissive), window cap 500, min samples 20, values rescaled to [0,1][0,1] with saturation at 2μref2\mu_{\mathrm{ref}}
DDMτ=μref\tau=\mu_{\mathrm{ref}} (mistake threshold), drift level p+s>pmin⁡+3smin⁡p+s>p_{\min}+3s_{\min}
Page–Hinkleyλ=2.0\lambda=2.0, δ=0.005\delta=0.005, warm-started with reference mean
Fixed-periodk∈{5,8}k \in\{5,8\}; k=8k=8 approximately matches AdaptLSTM’s trigger count, k=5k=5 approximately matches AdaptLSTM’s effective cost

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.

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 μref→1.05μref\mu_{\mathrm{ref}} \to1.05\mu_{\mathrm{ref}} 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 (λ=2.0\lambda=2.0 is already aggressive for our error scale; smaller λ\lambda 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.

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=10N=10 seeds the minimum obtainable two-sided pp is 2/29=0.001952/2^{9}=0.00195, which we attain because all 10 seeds preserve the Static>Adapt>Naive ordering across all four scenarios.

Figure 6. Drift detection timeline under sudden drift (Machine Trace, steps 100–200). After drift at step 150, MAE rises from ≈0.164\approx0.164 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 μref=0.1639\mu_{\mathrm{ref}}=0.1639. Total effective cost is 0.8%, versus Naive’s 100%.

Reproducibility Details

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.

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\sim15 minutes per seed on an A30, allowing 10 seeds within reasonable wall-clock time (∼2.5\sim2.5 hours total). Container evaluations take ∼45\sim45 minutes per seed due to higher node count, making 10 seeds prohibitively expensive (∼7.5\sim7.5 hours). With 5 seeds, Container significance tests remain valid (Wilcoxon requires N≥5N \ge5) while keeping total runtime under 4 hours. All 5 Container seeds preserve the Static>>Adapt>>Naive ordering, yielding p<0.05p < 0.05 despite the smaller sample.

Exact Hyperparameters

We present the settings of exact hyperparameters in Table 10.

ParametersValue
Base LSTM
Hidden dimension128
Number of layers2
Dropout0.2
Optimizer (offline)Adam
Learning rate (offline)10−310^{-3}
Batch size64
Max epochs100
Early stopping patience15
Gradient clipping1.0
AdaptLSTM Online
Sensitivity α\alpha1.0
Detection window ww20
Minimum samples wmin⁡w_{\min}5
Update ratio ρ\rho0.2
Priority decay β\beta0.1
Update learning rate η\eta10−410^{-4}
Update steps per trigger1
Reference sample size300

Table 10. Full hyperparameters.

Data Preprocessing

We load the raw Alibaba Cluster Trace v2018 dataset, aggregate five features (CPU%, MEM%, Disk-I/O%, 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.

Full Ablation Results

Table 11 reports the ablation on all four drift scenarios. Each uses the same detector settings (α=1.0\alpha=1.0, w=20w=20, wmin⁡=5w_{\min}=5) as the main table; only the ablated component varies.

ScenariosVariantsMAEUpdatesCost
SuddenFull0.16744220.0%
Suddenw/o Drift Detection0.169543100.0%
Suddenw/o Selective0.167442100.0%
Suddenw/o Adaptive Threshold0.17222320.0%
GradualFull0.16783620.0%
Gradualw/o Drift Detection0.168736100.0%
RecurringFull0.16914020.0%
Recurringw/o Drift Detection0.170140100.0%
MixedFull0.16794120.0%
Mixedw/o Drift Detection0.169041100.0%

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 ρ=1.0\rho=1.0; “w/o Adaptive Threshold” hardcodes μref=0.17\mu_{\mathrm{ref}}=0.17.

Sensitivity Sweeps

Threshold α=1.0\alpha=1.0 minimizes MAE; larger values miss drift, smaller values trigger on noise. Ratio ρ\rho is a pure budget knob (flat MAE, linear cost). Window w=20w=20 balances responsiveness and noise robustness. Learning rate η=10−4\eta=10^{-4} matches the offline schedule and is safest; η=5×10−4\eta=5\times10^{-4} overshoots and hurts MAE despite the same trigger count.

Failure Analysis

We inspected 20 samples where AdaptLSTM’s error exceeded Naive’s by >0.02>0.02 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 saves 80% of updates by tolerating this lag. A secondary pattern is trigger-cluster oscillation: three consecutive triggers within 15 steps

can produce small MAE oscillation. Increasing wmin⁡w_{\min} from 5 to 10 mitigates this at the cost of slightly slower recovery.

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 N×H×FN\times H\times F) 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 μ+σ\mu+\sigma never triggered because σ≈0.03\sigma\approx0.03 while typical excess was ≈0.005\approx0.005; dropping the σ\sigma term restored sensitivity. Fourth, the initial threshold factor α=1.3\alpha=1.3 required 30% error inflation to trigger, which the mid-drift period rarely reaches, so we settled on α=1.0\alpha=1.0 after the sensitivity sweep in Appendix F.

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 1.5× scale shift). Pre-drift, the model error oscillates near the validation reference μref=0.1639\mu_{\mathrm{ref}}=0.1639; the detector remains quiescent. At step 150 the drift manifests: MAE jumps to ≈0.21\approx0.21, exceeding the threshold αμref=1.0×0.1639=0.1639\alpha\mu_{\mathrm{ref}}=1.0\times0.1639=0.1639. The detector fires at step 152 (after accumulating w=20w=20 recent samples above threshold), triggering a single gradient update. Post-update, error drops sharply to ≈0.17\approx0.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%4/301 \times0.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.

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,000N=10{,}000 nodes ×F=5\times F=5 features over H=4H=4 horizons, requiring ∼2.5\sim2.5 GFLOPs for a forward pass on our LSTM backbone. An update (backward pass + optimizer step) costs an additional ∼7.5\sim7.5 GFLOPs.

Table 16 compares three policies over a 24-hour period (1,440 minutes). Static inference alone consumes 1,440×2.5=3,6001{,}440 \times2.5 = 3{,}600 GFLOPs. Naive Online adds updates at every step: 1,440×(2.5+7.5)=14,4001{,}440 \times(2.5 + 7.5) = 14{,}400 GFLOPs, a 4× increase. AdaptLSTM triggers ∼14%\sim14\% of the time (extrapolating from sudden-drift ratio 42/301≈0.1442/301 \approx0.14), yielding 1,440×2.5+(0.14×1,440)×7.5≈5,1121{,}440 \times2.5 + (0.14 \times1{,}440) \times7.5 \approx5{,}112 GFLOPs. At a typical cloud GPU rate of $2.50 per A30-hour and ∼300\sim300 TFLOP/s sustained, this translates to $0.033/hour for Static, $0.133/hour for Naive, and $0.047/hour for AdaptLSTM. Over one year, the gap is $289 (Static), $1,165 (Naive), and $412 (AdaptLSTM). AdaptLSTM recovers 54% of Naive’s accuracy improvement (Machine Trace) while saving $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.

PolicyTotal GFLOPs (24h)Cost (24h)Annual cost
Static3,600$0.79 | $289
Naive Online14,400$3.19 | $1,165
AdaptLSTM5,112$1.13 | $412
Savings vs Naive9,288 (64.5%)$2.06 | $753

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).

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 α\alpha to balance accuracy and cost. Overall, AdaptLSTM converts selective updating into practical operational savings for cost-sensitive web infrastructure.

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.

DatasetsStatic MAENaive MAEAdaptLSTM MAETriggers
Machine0.16520.15880.162935 / 301 (11.6%)
Container0.03120.01390.03120 / 301 (0%)

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.

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.

References

  1. [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. [2]Manuel Baena-Garcia, José del Campo-Ávila, Raúl 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. [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).arxiv.org/abs/1803.01271
  4. [4]Albert Bifet and Ricard Gavaldà. 2007. Learning from time-changing data with adaptive windowing. In Proceedings of the 2007 SIAM international conference on data mining. SIAM, 443–448.DOI
  5. [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).arxiv.org/abs/1902.10486
  6. [6]Eli Cortez, Anand Bonder, 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. [7]Joao Gama, Pedro Medas, Gladys Castillo, and Pedro Rodrigues. 2004. Learning with drift detection. In Brazilian symposium on artificial intelligence. Springer, 286–295.DOI
  8. [8]João Gama, André Žliobaitė, Albert Bifet, Mykola Pechenizkiy, and Abdelhamid Bouchachia. 2014. A survey on concept drift adaptation. ACM computing surveys (CSUR) 46, 4 (2014), 1–37.DOI
  9. [9]Ömer Gözüaçık, Alican Büyükçakır, Hamed Bonab, and Fazli 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.DOI
  10. [10]Ying Geng, 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. [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. [12]Sepp Hochreiter and Jürgen Schmidhuber. 1997. Long short-term memory. Neural computation 9, 8 (1997), 1735–1780.
  13. [13]Steven CH Hoi, Doyen Sahoo, Jing Lu, and Peilin Zhao. 2021. Online learning: A comprehensive survey. Neurocomputing 459 (2021), 249–289.arxiv.org/abs/1802.02871
  14. [14]James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grab­ska-Barwinska, et al. 2017. Overcoming catastrophic forgetting in neural networks. Proceedings of the national academy of sciences 114, 13 (2017), 3521–3526.DOI
  15. [15]David Lopez-Paz and Marc’Aurelio Ranzato. 2017. Gradient episodic memory for continual learning. Advances in neural information processing systems 30 (2017).arxiv.org/abs/1706.08840
  16. [16]Jie Lu, An Liu, Fan Dong, Feng Guo, Joao Gama, and Guangquan Zhang. 2018. Learning under concept drift: A review. IEEE transactions on knowledge and data engineering 31, 12 (2018), 2346–2363.DOI
  17. [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.DOI
  18. [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.arxiv.org/abs/2211.14730
  19. [19]Ewan S Page. 1954. Continuous inspection schemes. Biometrika 41, 1/2 (1954), 100–115.
  20. [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).arxiv.org/abs/1606.04671
  21. [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.DOI
  22. [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.arxiv.org/abs/2106.13008
  23. [23]Friedemann Zenke, Ben Poole, and Surya Ganguli. 2017. Continual learning through synaptic intelligence. In International conference on machine learning. Pmlr, 3987–3995.arxiv.org/abs/1703.04200
  24. [24]Hao 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.

Paper details

vlnc:W_8qcbxa55
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 4

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents