MEMO: Test Time Robustness via Adaptation and Augmentation

Auteurs : Marvin Zhang, Sergey Levine, Chelsea Finn

Soumis à arXiv le 18 Oct. 2021
Résumé scientifique

While deep neural networks can attain good accuracy on in-distribution test points, many applications require robustness even in the face of unexpected perturbations in the input, changes in the domain, or other sources of distribution shift. We study the problem of test time robustification, i.e., using the test input to improve model robustness. Recent prior works have proposed methods for test time adaptation, however, they each introduce additional assumptions, such as access to multiple test points, that prevent widespread adoption. In this work, we aim to study and devise methods that make no assumptions about the model training process and are broadly applicable at test time. We propose a simple approach that can be used in any test setting where the model is probabilistic and adaptable: when presented with a test example, perform different data augmentations on the data point, and then adapt (all of) the model parameters by minimizing the entropy of the model's average, or marginal, output distribution across the augmentations. Intuitively, this objective encourages the model to make the same prediction across different augmentations, thus enforcing the invariances encoded in these augmentations, while also maintaining confidence in its predictions. In our experiments, we demonstrate that this approach consistently improves robust ResNet and vision transformer models, achieving accuracy gains of 1-8% over standard model evaluation and also generally outperforming prior augmentation and adaptation strategies. We achieve state-of-the-art results for test shifts caused by image corruptions (ImageNet-C), renditions of common objects (ImageNet-R), and, among ResNet-50 models, adversarially chosen natural examples (ImageNet-A).

Les articles autour de lui, par date et par proximité

Plus haut, c’est plus proche de cet article ; à gauche, c’est plus ancien. Les traits relient les articles proches entre eux : les groupes de traits sont des sous-thèmes. Sélectionnez un point pour voir pourquoi il est là. Retour au résumé de cet article

Comment lire cette carte ? Guide illustré

Les articles les plus proches Les travaux antérieurs sur lesquels il s’appuie Les articles qui le citent

Les articles autour de celui-ci

Classés selon la proximité de leur titre et de leur résumé avec ceux de cet article. Sélectionnez-en pour les lire ensemble.

Les articles les plus proches

  1. Très proche Cité par cet article Une méthode qu’il utilise
    Test time Adaptation through Perturbation Robustness
    Prabhu Teja Sivaprasad, François Fleuret · 2021 · arXiv.org · preprint, non relu par les pairs · cité 47 fois · Pas encore résumé
    Résumé scientifique

    Data samples generated by several real world processes are dynamic in nature \textit{i.e.}, their characteristics vary with time. Thus it is not possible to train and tackle all possible distributional shifts between training and inference, using the host of transfer learning methods in literature. In this paper, we tackle this problem of adapting to domain shift at inference time \textit{i.e.}, we do not change the training process, but quickly adapt the model at test-time to handle any domain shift. For this, we propose to enforce consistency of predictions of data sampled in the vicinity of test sample on the image manifold. On a host of test scenarios like dealing with corruptions (CIFAR…

  2. Très proche Cite cet article
    Learning Robustness at Test-Time from a Non-Robust Teacher
    Stefano Bianchettin, Giulio Rossolini, Giorgio C. Buttazzo · 2026 · Image and Vision Computing · Pas encore résumé
    Résumé scientifique

    Nowadays, pretrained models are increasingly used as general-purpose backbones and adapted at test-time to downstream environments where target data are scarce and unlabeled. While this paradigm has proven effective for improving clean accuracy on the target domain, adversarial robustness has received far less attention, especially when the original pretrained model is not explicitly designed to be robust. This raises a practical question: \emph{can a pretrained, non-robust model be adapted at test-time to improve adversarial robustness on a target distribution?} To face this question, this work studies how adversarial training strategies behave when integrated into adaptation schemes for th…

  3. Très proche
    Test-Time Adaptation to Distribution Shift by Confidence Maximization and Input Transformation
    Chaithanya Kumar Mummadi, Robin Hutmacher, K. Rambach et al. · 2021 · arXiv.org · preprint, non relu par les pairs · cité 87 fois · Pas encore résumé
    Résumé scientifique

    Deep neural networks often exhibit poor performance on data that is unlikely under the train-time data distribution, for instance data affected by corruptions. Previous works demonstrate that test-time adaptation to data shift, for instance using entropy minimization, effectively improves performance on such shifted distributions. This paper focuses on the fully test-time adaptation setting, where only unlabeled data from the target distribution is required. This allows adapting arbitrary pretrained networks. Specifically, we propose a novel loss that improves test-time adaptation by addressing both premature convergence and instability of entropy minimization. This is achieved by replacing …

  4. Très proche
    Approaching Test Time Augmentation in the Context of Uncertainty Calibration for Deep Neural Networks
    Pedro Conde, Tiago Barros, Rui L. Lopes et al. · 2023 · Computer Vision and Pattern Recognition · preprint, non relu par les pairs · cité 9 fois · Résumé IA disponible
    Résumé scientifique

    With the rise of Deep Neural Networks, machine learning systems are nowadays ubiquitous in a number of real-world applications, which bears the need for highly reliable models. This requires a thorough look not only at the accuracy of such systems, but also to their predictive uncertainty. Hence, we propose a novel technique (with two different variations, named M-ATTA and V-ATTA) based on test time augmentation, to improve the uncertainty calibration of deep models for image classification. Unlike other test time augmentation approaches, M/V-ATTA improves uncertainty calibration without affecting the model's accuracy, by leveraging an adaptive weighting system. We evaluate the performance o…

  5. Très proche
    Fully Test-time Adaptation by Entropy Minimization
    Dequan Wang, Evan Shelhamer, Shaoteng Liu et al. · 2020 · Machine Learning · preprint, non relu par les pairs · cité 71 fois · Résumé IA disponible
    Résumé scientifique

    Faced with new and different data during testing, a model must adapt itself. We consider the setting of fully test-time adaptation, in which a supervised model confronts unlabeled test data from a different distribution, without the help of its labeled training data. We propose an entropy minimization approach for adaptation: we take the model's confidence as our objective as measured by the entropy of its predictions. During testing, we adapt the model by modulating its representation with affine transformations to minimize entropy. Our experiments show improved robustness to corruptions for image classification on CIFAR-10/100 and ILSVRC and demonstrate the feasibility of target-only domai…

  6. Très proche
    Parameter-free Online Test-time Adaptation
    Malik Boudiaf, Romain Mueller, Ismail Ben Ayed et al. · 2022 · Computer Vision and Pattern Recognition · cité 283 fois · Résumé IA disponible
    Résumé scientifique

    Training state-of-the-art vision models has become prohibitively expensive for researchers and practitioners. For the sake of accessibility and resource reuse, it is important to focus on adapting these models to a variety of downstream scenarios. An interesting and practical paradigm is online test-time adaptation, according to which training data is inaccessible, no labelled data from the test distribution is available, and adaptation can only happen at test time and on a handful of samples. In this paper, we investigate how test-time adaptation methods fare for a number of pre-trained models on a variety of real-world scenarios, significantly extending the way they have been originally ev…

  7. Proche Cite cet article
    PatAug: Augmentation of Augmentation for Test-Time Adaptation
    Xin-Yao Li, Dan Zhang, Zhe-Kai Du et al. · 2025 · ACM Multimedia · cité 6 fois · Pas encore résumé
    Résumé scientifique

    The rich pretrained knowledge in vision-language models (VLMs) endows them with the ability to discriminate common objects given only category names, but may be challenged by out-of-distribution unlabeled samples. To address this limitation, test-time adaptation (TTA) dynamically adjusts VLMs to target distributions during inference. Current TTA frameworks rely heavily on unsupervised data augmentations to enhance sample informativeness, but remain vulnerable to naive augmented views. This work introduces Patch Augmentation (PatAug), a pixel-level perturbation framework that optimizes the benefits of informative augmentations and mitigates negative transformation impacts. Implemented as trai…

  8. Proche Cite cet article
    Continual Test-Time Adaptation in Computer Vision: Methods, Benchmarks, and Future Directions
    Sarthak Kumar Maharana, Shambhavi Mishra, Yun-Bei Zhang et al. · 2026 · Trans. Mach. Learn. Res. · cité 2 fois · Pas encore résumé
    Résumé scientifique

    Deep neural nets achieve remarkable performance when training and test data share the same distribution, but this assumption frequently breaks in real-world deployment, where data undergoes continual distributional shifts. Continual Test-Time Adaptation (CTTA) addresses this challenge by adapting pretrained models to non-stationary target distributions on-the-fly, without access to source data or labeled targets, while mitigating two critical failure modes: catastrophic forgetting of source knowledge and error accumulation from noisy pseudo-labels over extended time horizons. In this comprehensive survey, we formally define the CTTA problem, analyze the diverse continual domain shift pattern…

Les travaux antérieurs sur lesquels il s’appuie

  1. Proche Utilisé en profondeur par cet article Une méthode qu’il utilise
    The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalization
    Dan Hendrycks, Steven Basart, Norman Mu et al. · 2020 · IEEE International Conference on Computer Vision · cité 2 632 fois · Pas encore résumé
    Résumé scientifique

    We introduce four new real-world distribution shift datasets consisting of changes in image style, image blurriness, geographic location, camera operation, and more. With our new datasets, we take stock of previously proposed methods for improving out-of-distribution robustness and put them to the test. We find that using larger models and artificial data augmentations can improve robustness on real-world distribution shifts, contrary to claims in prior work. We find improvements in artificial robustness benchmarks can transfer to real-world distribution shifts, contrary to claims in prior work. Motivated by our observation that data augmentations can help with real-world distribution shifts…

  2. Proche Utilisé en profondeur par cet article Une méthode qu’il utilise
    Benchmarking Neural Network Robustness to Common Corruptions and Perturbations
    Dan Hendrycks, Thomas Dietterich · 2019 · Machine Learning · cité 5 008 fois · Résumé IA disponible
    Résumé scientifique

    In this paper we establish rigorous benchmarks for image classifier robustness. Our first benchmark, ImageNet-C, standardizes and expands the corruption robustness topic, while showing which classifiers are preferable in safety-critical applications. Then we propose a new dataset called ImageNet-P which enables researchers to benchmark a classifier's robustness to common perturbations. Unlike recent robustness research, this benchmark evaluates performance on common corruptions and perturbations not worst-case adversarial perturbations. We find that there are negligible changes in relative corruption robustness from AlexNet classifiers to ResNet classifiers. Afterward we discover ways to enh…

  3. Proche Utilisé en profondeur par cet article Une méthode qu’il utilise
    Towards Robust Vision Transformer
    Xiaofeng Mao, Ge-Ge Qi, Yue-Feng Chen et al. · 2021 · Computer Vision and Pattern Recognition · cité 263 fois · Pas encore résumé
    Résumé scientifique

    Recent advances on Vision Transformer (ViT) and its improved variants have shown that self-attention-based networks surpass traditional Convolutional Neural Networks (CNNs) in most vision tasks. However, existing ViTs focus on the standard accuracy and computation cost, lacking the investigation of the intrinsic influence on model robustness and generalization. In this work, we conduct systematic evaluation on components of ViTs in terms of their impact on robustness to adversarial examples, common corruptions and distribution shifts. We find some components can be harmful to robustness. By leveraging robust components as building blocks of ViTs, we propose Robust Vision Transformer (RVT), w…

  4. Proche Une méthode qu’il utilise
    A Fourier Perspective on Model Robustness in Computer Vision
    Dong Yin, Raphael Gontijo Lopes, Jonathon Shlens et al. · 2019 · Neural Information Processing Systems · cité 694 fois · Pas encore résumé
    Résumé scientifique

    Achieving robustness to distributional shift is a longstanding and challenging goal of computer vision. Data augmentation is a commonly used approach for improving robustness, however robustness gains are typically not uniform across corruption types. Indeed increasing performance in the presence of random noise is often met with reduced performance on other corruptions such as contrast change. Understanding when and why these sorts of trade-offs occur is a crucial step towards mitigating them. Towards this end, we investigate recently observed trade-offs caused by Gaussian data augmentation and adversarial training. We find that both methods improve robustness to corruptions that are concen…

  5. Proche Une méthode qu’il utilise
    MT3: Meta Test-Time Training for Self-Supervised Test-Time Adaption
    Alexander Bartler, Andre Bühler, Felix Wiewel et al. · 2021 · International Conference on Artificial Intelligence and Statistics · cité 107 fois · Pas encore résumé
    Résumé scientifique

    An unresolved problem in Deep Learning is the ability of neural networks to cope with domain shifts during test-time, imposed by commonly fixing network parameters after training. Our proposed method Meta Test-Time Training (MT3), however, breaks this paradigm and enables adaption at test-time. We combine meta-learning, self-supervision and test-time training to learn to adapt to unseen test distributions. By minimizing the self-supervised loss, we learn task-specific model parameters for different tasks. A meta-model is optimized such that its adaption to the different task-specific models leads to higher performance on those tasks. During test-time a single unlabeled image is sufficient to…

Les articles qui le citent

  1. Proche Utilise cet article en profondeur
    R-TPT: Improving Adversarial Robustness of Vision-Language Models through Test-Time Prompt Tuning
    Li-Jun Sheng, Jian Liang, Zi-Lei Wang et al. · 2025 · Computer Vision and Pattern Recognition · cité 51 fois · Pas encore résumé
    Résumé scientifique

    Vision-language models (VLMs), such as CLIP, have gained significant popularity as foundation models, with numerous fine-tuning methods developed to enhance performance on downstream tasks. However, due to their inherent vulnerability and the common practice of selecting from a limited set of open-source models, VLMs suffer from a higher risk of adversarial attacks than traditional vision models. Existing defense techniques typically rely on adversarial fine-tuning during training, which requires labeled data and lacks of flexibility for downstream tasks. To address these limitations, we propose robust test-time prompt tuning (R-TPT), which mitigates the impact of adversarial attacks during …

  2. Proche
    A Comprehensive Survey on Test-Time Adaptation Under Distribution Shifts
    Jian Liang, R. He, Tien-Ping Tan · 2023 · International Journal of Computer Vision · cité 693 fois · Pas encore résumé
    Résumé scientifique

    Machine learning methods strive to acquire a robust model during the training process that can effectively generalize to test samples, even in the presence of distribution shifts. However, these methods often suffer from performance degradation due to unknown test distributions. Test-time adaptation (TTA), an emerging paradigm, has the potential to adapt a pre-trained model to unlabeled data during testing, before making predictions. Recent progress in this paradigm has highlighted the significant benefits of using unlabeled data to train self-adapted models prior to inference. In this survey, we categorize TTA into several distinct groups based on the form of test data, namely, test-time do…

  3. Proche
    Robust Test-Time Adaptation in Dynamic Scenarios
    Longhui Yuan, Binhui Xie, Shuang Li · 2023 · IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conferen · cité 135 fois · Pas encore résumé
    Résumé scientifique

    Test-time adaptation (TTA) intends to adapt the pretrained model to test distributions with only unlabeled test data streams. Most of the previous TTA methods have achieved great success on simple test data streams such as independently sampled data from single or multiple distributions. However, these attempts may fail in dynamic scenarios of real-world applications like autonomous driving, where the environments gradually change and the test data is sampled correlatively over time. In this work, we explore such practical test data streams to deploy the model on the fly, namely practical test-time adaptation (PTTA). To do so, we elaborate a Robust Test-Time Adaptation (RoTTA) method against…

  4. Proche
    Self-Bootstrapping for Versatile Test-Time Adaptation
    Shuai-Cheng Niu, Guo-Hao Chen, Pei-Lin Zhao et al. · 2025 · International Conference on Machine Learning · cité 15 fois · Pas encore résumé
    Résumé scientifique

    In this paper, we seek to develop a versatile test-time adaptation (TTA) objective for a variety of tasks - classification and regression across image-, object-, and pixel-level predictions. We achieve this through a self-bootstrapping scheme that optimizes prediction consistency between the test image (as target) and its deteriorated view. The key challenge lies in devising effective augmentations/deteriorations that: i) preserve the image's geometric information, e.g., object sizes and locations, which is crucial for TTA on object/pixel-level tasks, and ii) provide sufficient learning signals for TTA. To this end, we analyze how common distribution shifts affect the image's information pow…

  5. Proche
    Back to the Source: Diffusion-Driven Test-Time Adaptation
    Jin Gao, Jialing Zhang, Xihui Liu et al. · 2022 · Machine Learning · cité 112 fois · Résumé IA disponible
    Résumé scientifique

    Test-time adaptation harnesses test inputs to improve the accuracy of a model trained on source data when tested on shifted target data. Existing methods update the source model by (re-)training on each target domain. While effective, re-training is sensitive to the amount and order of the data and the hyperparameters for optimization. We instead update the target data, by projecting all test inputs toward the source domain with a generative diffusion model. Our diffusion-driven adaptation method, DDA, shares its models for classification and generation across all domains. Both models are trained on the source domain, then fixed during testing. We augment diffusion with image guidance and se…

Comment ces articles sont-ils trouvés ?

Nous comparons le titre et le résumé de cet article avec ceux de tous les articles résumés sur ce site, et avec les articles que Semantic Scholar recommande, ceux qu’il cite et ceux qui le citent (pour un article très cité, ses citations les plus récentes et, depuis OpenAlex, les plus citées). Parmi les travaux antérieurs et les suites, les articles qui s’utilisent en profondeur, une méthode qu’il utilise et les suites très citées remontent un peu. Les niveaux (très proche, proche, apparenté) viennent de la similarité des textes, pas d’un jugement de qualité ; * signale un article sans résumé, comparé par son titre. La phrase sous un article est écrite par une IA à partir des deux résumés : vérifiez-la dans les articles. Un article jugé hors sujet par trois lecteurs quitte la liste.

Mis à jour le 6 novembre 2026.

Le guide illustré des articles autour d’un article