When to Retrain: An Empirical Study of Retraining Policies for Streaming ML Under Concept Drift, Budget, and Latency Constraints

ML AutoML Continual Learning
生产环境中的机器学习系统在遭遇概念漂移时性能会逐渐下降,但从业者目前缺乏系统性、可操作的指导原则来判断何时应重新训练模型。重新训练成本高昂,重训练预算有限,且新模型无法即时生效:模型训练与部署所引入的延迟,会导致一个已过时的旧模型持续提供预测服务,而与此同时数据分布仍在持续变化。 本文开展了一项受控的实证研究,对比评估了三种实用的模型更新策略——周期性重训练、基于误差阈值触发的重训练,以及基于统计漂移检测(采用ADWIN算法)触发的重训练——并以“不重训练”作为基准线。所有策略均在一个统一的系统建模框架下进行评估,该框架显式地刻画了重训练预算约束以及训练加部署的端到端延迟。 实验共完成3933次运行,覆盖三种漂移类型(突变型、渐变型与周期性重现型)、三个预算水平、最多五个延迟水平、三个真实数据集以及两种学习模式(是否支持逐样本增量更新)。研究发现:影响系统性能的最关键设计决策,并非选择何种重训练策略,而在于所部署模型是否支持增量式学习。对于本研究所考察的、具备即时标签反馈能力的线性在线学习器,在启用逐样本增量更新的前提下,无论采用哪一种重训练策略,在全部54组两两对照实验中,其性能均未显著优于“不重训练”基线——即便在极端延迟条件下亦是如此。 反之,若模型不支持增量更新,则重训练策略的选择将导致漂移发生后的预测准确率相差高达15–55个百分点;其中,简单的周期性重训练策略在突变型和渐变型漂移场景下均显著优于两种响应式策略(即误差阈值触发与漂移检测触发),而响应式策略仅在周期性重现漂移场景下仍保有微弱优势。 此外,我们系统梳理了响应式策略的典型失效模式,并揭示了一种由延迟与预算共同引发的队列效应:该效应会在用户无感知的情况下,使实际可用的重训练预算减半。为保障研究可复现性,我们已开源完整的仿真器、数据集处理流水线,以及每一次实验运行所产生的全部中间产物与结果文件。
Production machine learning systems degrade under concept drift, yet practitioners have little principled guidance on when to retrain. Retraining is costly, retraining budgets are finite, and a retrained model does not take effect instantly: training and deployment latency leave a stale model serving predictions while the data continues to move. We present a controlled empirical study of three practical model-refresh policies (periodic retraining, error-threshold triggering, and statistical drift-triggered retraining with ADWIN) against a no-retrain baseline, evaluated under a unified system model that makes retraining budgets and training-plus-deployment latency explicit. Across 3,933 experiment runs spanning three drift regimes, three budget levels, up to five latency levels, three datasets, and two learning modes, we find that the single most consequential design decision is not the retraining policy but whether the deployed model learns incrementally. With per-sample incremental updates, and for the linear online learner with immediate labels studied here, no policy differs from the no-retrain baseline by a practically significant margin in any of 54 paired comparisons, even at extreme latency. Without incremental updates, policy choice separates outcomes by 15-55 percentage points of post-drift accuracy, and simple periodic retraining significantly outperforms both reactive policies under abrupt and gradual drift, while reactive policies retain an advantage only under recurring drift. We document systematic failure modes of reactive policies and a latency-budget queueing interaction that silently halves effective retraining budgets, and release the full simulator, dataset pipelines, and per-run artifacts for reproducibility.
许愿