Defending against NLP adversarial attacks via Dirichlet Neighborhood EnsembleDefense against Adversarial Attacks in NLP via Dirichlet Neighborhood Ensemble
AI summary
Researchers propose a randomized smoothing method, Dirichlet Neighborhood Ensemble (DNE), for defending against substitution-based adversarial attacks in NLP. During training, the method samples embedding vectors from the convex hull spanned by each word and its synonyms to form virtual sentences and augment the training data, enabling the model to maintain performance on clean data while gaining adversarial robustness. DNE is independent of network architecture and scalable to large models; extensive experiments show that it significantly outperforms recently proposed defense methods across different architectures and multiple datasets.