Neural Variational Dropout Processes

Insu Jeon, Youngjin Park, Gunhee Kim

Introduction

Meta-learning, or "learning to learn," aims to create models capable of solving new tasks using only a handful of examples—a paradigm known as few-shot learning. Within this field, Bayesian meta-learning is particularly attractive because it provides a principled way to quantify uncertainty. This is crucial for high-stakes applications like autonomous driving or medical AI, where knowing what the model doesn't know is just as important as its predictions.

However, current model-based Bayesian approaches, such as Neural Processes (NPs), often struggle with two main issues:

  1. Under-fitting: The model fails to capture the complexity of the task from the limited context provided.
  2. Posterior Collapsing: A phenomenon where the model essentially ignores the task-specific context data and relies solely on its global "average" knowledge, leading to poor generalization.

To bridge this gap, researchers have introduced Neural Variational Dropout Processes (NVDPs), a novel Bayesian meta-learning framework that rethinks how a neural network adapts its internal state to a specific task.

The NVDP Approach: Dropout as Adaptation

The core innovation of NVDPs is treating dropout as the primary mechanism for task adaptation. Instead of modifying network weights directly, NVDPs adapt to new tasks by predicting task-specific dropout rates. This is a much lower-dimensional problem than weight optimization.

Conditional Dropout Posterior

In standard Variational Dropout, dropout rates are learned as fixed parameters. In NVDPs, the dropout rates are conditioned on the task's context data. Instead of trying to predict thousands of individual network weights—which is computationally expensive and prone to overfitting—the model predicts a set of dropout rates. These rates effectively "reconfigure" a shared, globally learned neural network for the specific task at hand.

Low-Rank Bernoulli Experts

To keep the model memory-efficient, the authors employ a "low-rank product" approach. Predicting a unique dropout rate for every single weight in a $K \times D$ layer would require $K \times D$ outputs. Instead, the meta-model predicts three smaller vectors: one for rows, one for columns, and one for the entire layer.

Low-Rank Bernoulli Experts

Multiplying these vectors together generates the full matrix of dropout rates. This reduces the complexity from $O(LKD)$ to $O(L(K+D+1))$, making the architecture highly scalable.

The Variational Prior

Perhaps the most clever technical contribution is the variational prior. In traditional Variational Inference, the prior is often a fixed, uninformative distribution. NVDPs use a prior that is itself conditioned on the entire task dataset during training. This provides a "target" for the model to aim for when it only has access to a small subset (the context) of that data. This effectively regularizes the learning process, ensuring the KL-divergence term in the loss function carries meaningful information about the task and preventing the model from ignoring the context (posterior collapse).

Key Results and Performance

The authors evaluated NVDPs across several standard benchmarks, including 1D stochastic regression, 2D image completion (MNIST, CelebA, Omniglot), and few-shot classification.

1D Stochastic Regression

In 1D regression tasks (using data generated from Gaussian Processes with random kernels), NVDPs achieved significantly higher Log-Likelihood (LL) scores than standard NPs. For example, in the "learned variance" setting, NVDP scored 0.83 compared to the NP's 0.19.

1D Regression Performance

Unlike deterministic models that produce a single "average" prediction, NVDPs can sample multiple different functions that all fit the observed data. This captures the true range of possibilities and functional ambiguity.

Active Learning, Image Inpainting, and Classification

  • Active Learning: NVDPs proved much more efficient at active learning. Because their uncertainty estimates are more accurate, they can identify which new data points will be most helpful, improving their performance much faster than competing models as more data is added.
  • Image Inpainting: Qualitatively, NVDPs produced sharper, more diverse reconstructions of faces and digits compared to NPs, which tended to produce blurry, "averaged" results.
  • Classification: On the MiniImageNet benchmark (5-way, 1-shot), NVDP achieved 54.06% accuracy, outperforming VERSA (53.40%) and MAML (48.70%).

Limitations and Future Directions

The authors noted a practical training hurdle: dropout rates can sometimes converge to zero too early due to high gradients from the KL-divergence term. They mitigated this using a clipping technique, keeping rates between 0.01 and 0.99.

Future work could involve integrating more advanced set representations (like Set Transformers) into the meta-model, exploring more complex neural architectures beyond fully connected layers, and investigating the application of NVDPs to reinforcement learning, where robust uncertainty quantification is vital for exploration.

Summary updated

BibTeX
@inproceedings{jeon2022neural,
  author = {Insu Jeon and Youngjin Park and Gunhee Kim},
  title = {{Neural Variational Dropout Processes}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=lyLVzukXi08},
}
Figure