Layer-wise Auto-Weighting for Non-Stationary Test-Time Adaptation

Junyoung Park, Jin Kim, Hyeongjun Kwon, Ilhoon Yoon, Kwanghoon Sohn
11/10/2023
cs.LGcs.CV

Official code: junia3/LayerwiseTTA (1 star, last commit 2025-03-12).

Abstract

Given the inevitability of domain shifts during inference in real-world applications, test-time adaptation (TTA) is essential for model adaptation after deployment. However, the real-world scenario of continuously changing target distributions presents challenges including catastrophic forgetting and error accumulation. Existing TTA methods for non-stationary domain shifts, while effective, incur excessive computational load, making them impractical for on-device settings. In this paper, we introduce a layer-wise auto-weighting algorithm for continual and gradual TTA that autonomously identifies layers for preservation or concentrated adaptation. By leveraging the Fisher Information Matrix (FIM), we first design the learning weight to selectively focus on layers associated with log-likelihood changes while preserving unrelated ones. Then, we further propose an exponential min-max scaler to make certain layers nearly frozen while mitigating outliers. This minimizes forgetting and error accumulation, leading to efficient adaptation to non-stationary target distribution. Experiments on CIFAR-10C, CIFAR-100C, and ImageNet-C show our method outperforms conventional continual and gradual TTA approaches while significantly reducing computational load, highlighting the importance of FIM-based learning weight in adapting to continuously or gradually shifting target domains.

View on arXivView PDF

Code Implementations(1)

10Jinja, PythonMar 12, 20251 years ago

Similar Papers

Cite this paper

@article{park2023layerwise,
  title  = {Layer-wise Auto-Weighting for Non-Stationary Test-Time Adaptation},
  author = {Junyoung Park and Jin Kim and Hyeongjun Kwon and Ilhoon Yoon and Kwanghoon Sohn},
  year   = {2023},
  eprint = {2311.05858},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.05858v3}
}

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

Discussion