A Layer Selection Approach to Test Time Adaptation

Sabyasachi Sahoo, Mostafa ElAraby, Jonas Ngnawe, Yann Pequignot, Frederic Precioso +1 more
4/4/2024
cs.LGcs.AIcs.CV

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

Test Time Adaptation (TTA) addresses the problem of distribution shift by adapting a pretrained model to a new domain during inference. When faced with challenging shifts, most methods collapse and perform worse than the original pretrained model. In this paper, we find that not all layers are equally receptive to the adaptation, and the layers with the most misaligned gradients often cause performance degradation. To address this, we propose GALA, a novel layer selection criterion to identify the most beneficial updates to perform during test time adaptation. This criterion can also filter out unreliable samples with noisy gradients. Its simplicity allows seamless integration with existing TTA loss functions, thereby preventing degradation and focusing adaptation on the most trainable layers. This approach also helps to regularize adaptation to preserve the pretrained features, which are crucial for handling unseen domains. Through extensive experiments, we demonstrate that the proposed layer selection framework improves the performance of existing TTA approaches across multiple datasets, domain shifts, model architectures, and TTA losses.

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. 5 weaker matches are hidden by default — 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{sahoo2024layer,
  title  = {A Layer Selection Approach to Test Time Adaptation},
  author = {Sabyasachi Sahoo and Mostafa ElAraby and Jonas Ngnawe and Yann Pequignot and Frederic Precioso and Christian Gagne},
  year   = {2024},
  eprint = {2404.03784},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.03784v2}
}

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

Discussion