Skip to main content
QUICK REVIEW

[Paper Review] Contextual Dropout: An Efficient Sample-Dependent Dropout Module

Xinjie Fan, Shujian Zhang|arXiv (Cornell University)|Mar 6, 2021
Data Stream Mining TechniquesComputer Science51 references11 citations
TL;DR

This paper proposes contextual dropout, a sample-dependent dropout module that learns input-specific dropout rates via a lightweight, parameter-sharing architecture, enabling improved uncertainty estimation and accuracy in deep neural networks with minimal computational overhead. It outperforms standard and variational dropout across image classification and visual question answering tasks, especially under noisy conditions.

ABSTRACT

Dropout has been demonstrated as a simple and effective module to not only regularize the training process of deep neural networks, but also provide the uncertainty estimation for prediction. However, the quality of uncertainty estimation is highly dependent on the dropout probabilities. Most current models use the same dropout distributions across all data samples due to its simplicity. Despite the potential gains in the flexibility of modeling uncertainty, sample-dependent dropout, on the other hand, is less explored as it often encounters scalability issues or involves non-trivial model changes. In this paper, we propose contextual dropout with an efficient structural design as a simple and scalable sample-dependent dropout module, which can be applied to a wide range of models at the expense of only slightly increased memory and computational cost. We learn the dropout probabilities with a variational objective, compatible with both Bernoulli dropout and Gaussian dropout. We apply the contextual dropout module to various models with applications to image classification and visual question answering and demonstrate the scalability of the method with large-scale datasets, such as ImageNet and VQA 2.0. Our experimental results show that the proposed method outperforms baseline methods in terms of both accuracy and quality of uncertainty estimation.

Motivation & Objective

  • To address the limitation of fixed, data-independent dropout probabilities in deep neural networks, which constrain uncertainty estimation quality.
  • To enable flexible, sample-specific dropout rates without significant increases in model complexity or inference cost.
  • To develop a scalable, general-purpose dropout module compatible with various neural network layers and dropout types (Bernoulli and Gaussian).
  • To improve both predictive accuracy and uncertainty calibration in real-world, large-scale applications such as ImageNet and VQA 2.0.

Proposed method

  • Proposes a contextual dropout module that parameterizes dropout rates as a function of input covariates using a shared encoder-decoder structure.
  • Employs a variational inference objective to learn the input-dependent dropout distributions, enabling end-to-end training.
  • Reuses the main network’s parameters to generate dropout rates, minimizing additional memory and computation.
  • Applies the module to fully connected, convolutional, and self-attention layers, ensuring broad compatibility.
  • Supports both Bernoulli and Gaussian dropout variants through a unified parameterization framework.
  • Trains the model using Monte Carlo sampling to approximate posterior expectations, maintaining computational efficiency.

Experimental results

Research questions

  • RQ1Can sample-dependent dropout improve uncertainty estimation and model accuracy compared to fixed, data-independent dropout?
  • RQ2Is it feasible to learn input-specific dropout rates without incurring prohibitive computational or memory costs?
  • RQ3How does contextual dropout perform on large-scale datasets like ImageNet and VQA 2.0 under standard and noisy conditions?
  • RQ4Does the proposed module generalize across different neural network architectures and layer types?
  • RQ5Can contextual dropout be used to fine-tune pre-trained models with performance gains?

Key findings

  • On the ImageNet dataset, contextual dropout improved the accuracy of a fine-tuned pre-trained model, demonstrating its utility in transfer learning.
  • On the original VQA 2.0 dataset, contextual dropout achieved 67.42% accuracy and 71.65 PAvPU, outperforming all baselines.
  • On noisy VQA data with added Gaussian noise (σ=5), contextual dropout maintained strong performance, achieving 63.73% accuracy and 68.57 PAvPU, significantly outperforming standard dropout methods.
  • The method showed consistent improvements in uncertainty estimation, with predictions being more conservative on incorrect outputs and more confident on correct ones.
  • The computational and memory overhead of contextual dropout was minimal, making it scalable to large models and datasets.
  • Visualizations confirmed that contextual dropout better aligns with human annotation patterns, especially in ambiguous or complex question types.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.