Semi-Supervised Sequence Modeling with Cross-View Training

Kevin Clark, Minh-Thang Luong, Christopher D. Manning, Quoc V. Le

TL;DR

Cross-View Training (CVT) is a semi-supervised learning algorithm that improves sequence models by training auxiliary "student" modules with restricted views of the input to match the predictions of a "teacher" module that sees the full context. By leveraging vast amounts of unlabeled text, CVT achieves state-of-the-art results in tasks like NER and dependency parsing.

Introduction

Deep learning models for NLP typically require large amounts of high-quality labeled data, which is expensive and time-consuming to produce. While unsupervised pre-training methods like word2vec or ELMo have helped by learning general representations from unlabeled text, they are often task-agnostic. Traditional self-training—where a model trains on its own predictions—often fails because it becomes a tautology: the model simply reinforces its own current beliefs.

CVT addresses these challenges by introducing "architectural noise." Instead of perturbing the input text, which is difficult for discrete data, CVT restricts what different parts of the model can see, creating a meaningful learning signal from unlabeled data through consistency regularization.

Methodology: The CVT Framework

The core of the approach is a multi-layer Bi-LSTM encoder that processes input sequences. The training process consists of two primary phases:

  1. Supervised Phase: On labeled data, the model is trained using standard cross-entropy loss against ground-truth labels.
  2. Cross-View Phase: On unlabeled data, the full model (the "primary prediction module") acts as a teacher. It processes the entire sentence to produce a probability distribution over labels. Simultaneously, several auxiliary "student" modules are introduced. These students are intentionally "blindfolded" to see only specific parts of the context.
The CVT training process for labeled and unlabeled examples, including the restricted views seen by auxiliary modules.

Auxiliary Students and Loss

The students are trained to match the teacher's distribution using KL-divergence. Crucially, gradients are not backpropagated through the teacher, ensuring the teacher provides a stable target. This forces the shared Bi-LSTM representations to become robust enough that labels can be predicted even when significant context is missing.

Architectural Constraints as Noise

The effectiveness of CVT stems from how it perturbs the model's view of internal representations. By using different combinations of forward and backward LSTM hidden states, the model creates distinct "views" for the students:

  • Forward/Backward Students: See only the left or right context, respectively.
  • Future/Past Students: See the context up to or after the current word, but not the current word itself.
Detailed Bi-LSTM architecture illustrating the specific hidden states used for forward, backward, future, and past auxiliary predictions.

This approach is highly efficient because multiple auxiliary views can be trained in parallel on the same example. Furthermore, CVT acts as a "force multiplier" for Multi-Task Learning (MTL). In an MTL setting, CVT allows the model to produce artificial labels for all tasks on every unlabeled sentence, significantly improving data efficiency.

Experimental Results

The authors evaluated CVT on a wide array of benchmarks, including CoNLL-2003 (NER), OntoNotes (Fine-Grained NER), and the Penn Treebank (POS Tagging and Dependency Parsing). The 1 Billion Word Language Model Benchmark served as the unlabeled data source.

Key findings include:

  • State-of-the-Art Performance: CVT reached 92.6 F1 on CoNLL-2003 NER, outperforming dominant models of the time.
  • Data Efficiency: A CVT model trained on only 25% of labeled data matched the performance of a fully supervised model using 100% of the data.
  • Scalability: Unlike standard supervised models that often plateau, CVT models continued to improve as the hidden state size increased, suggesting semi-supervised learning is vital for scaling larger architectures.

Conclusion and Future Work

CVT demonstrates that architectural constraints can serve as an effective form of noise for semi-supervised learning in NLP. While it requires task-specific design for auxiliary modules, its ability to leverage unlabeled data makes it a powerful complement to large-scale pre-training. Future work may explore combining CVT with transformer-based architectures and pre-trained representations like BERT to further push the boundaries of sequence modeling.

Summary updated

BibTeX
@inproceedings{clark2018semi,
  author = {Kevin Clark and Minh-Thang Luong and Christopher D. Manning and Quoc V. Le},
  title = {{Semi-Supervised Sequence Modeling with Cross-View Training}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1217},
}
Figure