Lune

ICML2025Top-tier venue

When to retrain a machine learning model

Florence Regol, Leo Schwinn, Kyle Sprague, Mark Coates, Thomas Markovich

Abstract

A significant challenge in maintaining real-world machine learning models is responding to the continuous and unpredictable evolution of data. Most practitioners are faced with the difficult question: when should I retrain or update my machine learning model? This seemingly straightforward problem is particularly challenging for three reasons: 1) decisions must be made based on very limited information -we usually have access to only a few examples, 2) the nature, extent, and impact of the distribution shift are unknown, and 3) it involves specifying a cost ratio between retraining and poor performance, which can be hard to characterize. Existing works address certain aspects of this problem, but none offer a comprehensive solution. Distribution shift detection falls short as it cannot account for the cost trade-off; the scarcity of the data, paired with its unusual structure, makes it a poor fit for existing offline reinforcement learning methods, and the online learning formulation overlooks key practical considerations. To address this, we present a principled formulation of the retraining problem and propose an uncertainty-based method that makes decisions by continually forecasting the evolution of model performance evaluated with a bounded metric. Our experiments addressing classification tasks show that the method consistently outperforms existing baselines on 7 datasets. ' c s 3 s e d a r k n e t l ' , ' c s 3 s e d a r k n e t x ' , ' c s p d a r k n e t 5 3 ' , ' c s p r e s n e t 5 0 ' , ' c s p r e s n e x t 5 0 ' , ' d a r k n e t 5 3 ' , ' d a r k n e t a a 5 3 ' , ' d a v i t b a s e ' , ' d a v i t s m a l l ' , ' d a v i t t i n y ' , ' d e i t 3 b a s e p a t c h 1 6 2 2 4 ' , ' d e i t 3 m e d i u m p a t c h 1 6 2 2 4 ' , ' d e i t 3 s m a l l p a t c h 1 6 2 2 4 ' , ' d e i t b a s e d i s t i l l e d p a t c h 1 6 2 2 4 ' , ' d e i t b a s e p a t c h 1 6 2 2 4 ' , ' d e i t s m a l l d i s t i l l e d p a t c h 1 6 2 2 4 ' , ' d e i t s m a l l p a t c h 1 6 2 2 4 ' , ' d e i t t i n y d i s t i l l e d p a t c h 1 6 2 2 4 ' , ' d e i t t i n y p a t c h 1 6 2 2 4 ' , ' d e n s e n e t 1 2 1 ' , ' d e n s e n e t 1 6 1 ' , ' d e n e n e t 1 6 9 ' , ' d e n s e n e t 2 0 1 ' , ' d e n s e n e t b l u r 1 2 1 d ' , ' d l a 1 0 2 ' , ' d l a 1 0 2 x ' , ' d l a 1 0 2 x 2 ' , ' d l a 1 6 9 ' , ' d l a 3 4 ' , ' d l a 4 6 c ' , ' d l a 4 6 x c ' , ' d l a 6 0 ' , ' d l a 6 0 r e s 2 n e t ' , ' d l a 6 0 r e s 2 n e x t ' , ' d l a 6 0 x ' , ' d l a 6 0 x c ' , ' d m n f n e t f 0 ' , ' d m n f n e t f 1 ' , ' dpn68 ' , ' dpn68b ' , ' dpn92 ' , ' dpn98 ' , ' e c a n f n e t l 0 ' , ' e c a n f n e t l 1 ' , ' e c a n f n e t l 2 ' ,

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Offline Reinforcement Learning as One Big Sequence Modeling Problem cites Offline Reinforcement Learning with Implicit Q-Learning
  • Offline Reinforcement Learning as One Big Sequence Modeling Problem cites Conservative Q-Learning for Offline Reinforcement Learning
  • Offline Reinforcement Learning with Implicit Q-Learning cites Conservative Q-Learning for Offline Reinforcement Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on17

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. Conservative Q-Learning for Offline Reinforcement LearningAviral Kumar, Aurick Zhou, George Tucker, Sergey LevineNeurIPS 2020 · 2,881 citations
  3. Energy-based Out-of-distribution DetectionWeitang Liu, Xiaoyun Wang, John D. Owens, Yixuan LiNeurIPS 2020 · 2,213 citations
  4. Offline Reinforcement Learning with Implicit Q-LearningIlya Kostrikov, Ashvin Nair, Sergey LevineICLR 2022 · 1,402 citations
  5. Offline Reinforcement Learning as One Big Sequence Modeling ProblemMichael Janner, Qiyang Li, Sergey LevineNeurIPS 2021 · 950 citations

Related papers

  1. Backward-Compatible Prediction Updates: A Probabilistic ApproachFrederik Träuble, Julius von Kügelgen, Matthäus Kleindessner, Francesco Locatello et al.NeurIPS 2021 · 20 citations
  2. Reliably detecting model failures in deployment without labelsViet Nguyen, Changjian Shui, Vijay Giri, Siddharth Arya et al.NeurIPS 2025 · 3 citations
  3. Efficiently Mitigating the Impact of Data Drift on Machine Learning PipelinesSijie Dong, Qitong Wang, Soror Sahri, Themis Palpanas et al.VLDB 2024 · 13 citations
  4. Time-Varying Propensity Score to Bridge the Gap between the Past and PresentRasool Fakoor, Jonas Mueller, Zachary Chase Lipton, Pratik Chaudhari et al.ICLR 2024 · 4 citations
  5. RECORD: Resource Constrained Semi-Supervised Learning under Distribution ShiftLan-Zhe Guo, Zhi Zhou, Yufeng LiKDD 2020 · 15 citations
Dusk over the sea between two cliffs drawn in fine vertical lines