Optimal Empirical Risk Minimization under Temporal Distribution Shifts

Yujin Jeong, Ramesh Johari, Dominik Rothenhäusler, Emily Fox
7/17/2025
stat.MEcs.LG

No confident code implementation found for this paper.

Abstract

Temporal distribution shifts pose a key challenge for machine learning models trained and deployed in dynamically evolving environments. This paper introduces RIDER (RIsk minimization under Dynamically Evolving Regimes) which derives optimally-weighted empirical risk minimization procedures under temporal distribution shifts. Our approach is theoretically grounded in the random distribution shift model, where random shifts arise as a superposition of numerous unpredictable changes in the data-generating process. We show that common weighting schemes, such as pooling all data, exponentially weighting data, and using only the most recent data, emerge naturally as special cases in our framework. We demonstrate that RIDER consistently improves out-of-sample predictive performance when applied as a fine-tuning step on the Yearbook dataset, across a range of benchmark methods in Wild-Time. Moreover, we show that RIDER outperforms standard weighting strategies in two other real-world tasks: predicting stock market volatility and forecasting ride durations in NYC taxi data.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{jeong2025optimal,
  title  = {Optimal Empirical Risk Minimization under Temporal Distribution Shifts},
  author = {Yujin Jeong and Ramesh Johari and Dominik Rothenhäusler and Emily Fox},
  year   = {2025},
  eprint = {2507.13287},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.13287v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.13287.svg)](https://codeofpaper.com/paper/2507.13287)

Discussion