ActMAD: Activation Matching to Align Distributions for Test-Time-Training

Muhammad Jehanzeb Mirza, Pol Jané Soneira, Wei Lin, Mateusz Kozinski, Horst Possegger +1 more
11/23/2022
cs.CV

Official code: jmiemirza/ActMAD (22 stars, Python, last commit 2023-06-27).

Abstract

Test-Time-Training (TTT) is an approach to cope with out-of-distribution (OOD) data by adapting a trained model to distribution shifts occurring at test-time. We propose to perform this adaptation via Activation Matching (ActMAD): We analyze activations of the model and align activation statistics of the OOD test data to those of the training data.

Show full abstract

In contrast to existing methods, which model the distribution of entire channels in the ultimate layer of the feature extractor, we model the distribution of each feature in multiple layers across the network. This results in a more fine-grained supervision and makes ActMAD attain state of the art performance on CIFAR-100C and Imagenet-C. ActMAD is also architecture- and task-agnostic, which lets us go beyond image classification, and score 15.4% improvement over previous approaches when evaluating a KITTI-trained object detector on KITTI-Fog. Our experiments highlight that ActMAD can be applied to online adaptation in realistic scenarios, requiring little data to attain its full performance.

View on arXivView PDF

Code Implementations(1)

jmiemirza/ActMADOfficial100%

ActMAD: Activation Matching to Align Distributions for Test-Time-Training (CVPR 2023)

221PythonMar 21, 20233 years ago

Similar Papers

Cite this paper

@article{mirza2022actmad,
  title  = {ActMAD: Activation Matching to Align Distributions for Test-Time-Training},
  author = {Muhammad Jehanzeb Mirza and Pol Jané Soneira and Wei Lin and Mateusz Kozinski and Horst Possegger and Horst Bischof},
  year   = {2022},
  eprint = {2211.12870},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.12870}
}

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

Discussion