← Blog/blog/adaptive-update-cost-denominator

The 20% update cost that changes with the denominator

A cloud forecaster does not need to relearn at every minute. Miao, Yang, and Cai monitor recent prediction error, compare it with a validation baseline, and take one gradient step only when the window looks worse. That is the useful idea in AdaptLSTM. The paper reports that it captures 54% of naive online learning's gain at 20% of the cost—but “cost” changes meaning across the experiment.

01

A detector with one moving part

Concept drift means the relationship learned from past data no longer matches the live stream. AdaptLSTM first computes mean absolute error (MAE) on a held-out validation set. Online, it fills a queue with the latest errors and triggers when the queue mean exceeds alpha × validation mean. The queue is then cleared.

def detect(errors, reference, alpha, window):
    queue, triggers = [], []
    for index, error in enumerate(errors):
        queue.append(error)
        if len(queue) > window:
            queue.pop(0)
        if len(queue) < window:
            continue
        recent = sum(queue) / window
        if recent > alpha * reference:
            triggers.append(index)
            queue.clear()
    return triggers

The site runs the TypeScript implementation above. In the seed-free toy stream below, the validation mean is 0.10, the threshold is 0.12, and a three-point window first triggers at index 5. The lag is deliberate: a single spike cannot force an update.

online MAErecent-window MAEtrigger threshold
Illustrative, deterministic errors computed by the core detector—not paper data. The orange mean resets after a trigger.
02

The forecasting result is real

On 301 high-variability machines from Alibaba's public 2018 trace, twelve minutes of history predict four future steps. The paper adds gradual, sudden, recurring, or mixed scale drift to the test split. Static means no online updates; naive online means one Adam step after every observation; AdaptLSTM updates only after a trigger.

StaticNaive onlineAdaptLSTM
Paper-reported MAE. Lower is better; scenario order is gradual, sudden, recurring, mixed.
DriftStatic MAENaive MAEAdapt MAENaive gain captured
Gradual0.16990.16390.167835%
Sudden0.17760.16410.168170%
Recurring0.17370.16450.169150%
Mixed0.17330.16390.167957%

Under sudden drift, AdaptLSTM closes 70.4% of the Static-to-Naive MAE gap. Across all four scenarios the paper reports 54%. The ordering also holds over ten seeds. None of that depends on the disputed denominator; the disagreement begins when the paper converts those gains into “per unit compute.”

03

One experiment, four cost denominators

The main ablation contains 42 trigger events over 301 steps. The update ratio ρ = 0.2 ranks the top 20% of nodes for attribution, but the gradient still uses all nodes. From the paper's own numbers, four different percentages can be computed without changing the run.

Cost definitionNumeratorDenominatorShare
Node ratio ρselected nodesall nodes20.0%
Appendix formulatriggers × ρ301 steps2.8%
Trigger rate42 backward-pass events301 steps14.0%
Measured update time1.51 seconds2.74 seconds55.1%
All four bars are computed from paper-reported quantities. They answer different questions and are not interchangeable.

This also changes the headline efficiency ratio. Dividing 54% captured improvement by a 20% label gives 2.7×. Dividing by the measured 55.1% update-time share gives about 0.98× on the same normalization. Neither is universally “correct”: wall-clock update time, total end-to-end latency, energy, and FLOPs are different resources. The denominator must be named before the ratio can travel.

Improvement-per-cost ratio under two paper-supported denominators; computed from the same 54% gain capture.
04

What to keep, and what to probe next

The detector is an accessible deployment pattern: validate the baseline, smooth live error, update once, and measure the trigger lag. It wraps an LSTM in the paper, but the same controller also wraps GRU and Transformer backbones. The core idea therefore cross-links naturally to the site's neural-network walkthrough and Transformer walkthrough.

The next experiment should make ρ operational: compute the gradient only on the selected nodes, then report realized FLOPs, end-to-end latency, energy, and accuracy. If shared-weight bias makes that fail—as the authors warn—then ρ is an attribution knob, not a compute knob. Separately, evaluate natural drift: the main Machine Trace experiments synthetically scale features, so trigger quality on launches, holidays, or cache invalidations remains an open deployment question.

References

  1. X. Miao, B. Yang, and Z. Cai (2026). AdaptLSTM: Efficient Adaptive Online Learning for Cloud Workload Forecasting under Distribution Drift. arXiv:2610.12265
  2. J. Gama, I. Žliobaitė, M. Pechenizkiy, and A. Bouchachia (2014). A Survey on Concept Drift Adaptation. ACM Computing Surveys 46(4)
  3. J. Guo et al. (2019). Who Limits the Resource Efficiency of My Datacenter: An Analysis of Alibaba Datacenter Traces. IWQoS