Efficient Test-Time Model Adaptation without Forgetting

Shuaicheng Niu, Jiaxiang Wu, Yifan Zhang, Yaofo Chen, Shijian Zheng +2 more
4/6/2022
cs.LG

Official code: mr-eggplant/EATA (146 stars, last commit 2023-05-19).

Abstract

Test-time adaptation (TTA) seeks to tackle potential distribution shifts between training and testing data by adapting a given model w.r.t. any testing sample. This task is particularly important for deep models when the test environment changes frequently.

Show full abstract

Although some recent attempts have been made to handle this task, we still face two practical challenges: 1) existing methods have to perform backward computation for each test sample, resulting in unbearable prediction cost to many applications; 2) while existing TTA solutions can significantly improve the test performance on out-of-distribution data, they often suffer from severe performance degradation on in-distribution data after TTA (known as catastrophic forgetting). In this paper, we point out that not all the test samples contribute equally to model adaptation, and high-entropy ones may lead to noisy gradients that could disrupt the model. Motivated by this, we propose an active sample selection criterion to identify reliable and non-redundant samples, on which the model is updated to minimize the entropy loss for test-time adaptation. Furthermore, to alleviate the forgetting issue, we introduce a Fisher regularizer to constrain important model parameters from drastic changes, where the Fisher importance is estimated from test samples with generated pseudo labels. Extensive experiments on CIFAR-10-C, ImageNet-C, and ImageNet-R verify the effectiveness of our proposed method.

View on arXivView PDF

Code Implementations(1)

mr-eggplant/EATAOfficial100%

Code for ICML 2022 paper — Efficient Test-Time Model Adaptation without Forgetting

1469May 26, 20223 years agoNOASSERTION

Similar Papers

Cite this paper

@article{niu2022efficient,
  title  = {Efficient Test-Time Model Adaptation without Forgetting},
  author = {Shuaicheng Niu and Jiaxiang Wu and Yifan Zhang and Yaofo Chen and Shijian Zheng and Peilin Zhao and Mingkui Tan},
  year   = {2022},
  eprint = {2204.02610},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.02610}
}

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

Discussion