Depth Uncertainty Networks for Active Learning

Chelsea Murray, James Urquhart Allingham, Javier Antorán, José Miguel Hernández-LobatoarXiv 2021

Abstract

In active learning, the size and complexity of the training dataset changes over time. Simple models that are well specified by the amount of data available at the start of active learning might suffer from bias as more points are actively sampled. Flexible models that might be well suited to the full dataset can suffer from overfitting towards the start of active learning. We tackle this problem using Depth Uncertainty Networks (DUNs), a BNN variant in which the depth of the network, and thus its complexity, is inferred. We find that DUNs outperform other BNN variants on several active learning tasks. Importantly, we show that on the tasks in which DUNs perform best they present notably less overfitting than baselines.

Introduction

Active learning (AL) aims to maximize model performance while minimizing labeling costs by iteratively selecting the most informative data points. This process creates a dynamic environment where the training set size evolves from very small to potentially very large. Traditional neural networks face a dilemma: shallow architectures may underfit as data grows, while deep architectures tend to overfit small initial batches, leading to unreliable uncertainty estimates for data acquisition.

Methodology: Depth Uncertainty Networks

Depth Uncertainty Networks (DUNs) address this by treating the network depth $d$ as a latent random variable. Unlike standard Bayesian Neural Networks (BNNs) that focus on weight uncertainty, DUNs perform Bayesian Model Averaging over a set of subnetworks with varying depths.

  1. Stochastic Depth: The depth $d$ is treated as a categorical random variable.
  2. Exact Inference: The posterior over depth $p(d|\mathcal{D})$ can be computed exactly and efficiently in a single forward pass, avoiding the sampling noise associated with Monte Carlo methods.
  3. Acquisition: For active learning, DUNs utilize a stochastic version of Bayesian Active Learning by Disagreement (BALD), identifying points where different network depths yield the most divergent predictions.
Posterior distribution over depth $d$ for different training set sizes. As more data is acquired, the probability mass shifts toward deeper layers.

Key Insights: Automatic Complexity Scaling

A core hypothesis of DUNs is that the model should automatically adapt its complexity to the available data. Empirical results confirm this: as the training set size increases, the posterior distribution $q_\phi(d)$ shifts its mass from shallower to deeper layers. This "Goldilocks" behavior allows the model to maintain high capacity for large datasets while remaining robust against overfitting in the early stages of active learning.

Furthermore, by utilizing the Levelled Unbiased Risk Estimator (LURE), the researchers demonstrated that DUNs exhibit significantly lower overfitting bias compared to Monte Carlo Dropout (MCDO), particularly when data is scarce. This efficiency is achieved without the massive computational overhead of training an ensemble of separate models.

Key Results

The performance of DUNs was evaluated against Mean-Field Variational Inference (MFVI) and Monte Carlo Dropout (MCDO) across various UCI regression benchmarks and MNIST.

Test Negative Log-Likelihood (NLL) as a function of training set size. DUNs consistently achieve lower NLL than MFVI and MCDO across multiple datasets.

DUNs outperformed or matched baselines in 10 out of 15 datasets. Notably, in terms of Negative Log-Likelihood (NLL)—a critical metric for uncertainty calibration—DUNs showed a consistent advantage as the number of actively sampled points increased. Even when compared against baseline models manually tuned to the "optimal" depth found by the DUN, the DUN still performed better, suggesting that the uncertainty over depth is more valuable than just picking one "right" depth.

Conclusion

DUNs provide a mathematically principled and computationally efficient approach to model selection in active learning. By inferring depth, they bypass the manual tuning of architecture complexity and provide superior uncertainty estimates that drive more effective data acquisition. Future work will explore scaling DUNs to larger image classification and natural language processing tasks.

Summary updated

BibTeX
@misc{murray2021depth,
  author = {Chelsea Murray and James Urquhart Allingham and Javier Antorán and José Miguel Hernández-Lobato},
  title = {{Depth Uncertainty Networks for Active Learning}},
  year = {2021},
  eprint = {2112.06796},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.06796},
}
Figure