MedBN: Robust Test-Time Adaptation against Malicious Test Samples
Hyejin Park, Jeongyeon Hwang, Sunung Mun, Sangdon Park, Jungseul Ok
摘要
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. Indeed, 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. Our code is available at https://github.com/mlpostech/MedBN-robust-test-time-adaptation . Output Conv. Layer Batch Norm. Act. Function … … Input (batch size !) … Conv. Layer Act. Function Batch Norm.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Monitoring Risks in Test-Time Adaptation 引用了 Tent: Fully Test-Time Adaptation by Entropy Minimization
- Monitoring Risks in Test-Time Adaptation 引用了 WILDS: A Benchmark of in-the-Wild Distribution Shifts
- Smoothing the Shift: Towards Stable Test-Time Adaptation under Complex Multimodal Noises 引用了 Tent: Fully Test-Time Adaptation by Entropy Minimization
- Smoothing the Shift: Towards Stable Test-Time Adaptation under Complex Multimodal Noises 引用了 Test-Time Training with Self-Supervision for Generalization under Distribution Shifts
- Mixture of Prototypes for Test-time Adaptive Segmentation 引用了 Tent: Fully Test-Time Adaptation by Entropy Minimization
- TopoTTA: Topology-Enhanced Test-Time Adaptation for Tubular Structure Segmentation 引用了 Tent: Fully Test-Time Adaptation by Entropy Minimization
- Tent: Fully Test-Time Adaptation by Entropy Minimization 引用了 AugMix: A Simple Data Processing Method to Improve Robustness and Uncertainty
- WILDS: A Benchmark of in-the-Wild Distribution Shifts 引用了 Test-Time Training with Self-Supervision for Generalization under Distribution Shifts
- Gradient Alignment Improves Test-Time Adaptation for Medical Image Segmentation 引用了 Tent: Fully Test-Time Adaptation by Entropy Minimization
- Gradient Alignment Improves Test-Time Adaptation for Medical Image Segmentation 引用了 Test-Time Training with Self-Supervision for Generalization under Distribution Shifts
引用它的顶会 Paper7
- Gradient Alignment Improves Test-Time Adaptation for Medical Image SegmentationZiyang Chen, Yiwen Ye, Yongsheng Pan, Yong XiaAAAI 2025 · 12 次引用
- Monitoring Risks in Test-Time AdaptationMona Schirmer, Metod Jazbec, Christian Andersson Naesseth, Eric T. NalisnickNeurIPS 2025 · 10 次引用
- TopoTTA: Topology-Enhanced Test-Time Adaptation for Tubular Structure SegmentationJiale Zhou, Wenhan Wang, Shikun Li, Xiaolei Qu 等ICCV 2025 · 2 次引用
- Mixture of Prototypes for Test-time Adaptive SegmentationGuangrui Li, Zhengyu Zhu, Yongxin GeCVPR 2026 · 1 次引用
- Smoothing the Shift: Towards Stable Test-Time Adaptation under Complex Multimodal NoisesZirun Guo, Tao JinICLR 2025
它引用的 Paper30
- Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 次引用
- WILDS: A Benchmark of in-the-Wild Distribution ShiftsPang Wei Koh, Shiori Sagawa, Henrik Marklund, Sang Michael Xie 等ICML 2021 · 1,773 次引用
- Tent: Fully Test-Time Adaptation by Entropy MinimizationDequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno A. Olshausen 等ICLR 2021 · 1,731 次引用
- AugMix: A Simple Data Processing Method to Improve Robustness and UncertaintyDan Hendrycks, Norman Mu, Ekin Dogus Cubuk, Barret Zoph 等ICLR 2020 · 1,572 次引用
- Test-Time Training with Self-Supervision for Generalization under Distribution ShiftsYu Sun, Xiaolong Wang, Zhuang Liu, John Miller 等ICML 2020 · 1,220 次引用
相关 Paper
- TTN: A Domain-Shift Aware Batch Normalization in Test-Time AdaptationHyesu Lim, Byeonggeun Kim, Jaegul Choo, Sungha ChoiICLR 2023 · 21 次引用
- On the Adversarial Vulnerability of Label-Free Test-Time AdaptationShahriar Rifat, Jonathan D. Ashdown, Michael J. De Lucia, Ananthram Swami 等ICLR 2025
- Uncovering Adversarial Risks of Test-Time AdaptationTong Wu, Feiran Jia, Xiangyu Qi, Jiachen T. Wang 等ICML 2023 · 12 次引用
- Buffer layers for Test-Time AdaptationHyeongyu Kim, Geonhui Han, Dosik HwangNeurIPS 2025 · 6 次引用
- Un-Mixing Test-Time Normalization Statistics: Combatting Label Temporal CorrelationDevavrat Tomar, Guillaume Vray, Jean-Philippe Thiran, Behzad BozorgtabarICLR 2024 · 9 次引用
