arXiv:2609.01126cs.LGSep 2026

Manuscript Offprint

arXiv:2609.01126

When Does Online Adaptation Pay on the Edge? A Leakage-Free Evaluation of Warmup, Learning-Rate Selection, and Resource Trade-offs for Time-Series Forecasting

Takumi Fujimoto, Hiroaki Nishi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

A Leakage-Free Evaluation of Warmup, Learning-Rate Selection, and Resource Trade-offs for Time-Series Forecasting

Takumi Fujimoto

School of Science for Open and Environmental Systems, Graduate School of Science and Technology, Keio University Yokohama, Japan takmin@keio.jp

Hiroaki Nishi

School of Informatics, Management, and Human Sciences, Graduate School of Science and Technology, Keio University Yokohama, Japan west@keio.jp

Abstract—Online adaptation can help edge time-series forecasting under distribution drift, but its measured benefit is sensitive to evaluation choices. We study six public multivariate streams, including building-sensor and smart-meter data, under a leakage-free streaming protocol. We identify two additional sources of comparison bias. First, the warmup budget of the static baseline has a two-sided effect: insufficient warmup undertrains the baseline, whereas excessive warmup can degrade its pre-drift generalization. Across six dataset-backbone settings, the estimated adaptation benefit changes by 3.0 to 18.8 percentage points (pp) over the 1,000–20,000-step warmup range. Second, comparing SGD with momentum (SGD+m) and Adam at a shared default learning rate conflates optimizer quality with rate sensitivity. We select both the warmup budget and each optimizer's online rate using a held-out pre-drift validation slice without accessing test data. Under this validation-only procedure, Adam outperforms SGD+m in 310 of 360 evaluated cells, while 4 Adam cells remain below the static baseline. We further characterize accuracy against adaptation-state memory and A100-measured per-update latency for full, head-only, and calibration-based adaptation. In the evaluated PatchTST frontier settings, several parameter-efficient variants are nondominated on the adaptation-state-memory axis. Smart-meter analyses also show that reported gains depend on meter-selection rules. These findings support a validation-only commissioning procedure, while target-device latency and energy remain to be measured. Code, data, and all reported numbers: https://github.com/keiotakmin/tsf-edge-adaptation.

Index Terms—online time-series forecasting, test-time adaptation, concept drift, edge computing, evaluation methodology, building energy

I. INTRODUCTION

Time-series forecasting (TSF) models can be deployed on edge devices: a smart building can predict its next-hour load from an embedded meter, and an IoT node can forecast a sensor stream without a round trip to the cloud. Such deployments often face two coupled conditions. First, the data distribution drifts: occupancy patterns, seasons, retrofits, and sensor aging can change the signal after the model is trained. This motivates on-device adaptation, that is, continuing to update the model

from the incoming stream. Second, the device is resource-constrained: optimizer state, peak memory, and per-update compute are first-order deployment costs. A forecaster that adapts effectively but requires substantial adaptation state may exceed the memory available for adaptation. The question is therefore not only “does adaptation help?” but “when does adaptation pay, and at what resource cost?”

Answering this question requires an evaluation protocol whose sources of bias are explicit. The first is already known: evaluating a streaming adapter with overlapping prediction windows lets the model see, in a gradient step, targets that will later be scored—an information leak formalized by DSOF [1] and by concurrent work on delayed ground truth [2]. We use a leakage-free protocol (non-overlapping windows at stride equal to the horizon, with each target scored before it can enter any gradient) and verify that our implementation reproduces the known leakage effect against a delayed-adaptation control.

Our main contribution concerns the static comparison baseline. The reported benefit of adaptation is measured against a baseline—the same model without online updates—and that baseline's quality depends on its warmup budget. In our sweep, this dependence is two-sided and non-monotone. An under-warmed baseline underfits, so adaptation can receive credit for completing base training rather than tracking drift. An over-warmed baseline can generalize worse from the pre-drift warmup segment to the drifted test window, increasing the estimated benefit again. Within the sweep, the estimated benefit is least sensitive to the baseline training budget near the budget that minimizes static test error; we use that point only as a test-selected oracle reference. Its one-sided form is related to the familiar weak-baseline critique and to observations in test-time adaptation [3], but the non-monotone pattern motivates an explicit selection rule. We therefore adapt the validation-based comparison principle of offline optimizer benchmarking [4]: early-stop warmup on a held-out slice of the most recent pre-drift data without accessing test data.

A second evaluation sensitivity emerged from our analysis. Comparing SGD with momentum (SGD+m) and Adam at the shared rate 10−310^{-3} can make SGD+m appear more robust than Adam. This is primarily a statement about learning-rate robustness. In our grid, the two optimizers exhibit different empirical rate ranges in which no cell falls below the static baseline, and the shared default lies in different parts of those ranges. We select each optimizer's rate by rehearsing online adaptation on the same held-out pre-drift slice. This selection substantially changes the observed cell-wise comparison.

Under this validation-only protocol, we characterize accuracy against adaptation-state memory and A100-measured update latency for several adaptation strategies. All tuned choices are made per device at commissioning from that device's own pre-drift data, with no test data and no cross-device coordination. We additionally evaluate smart-meter subsets, a 280-meter site, and a 240-meter fleet spanning 18 of 19 BDG2 sites (§IV-A).

References (23)