Fraternal Dropout

Konrad Zolna, Devansh Arpit, Dendi Suhubdy, Yoshua Bengio

Introduction

Regularizing Recurrent Neural Networks (RNNs) is notoriously difficult. While techniques like Dropout and Batch Normalization revolutionized feed-forward and convolutional networks, they often struggle with the sequential nature of RNNs. Standard dropout can "break" the flow of information across time steps, leading to a persistent performance gap between the training phase (where units are randomly dropped) and the inference phase (where all units are active but scaled).

Models trained with standard dropout often produce wildly different predictions depending on which specific units are masked. Ideally, a robust model should produce consistent, high-quality predictions regardless of the specific dropout pattern applied during training. Fraternal Dropout (FD) addresses this by acting as a simple yet powerful regularization technique that trains two identical copies of a model with different dropout masks. By minimizing the difference between their predictions, the model learns to be invariant to the specific units being "dropped," leading to state-of-the-art performance.

The Fraternal Dropout Method

The core idea behind Fraternal Dropout is elegant in its simplicity:

  1. Dual Forward Passes: For every input sample, the model performs two forward passes. Both passes use the exact same model parameters ($\theta$), but each pass uses a different, independent random dropout mask.
  2. Shared Loss: The model calculates the standard task loss (e.g., cross-entropy) for both passes.
  3. The "Fraternal" Penalty: A regularization term is added that minimizes the $L_2$ distance between the pre-softmax predictions of the two passes.

Mathematically, this penalty is equivalent to minimizing the variance of the model's predictions across different dropout masks. By forcing the "twins" to agree, the model becomes robust to the noise introduced by dropout.

Key Insights

  • Robustness through Invariance: A model shouldn't just be accurate; it should be stable. By penalizing prediction variance, FD encourages the network to develop redundant, robust representations.
  • Faster Convergence: Unlike the $\Pi$-model (which only applies the target loss to one of the two branches), FD applies the target loss to both. This leads to significantly faster training because weights receive target-based updates more frequently.
Convergence comparison between Pi-model and FD
  • Theoretical Grounding: FD provides an upper bound to "Expectation-Linear Dropout" (ELD). By minimizing the FD objective, the model indirectly solves the training-inference gap that ELD aims to fix, but in a more computationally efficient way.

Key Results

The authors evaluated Fraternal Dropout across several diverse tasks, including language modeling (Penn Treebank, WikiText-2), image captioning (MS COCO), and semi-supervised learning (CIFAR-10).

  • State-of-the-Art (SOTA): At the time of publication, FD achieved SOTA perplexity scores on Penn Treebank (56.8) and WikiText-2 (64.1) when applied on top of the AWD-LSTM architecture.
  • Image Captioning: On the MS COCO dataset, FD improved the BLEU-4 score from a baseline of 25.6 to 26.3, demonstrating that the technique generalizes well beyond pure text tasks.
  • Ablation Success: In head-to-head comparisons, FD consistently converged faster and reached lower validation error than ELD or the standard $\Pi$-model.
Validation convergence comparing FD, ELD, Pi-model, and Baseline

Limitations and Future Work

While highly effective, Fraternal Dropout comes with a few trade-offs:

  • Computational Overhead: The requirement for two forward passes per training step effectively doubles the computation per iteration and increases memory usage. However, it allows for smaller batch sizes on the same hardware while still achieving superior generalization.
  • Hyperparameter Sensitivity: The regularization coefficient ($\kappa$) requires careful tuning. While a constant value worked well for large tasks, smaller tasks often required very small $\kappa$ values.
  • Generalization to CNNs: While the paper focuses on RNNs, the authors suggest that "Fraternal Augmentation" (using different data augmentations instead of dropout masks) could be a promising direction for computer vision.

Summary updated

BibTeX
@inproceedings{zolna2018fraternal,
  author = {Konrad Zolna and Devansh Arpit and Dendi Suhubdy and Yoshua Bengio},
  title = {{Fraternal Dropout}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=SJyVzQ-C-},
}
Figure