Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

MedBN: Robust Test-Time Adaptation against Malicious Test Samples

About

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.

Hyejin Park, Jeongyeon Hwang, Sunung Mun, Sangdon Park, Jungseul Ok• 2024

Related benchmarks

TaskDatasetResultRank
Indiscriminate AttackCIFAR10-C (test)
Error Rate16.49
28
Indiscriminate and Instant AttackCIFAR100-C (test)
Error Rate43.35
14
Indiscriminate and Instant AttackImageNet-C (test)
Error Rate64.22
14
Targeted AttackCIFAR10-C
ASR83.91
14
Targeted AttackCIFAR100-C
ASR0.9178
14
Targeted AttackImageNet-C
ASR97.78
14
Targeted AttackCIFAR10-C (test)
ASR (%)84.04
14
Semantic segmentationSYNTHIA
mIoU21.55
2
Semantic segmentationSYNTHIA
ASR0.00e+0
2
Showing 9 of 9 rows

Other info

Code

Follow for update