Virtual Data Augmentation: A Robust and General Framework for Fine-tuning Pre-trained Models
Recent works have shown that powerful pre-trained language models (PLM) can be fooled by small perturbations or intentional attacks. To solve this issue, various data augmentation techniques are proposed to improve the robustness of PLMs. However, it is still challenging to augment semantically relevant examples with sufficient diversity. In this work, we present Virtual Data Augmentation (VDA), a general framework for robustly fine-tuning PLMs. Based on the original token embeddings, we construct a multinomial mixture for augmenting virtual data embeddings, where a masked language model guarantees the semantic relevance and the Gaussian noise provides the augmentation diversity. Furthermore, a regularized training strategy is proposed to balance the two aspects. Extensive experiments on six datasets show that our approach is able to improve the robustness of PLMs and alleviate the performance degradation under adversarial attacks. Our codes and data are publicly available at \textcolor{blue}{\url{https://github.com/RUCAIBox/VDA}}.
Code (1)
Tasks
Data AugmentationDiversityLanguage ModelingLanguage ModellingMethods 이 논문이 사용한 방법론
Similar Papers 제목 키워드 기반
Virtual Augmentation Supported Contrastive Learning of Sentence Representations
Despite profound successes, contrastive representation learning relies on carefully designed data augmentations using domain specific knowledge. This challenge is magnified in natural language processing where no general…
Contrastive LearningData AugmentationRepresentation LearningSentenceLADA: Look-Ahead Data Acquisition via Augmentation for Active Learning
Active learning effectively collects data instances for training deep learning models when the labeled dataset is limited and the annotation cost is high. Besides active learning, data augmentation is also an effective t…
Active LearningData AugmentationInformativenessCoverage-Aware Virtual IMU Augmentation for Low-Resource Human Activity Recognition
IMU-based human activity recognition (HAR) enables continuous, privacy-friendly monitoring of daily activities using wearable sensors. However, building reliable HAR models that generalize across diverse users and real-w…
Human Activity RecognitionLADA: Look-Ahead Data Acquisition via Augmentation for Deep Active Learning
Active learning effectively collects data instances for training deep learning models when the labeled dataset is limited and the annotation cost is high. Data augmentation is another effective technique to enlarge the l…
Active LearningData AugmentationInformativenessGABO: Graph Augmentations with Bi-level Optimization
Data augmentation refers to a wide range of techniques for improving model generalization by augmenting training examples. Oftentimes such methods require domain knowledge about the dataset at hand, spawning a plethora o…
Bilevel OptimizationData AugmentationGraph Classification