Robustifying Language Models with Test-Time Adaptation
Large-scale language models achieved state-of-the-art performance over a number of language tasks. However, they fail on adversarial language examples, which are sentences optimized to fool the language models but with similar semantic meanings for humans. While prior work focuses on making the language model robust at training time, retraining for robustness is often unrealistic for large-scale foundation models. Instead, we propose to make the language models robust at test time. By dynamically adapting the input sentence with predictions from masked words, we show that we can reverse many language adversarial attacks. Since our approach does not require any training, it works for novel tasks at test time and can adapt to novel adversarial corruptions. Visualizations and empirical results on two popular sentence classification datasets demonstrate that our method can repair adversarial language attacks over 65% o
Code (0)
등록된 구현이 없습니다.
Tasks
Language ModelingLanguage ModellingSentenceSentence ClassificationTest-time AdaptationSimilar Papers 제목 키워드 기반
Robustifying Vision-Language Models via Test-Time Prompt Adaptation
Pre-trained Vision-Language Models (VLMs) such as CLIP achieve strong zero-shot generalization, but their performance degrades sharply under adversarial perturbations. Existing test-time adaptation methods typically rely…
Zero-shot GeneralizationAdversarial RobustnessTest-time AdaptationRobustifying Vision Transformer without Retraining from Scratch by Test-Time Class-Conditional Feature Alignment
Vision Transformer (ViT) is becoming more popular in image processing. Specifically, we investigate the effectiveness of test-time adaptation (TTA) on ViT, a technique that has emerged to correct its prediction during te…
Domain Adaptationimage-classificationImage ClassificationTest-time AdaptationBayesian Adaptation for Covariate Shift
When faced with distribution shift at test time, deep neural networks often make inaccurate predictions with unreliable uncertainty estimates.While improving the robustness of neural networks is one promising approach to…
Domain Adaptationimage-classificationImage ClassificationTraining on Test Data with Bayesian Adaptation for Covariate Shift
When faced with distribution shift at test time, deep neural networks often make inaccurate predictions with unreliable uncertainty estimates. While improving the robustness of neural networks is one promising approach t…
Domain Adaptationimage-classificationImage ClassificationAuditing and Robustifying COVID-19 Misinformation Datasets via Anticontent Sampling
This paper makes two key contributions. First, it argues that highly specialized rare content classifiers trained on small data typically have limited exposure to the richness and topical diversity of the negative class …
Active LearningDiversityMisinformation