Revisiting Self-Training for Neural Sequence Generation

Junxian He, Jiatao Gu, Jiajun Shen, Marc'Aurelio Ranzato

TL;DR

Self-training—an "old-school" semi-supervised technique—is surprisingly effective for neural sequence generation tasks like translation and summarization. The secret sauce is noise: by injecting perturbations like dropout and input shuffling during training, models learn a "smoother" state space that allows them to self-correct and extract massive gains from unlabeled data.

What Problem Does This Paper Address?

Deep learning models are data-hungry, but high-quality labeled data (like human-translated sentence pairs) is expensive. Semi-supervised learning aims to bridge this gap by using abundant unlabeled data. In Machine Translation (MT), the dominant method is back-translation, which uses unlabeled data from the target language.

However, self-training—which uses unlabeled data from the source language—has historically been neglected for sequence tasks. The common wisdom was that if a "teacher" model makes a mistake on unlabeled data, a "student" model trained on those "pseudo-labels" would simply reinforce those errors, leading to a downward spiral of quality. This paper challenges that assumption and investigates why and how self-training can actually succeed.

Methods

The authors propose Noisy Self-Training (NST). The process follows a standard teacher-student loop but adds critical perturbations:

  1. Teacher Training: Train a base model on the available labeled data.
  2. Pseudo-Labeling: Use the teacher to translate a large corpus of unlabeled source sentences.
  3. Noisy Student Training: Train a new model (the student) on this "pseudo-parallel" data. Crucially, the authors inject noise during this step:
  4. Dropout: Perturbing hidden states during the forward pass.
  5. Input Noise: Randomly dropping, masking, or shuffling tokens in the source sentences.
  6. Fine-tuning: Fine-tune the student model on the original, clean labeled data.

The authors found that a separate training strategy (pre-training on pseudo-data, then fine-tuning on real data) performed better than training on both simultaneously.

Datasets

The researchers evaluated their approach across several benchmarks:

  • WMT14 English-German: A standard high-resource translation task. They also created a "WMT100K" subset to simulate low-resource conditions.
  • FloRes English-Nepali: An extremely low-resource benchmark where labeled data is scarce.
  • Gigaword: A large-scale text summarization dataset.
  • Toy Sum Dataset: A custom task where the model learns to sum two integers (represented as sequences of digits). This was used to visualize how noise "smooths" the model's error surface.

Key Insights and Ideas

Visualization of the smoothing effect on the error surface.
  • The "Smoothing" Effect: The most important discovery is that noise acts as a regularizer. By forcing the model to produce the same output for slightly different (noisy) versions of the same input, the model learns a "locally smooth" representation.
  • Self-Correction is Possible: Because of this smoothing, if a teacher model makes a mistake on one sentence but gets a "nearby" sentence right, the student model—forced to be consistent—might actually correct the teacher's error.
  • Dropout is Non-Negotiable: The authors found that without dropout during the pseudo-training phase, self-training provides almost no benefit. Dropout is the primary engine of the smoothing effect.
  • NST vs. Back-Translation: NST is complementary to back-translation. While back-translation improves the decoder (language modeling), NST helps the model better understand the source input and improves the encoder. In some low-resource settings, NST even outperformed back-translation.

Key Results

BLEU score improvements across multiple iterations of Noisy Self-Training.
  • Massive BLEU Gains: On the WMT100K task, Noisy Self-Training improved the baseline by over 6 BLEU points (a very large margin in MT research).
  • State-of-the-Art Summarization: On the Gigaword summarization task, NST outperformed the baseline and matched or exceeded the performance of much more complex pre-trained models like MASS.
  • Low-Resource Success: On the English-Nepali task, NST provided significant improvements (e.g., jumping from 6.7 to 8.9 BLEU), proving its utility when labeled data is nearly non-existent.
  • Iterative Improvement: The process can be repeated. Each "generation" of the student can become the teacher for the next, leading to continued (though diminishing) gains over 2-3 iterations.

Limitations and Future Work

  • Noise Sensitivity: The performance is sensitive to the amount of noise. Too little noise doesn't provide enough smoothing; too much noise destroys the semantic meaning of the input. Finding the optimal noise level currently requires manual tuning.
  • Domain Mismatch: Like all semi-supervised methods, NST's effectiveness depends on the unlabeled data being somewhat similar to the test data.
  • Computational Cost: Training multiple iterations of large Transformer models is computationally expensive. Future work could look into more efficient ways to achieve the "smoothing" effect without full retraining.

Summary updated

BibTeX
@inproceedings{he2020revisiting,
  author = {Junxian He and Jiatao Gu and Jiajun Shen and Marc'Aurelio Ranzato},
  title = {{Revisiting Self-Training for Neural Sequence Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
  url = {https://openreview.net/forum?id=8YDDcX630v},
}
Figure