Uncertainty in Multitask Transfer Learning

Alexandre Lacoste, Boris N. Oreshkin, Wonchang Chung, Thomas Boquet, Negar Rostamzadeh, David KruegerarXiv 2018

Introduction

Few-shot learning—the capacity to acquire new concepts from a minimal set of examples—remains a fundamental challenge in machine learning. While human learners effortlessly leverage a lifetime of prior experience to generalize, standard neural networks typically require vast datasets. This paper introduces Deep Prior, a hierarchical Bayesian framework designed to accumulate task-agnostic knowledge into a rich prior. By employing variational Bayes and expressive posterior distributions, such as Inverse Autoregressive Flows (IAF), the authors achieve state-of-the-art performance, notably reaching 74.5% accuracy on the 5-shot Mini-Imagenet benchmark.

Methodology: Hierarchical Variational Bayes

The core innovation lies in a scalable approach to learning a "meaningful" prior from diverse tasks. Standard Bayesian Neural Networks (BNNs) often struggle with high-dimensional weight spaces and simplistic Gaussian priors. The authors address these limitations through several key strategies:

  1. Parameter Factorization: Model parameters are divided into a task-agnostic component ($\alpha$), capturing global knowledge, and task-specific latent variables ($z_j$).
  2. Latent Manifold Mapping: Instead of direct weight-space modeling, a deterministic function $h_\alpha(z)$ projects low-dimensional noise into the weight space, drawing inspiration from generative architectures like VAEs.
  3. Tractable Inference: The authors demonstrate that the Kullback–Leibler (KL) divergence can be computed in the low-dimensional latent space $z$, significantly enhancing scalability compared to traditional BNNs.
  4. Prototypical Integration: For classification, the framework incorporates Prototypical Networks. A "leave-one-out" closed-form solution (Theorem 1) allows for efficient estimation of the marginal likelihood, serving as a proxy for task comprehension.

Experimental Setup

The framework was evaluated across three distinct domains:

  • Harmonic Signals: A synthetic 1D regression dataset of summed sine waves, used to assess extrapolation and multi-modal uncertainty handling.
  • Mini-Imagenet: The standard benchmark for few-shot image classification.
  • Synbols: A novel dataset of characters (Latin, Greek, Chinese, etc.) with varying fonts and backgrounds, designed to test performance on heterogeneous tasks where objectives might shift from character recognition to style identification.

Results and Discussion

The "Deep Prior" acts as a repository of experience rather than a mere regularizer. In regression tasks, the model learns the underlying periodicity of the data.

Deep Prior regression on harmonic signals. As data points (red) increase, the posterior distribution (colored lines) collapses from a broad set of periodic functions toward the true function (blue).

As shown in the regression experiments, even with minimal data, the posterior samples reflect valid periodic functions. As more data points are observed, the uncertainty "collapses" toward the ground truth. This robustness is further evidenced by quantitative improvements in mean square error.

Mean Square Error across varying dataset sizes. The model 'with kl' (Deep Prior) consistently outperforms the version 'without kl', demonstrating the value of the hierarchical prior in low-data regimes.

Key Performance Metrics

  • State-of-the-Art Accuracy: The combination of Deep Prior and Prototypical Networks achieved 74.5% accuracy on 5-shot Mini-Imagenet.
  • Robustness vs. MAML: Comparative analysis revealed that Model-Agnostic Meta-Learning (MAML) struggled to converge on complex harmonic tasks where the Deep Prior excelled, suggesting that the Bayesian approach provides a more stable foundation for complex task distributions.
  • Task Heterogeneity: Experiments on the Synbols dataset highlighted that task-specific conditioning is vital when task nature varies significantly (e.g., font vs. character classification).

Conclusion

The Deep Prior framework effectively bypasses the "curse of dimensionality" in BNNs by performing inference on a learned latent manifold. While the use of Inverse Autoregressive Flows (IAF) significantly improves expressivity, the authors note that capturing highly multi-modal distributions remains a challenge, as IAF may "bridge" distinct modes rather than isolating them. Future research may explore more expressive posterior approximations or extend this hierarchical framework to reinforcement learning, where robust uncertainty estimation is essential for safe exploration.

Summary updated

BibTeX
@misc{lacoste2018uncertainty,
  author = {Alexandre Lacoste and Boris N. Oreshkin and Wonchang Chung and Thomas Boquet and Negar Rostamzadeh and David Krueger},
  title = {{Uncertainty in Multitask Transfer Learning}},
  year = {2018},
  eprint = {1806.07528},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.07528},
}
Figure