[Paper Review] TAVAT: Token-Aware Virtual Adversarial Training for Language Understanding
This paper proposes Token-Aware Virtual Adversarial Training (TA-VAT), a method that improves robustness and performance of pre-trained language models by using a global, token-level perturbation vocabulary for initialization and token-level normalization constraints. TA-VAT boosts BERT's GLUE score from 78.3 to 80.9 and enhances performance across text classification, sequence labeling, and low-resource settings without additional computational overhead.
Gradient-based adversarial training is widely used in improving the robustness of neural networks, while it cannot be easily adapted to natural language processing tasks since the embedding space is discrete. In natural language processing fields, virtual adversarial training is introduced since texts are discrete and cannot be perturbed by gradients directly. Alternatively, virtual adversarial training, which generates perturbations on the embedding space, is introduced in NLP tasks. Despite its success, existing virtual adversarial training methods generate perturbations roughly constrained by Frobenius normalization balls. To craft fine-grained perturbations, we propose a Token-Aware Virtual Adversarial Training method. We introduce a token-level accumulated perturbation vocabulary to initialize the perturbations better and use a token-level normalization ball to constrain these perturbations pertinently. Experiments show that our method improves the performance of pre-trained models such as BERT and ALBERT in various tasks by a considerable margin. The proposed method improves the score of the GLUE benchmark from 78.3 to 80.9 using BERT model and it also enhances the performance of sequence labeling and text classification tasks.
Motivation & Objective
- To address the limitations of traditional virtual adversarial training in NLP, which uses random perturbation initialization and rigid Frobenius normalization constraints.
- To improve perturbation quality by leveraging a global, token-level perturbation vocabulary that accumulates gradients across training instances for consistent initialization.
- To enable fine-grained, token-specific perturbation constraints that adapt to individual token importance based on gradient magnitude.
- To enhance model generalization and robustness, especially in low-resource and sequence labeling tasks.
- To demonstrate that token-aware perturbations lead to better performance and increased resistance to adversarial attacks.
Proposed method
- Introduces a global perturbation vocabulary that accumulates gradient-based perturbations across all training instances for the same token, enabling informed initialization instead of random noise.
- Uses a token-level normalization ball that allows larger perturbation bounds for high-gradient tokens and tighter bounds for low-gradient tokens, enabling fine-grained, context-sensitive perturbations.
- Applies virtual adversarial training on the embedding space with these improved initialization and constraint mechanisms, maintaining efficiency compared to substitution-based methods.
- Integrates the learned perturbation vocabulary into standard fine-tuning, allowing the embedding layer to benefit from task- and token-specific adversarial knowledge.
- Employs a gradient-based optimization process to generate virtual adversarial samples that are both robust and imperceptible, avoiding the need for synonym substitution.
- Validates the method using standard benchmarks like GLUE, CoNLL-2003, and Ontonotes5.0, and evaluates robustness using the Textfooler attack.
Experimental results
Research questions
- RQ1Can a global, token-level perturbation vocabulary improve the initialization of virtual adversarial perturbations in NLP models?
- RQ2Does applying token-level normalization constraints instead of sentence-level Frobenius constraints lead to more effective and fine-grained adversarial training?
- RQ3To what extent does TA-VAT improve model performance on low-resource and sequence labeling tasks?
- RQ4Does TA-VAT enhance model robustness against state-of-the-art adversarial attacks like Textfooler?
- RQ5How do special tokens like [CLS] and [SEP] contribute to the effectiveness of the perturbation vocabulary?
Key findings
- TA-VAT improves the GLUE benchmark score of BERT-base from 78.3 to 80.9, representing a 2.6-point absolute gain.
- For the ALBERT-xxlarge model, TA-VAT increases the GLUE score from 89.9 to 90.9, demonstrating consistent gains across model sizes.
- On the CoNLL-2003 NER task, TA-VAT improves model performance, showing effectiveness in sequence labeling beyond classification.
- When training on only 2,000 samples of the MNLI dataset, TA-VAT achieves a larger performance gain than on the full 400K dataset, indicating strong benefits in low-resource settings.
- The model trained with TA-VAT shows higher robustness against the Textfooler attack, achieving 15.8% attack accuracy with 2,093 queries—higher than BERT’s 13.6% at 1,134 queries—indicating improved resistance.
- Excluding perturbations on special tokens like [CLS] and [SEP] reduces performance, confirming their critical role in the perturbation mechanism.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.