Dropout Prediction Variation Estimation Using Neuron Activation Strength

Haichao Yu, Zhe Chen, Dong Lin, Gil I. Shamir, Jie HanarXiv 2021

Abstract

Dropout is a standard technique for quantifying prediction uncertainty by measuring the variation in model outputs across multiple stochastic passes. However, this Monte Carlo (MC) dropout approach is computationally expensive for real-time applications. This paper explores a resource-efficient alternative: estimating dropout prediction uncertainty (DPU) using neuron activation strengths from a single forward pass. Evaluated on large-scale datasets including MovieLens, Criteo, and EMNIST, our method demonstrates that internal network states provide sufficient information to predict uncertainty accurately. We further show that using activations from only a subset of layers maintains performance while significantly reducing computational overhead.

Introduction

In high-stakes machine learning applications—such as medical diagnosis or autonomous systems—knowing a model's confidence is as critical as the prediction itself. Dropout Prediction Uncertainty (DPU), or MC Dropout, is a popular metric where uncertainty is derived from the variance of multiple inferences with dropout enabled. While effective, the requirement for dozens or hundreds of forward passes per input makes it impractical for large-scale production environments. This research addresses the challenge of obtaining high-quality uncertainty estimates without the prohibitive inference-time compute cost.

Methodology

The proposed framework utilizes a multi-task learning approach where uncertainty estimation is treated as a low-cost auxiliary task.

System Architecture

The system consists of two main components:

  1. The Target Task: The primary model (e.g., a recommender or classifier) that performs the main inference.
  2. The Uncertainty Estimator: A lightweight auxiliary Deep Neural Network (DNN) that takes neuron activation strengths (outputs from ReLU functions in the target model's fully-connected layers) as input features.
Figure 1: The proposed architecture where activation strengths from the target task serve as features for the uncertainty estimation task.

Training and Inference

During the training phase, the target model generates "ground truth" uncertainty labels by performing multiple stochastic passes with dropout. The auxiliary model is then trained to map the target model's internal activations to these labels using Mean Squared Error or Cross-Entropy loss.

Figure 3: Training setup where the target task provides Prediction Uncertainty (PU) labels to train the auxiliary uncertainty estimation model.

At inference time, dropout is disabled. The system performs a single forward pass: the target model produces its prediction, and the auxiliary model simultaneously outputs an uncertainty score based on the target model's internal state. This "inference-once" approach eliminates the need for multiple passes.

Experimental Evaluation

The framework was tested on three diverse datasets:

  • MovieLens 1M: Used for rating prediction (regression) and classification.
  • Criteo Display Advertising: A 40-million example dataset for binary click-through rate prediction.
  • EMNIST: A 280,000-image dataset for 10-category handwritten digit classification.

Key Findings

  • Latent Uncertainty Information: Internal activations during a deterministic pass contain enough information to predict how the network would have varied under stochastic dropout.
  • Layer Efficiency: Activations from the bottom one or two layers (closest to the input) provide nearly the same predictive power as using all layers. Restricting the auxiliary model to the bottom layer reduced parameter count by over 35% without significant performance loss.
  • Extreme Case Detection: The model is particularly adept at identifying highly certain or highly uncertain cases, achieving 80-90% accuracy in bucketed classification for MovieLens and Criteo.

Results and Discussion

The auxiliary model showed strong $R^2$ correlations (>0.5) with true DPU labels across most setups. Performance was notably high on the Criteo and MovieLens datasets. However, the model faced challenges with the EMNIST dataset due to its highly skewed, long-tailed uncertainty distribution, where most examples have near-zero uncertainty, making regression metrics less robust.

Conclusion

This work demonstrates that dropout-based uncertainty can be estimated efficiently using a single-pass auxiliary task. By leveraging internal neuron activations, we can achieve high-quality uncertainty metrics at a fraction of the computational cost of traditional MC dropout. Future research will explore the specific sources of prediction uncertainty and extend this methodology to reinforcement learning and curriculum learning environments.

Summary updated

BibTeX
@misc{yu2021dropout,
  author = {Haichao Yu and Zhe Chen and Dong Lin and Gil I. Shamir and Jie Han},
  title = {{Dropout Prediction Variation Estimation Using Neuron Activation Strength}},
  year = {2021},
  eprint = {2110.06435},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.06435},
}
Figure