MedBN: Robust Test-Time Adaptation against Malicious Test Samples

Hyejin Park, Jeongyeon Hwang, Sunung Mun, Sangdon Park, Jungseul Ok
3/28/2024
cs.LGcs.CRcs.CV

No official code found. Best implementation: ml-postech/MedBN-robust-test-time-adaptation (15 stars, last commit 2024-09-05).

Abstract

Test-time adaptation (TTA) has emerged as a promising solution to address performance decay due to unforeseen distribution shifts between training and test data. While recent TTA methods excel in adapting to test data variations, such adaptability exposes a model to vulnerability against malicious examples, an aspect that has received limited attention. Previous studies have uncovered security vulnerabilities within TTA even when a small proportion of the test batch is maliciously manipulated. In response to the emerging threat, we propose median batch normalization (MedBN), leveraging the robustness of the median for statistics estimation within the batch normalization layer during test-time inference. Our method is algorithm-agnostic, thus allowing seamless integration with existing TTA frameworks. Our experimental results on benchmark datasets, including CIFAR10-C, CIFAR100-C and ImageNet-C, consistently demonstrate that MedBN outperforms existing approaches in maintaining robust performance across different attack scenarios, encompassing both instant and cumulative attacks. Through extensive experiments, we show that our approach sustains the performance even in the absence of attacks, achieving a practical balance between robustness and performance.

View on arXivView PDF

Code Implementations(1)

[CVPR 2024] Official implementation of "MedBN: Robust Test Time Adaptation against Malicious Test Samples"

152Shell, PythonMar 5, 20242 years ago

Similar Papers

Cite this paper

@article{park2024medbn,
  title  = {MedBN: Robust Test-Time Adaptation against Malicious Test Samples},
  author = {Hyejin Park and Jeongyeon Hwang and Sunung Mun and Sangdon Park and Jungseul Ok},
  year   = {2024},
  eprint = {2403.19326},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.19326v1},
  journal = {CVPR 2024 2024}
}

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

Discussion