Training for the Future: A Simple Gradient Interpolation Loss to Generalize Along Time

Anshul Nasery, Soumyadeep Thakur, Vihari Piratla, Abir De, Sunita Sarawagi
8/15/2021
cs.LGstat.ML

Official code: anshuln/Training-for-the-Future (10 stars, Python, MIT, last commit 2021-11-17).

Abstract

In several real world applications, machine learning models are deployed to make predictions on data whose distribution changes gradually along time, leading to a drift between the train and test distributions. Such models are often re-trained on new data periodically, and they hence need to generalize to data not too far into the future.

Show full abstract

In this context, there is much prior work on enhancing temporal generalization, e.g. continuous transportation of past data, kernel smoothed time-sensitive parameters and more recently, adversarial learning of time-invariant features. However, these methods share several limitations, e.g, poor scalability, training instability, and dependence on unlabeled data from the future. Responding to the above limitations, we propose a simple method that starts with a model with time-sensitive parameters but regularizes its temporal complexity using a Gradient Interpolation (GI) loss. GI allows the decision boundary to change along time and can still prevent overfitting to the limited training time snapshots by allowing task-specific control over changes along time. We compare our method to existing baselines on multiple real-world datasets, which show that GI outperforms more complicated generative and adversarial approaches on the one hand, and simpler gradient regularization methods on the other.

View on arXivView PDF

Code Implementations(1)

MIT

Official code release for the NeurIPS 2021 article Training for the Future: A Simple Gradient Interpolation Loss to Generalize Along Time

102PythonOct 26, 20215 years agoMIT

Similar Papers

Cite this paper

@article{nasery2021training,
  title  = {Training for the Future: A Simple Gradient Interpolation Loss to Generalize Along Time},
  author = {Anshul Nasery and Soumyadeep Thakur and Vihari Piratla and Abir De and Sunita Sarawagi},
  year   = {2021},
  eprint = {2108.06721},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.06721}
}

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/2108.06721.svg)](https://codeofpaper.com/paper/2108.06721)

Discussion