SeqVAT: Virtual Adversarial Training for Semi-Supervised Sequence Labeling

Luoxin Chen, Weitong Ruan, Xinyue Liu, Jianhua LuACL 2020

Abstract

Luoxin Chen, Weitong Ruan, Xinyue Liu, Jianhua Lu. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics.

2020.

Introduction

Sequence labeling—the process of assigning a tag to every token in a sequence—is a foundational task in Natural Language Processing (NLP), underlying systems for Named Entity Recognition (NER) and slot filling. State-of-the-art models typically employ a Conditional Random Field (CRF) layer to capture global dependencies between labels.

While Virtual Adversarial Training (VAT) has been highly effective in image and text classification, its application to sequence labeling has been historically difficult. Standard VAT treats tokens independently, ignoring the structural transitions that make CRFs powerful. Calculating the difference between label distributions at the sequence level is computationally intractable due to the exponential number of possible label paths. This paper introduces SeqVAT, a novel method that makes sequence-level VAT feasible and effective.

The SeqVAT Framework

SeqVAT is designed to be "CRF-friendly" by regularizing the model based on the probability distribution of the entire label sequence rather than individual tokens.

Figure 1: Architecture of the base sequence labeling model, featuring word and character-level embeddings feeding into a Bi-LSTM-CRF stack.

K-Best Viterbi Approximation

To overcome the exponential complexity of sequence distributions, SeqVAT utilizes k-best Viterbi decoding. Instead of calculating the probability of every possible path, the model identifies the top $k$ most likely sequences. It then constructs a $(k+1)$-dimensional distribution consisting of these top $k$ sequences and a single "catch-all" dimension for all other possible paths. This approximation allows the model to compute KL divergence efficiently while still accounting for global label transitions.

Embedding Normalization

To ensure that adversarial perturbations remain effective throughout training, the authors implement embedding normalization. At the start of every epoch, word and character embeddings are normalized to zero mean and unit variance. This prevents the model from "hiding" from perturbations by simply increasing the magnitude of its embedding weights.

Experimental Evaluation

The model was evaluated on several benchmarks, including CoNLL 2000 (chunking), CoNLL 2003 (NER), and an internal Amazon Alexa NLU dataset focused on slot filling across six domains (Cook, Joke, Booking, News, Assist, and Sporting). For semi-supervised experiments, the One Billion Word Benchmark served as the source of unlabeled data.

Key Results

  • Supervised Performance: SeqVAT improved F1 scores over standard baselines and traditional Adversarial Training (AT) across all datasets, even without unlabeled data.
  • Semi-Supervised Gains: SeqVAT outperformed popular semi-supervised methods such as Self-Training (ST), Entropy Minimization (EM), and Cross-View Training (CVT). On the CoNLL 2003 NER task, SeqVAT achieved an F1 of 92.27, a significant improvement over the 91.20 baseline.
  • Consistency Regularization: By forcing the model to produce similar sequence-level distributions for both clean and perturbed inputs, SeqVAT learns more robust and generalized features.

Hyperparameter Analysis and Limitations

A critical component of SeqVAT is the choice of $k$ in the k-best decoding step. The authors found that the optimal value of $k$ is task-dependent.

Figure 4: Sensitivity analysis of the k-best decoding parameter across different datasets, showing varying optimal values for k.

As illustrated in the analysis, news-based text (CoNLL) often reaches peak performance with a smaller $k$ (e.g., $k=3$), while spoken language queries in the NLU dataset benefit from a larger $k$ (e.g., $k=9$). While this approximation makes the training feasible, the k-best decoding process still introduces a computational overhead compared to standard training methods.

Conclusion

SeqVAT successfully extends the benefits of Virtual Adversarial Training to sequence labeling by utilizing a k-best approximation of the CRF label distribution. This approach allows models to leverage unlabeled data effectively while respecting the structural constraints of language. Future research may explore applying this sequence-level distribution estimation to areas like knowledge distillation and multi-source transfer learning.

Summary updated

BibTeX
@inproceedings{chen2020seqvat,
  author = {Luoxin Chen and Weitong Ruan and Xinyue Liu and Jianhua Lu},
  title = {{SeqVAT: Virtual Adversarial Training for Semi-Supervised Sequence Labeling}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  url = {https://openreview.net/forum?id=FG2xYOUwr3},
}
Figure