HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

How to Use Dropout Correctly on Residual Networks with Batch Normalization

Bum Jun Kim Hyeyeon Choi Hyeonah Jang Donggeon Lee Sang Woo Kim

How to Use Dropout Correctly on Residual Networks with Batch Normalization

Abstract

For the stable optimization of deep neural networks, regularization methods such as dropout and batch normalization have been used in various tasks. Nevertheless, the correct position to apply dropout has rarely been discussed, and different positions have been employed depending on the practitioners. In this study, we investigate the correct position to apply dropout. We demonstrate that for a residual network with batch normalization, applying dropout at certain positions increases the performance, whereas applying dropout at other positions decreases the performance. Based on theoretical analysis, we provide the following guideline for the correct position to apply dropout: apply one dropout after the last batch normalization but before the last weight layer in the residual branch. We provide detailed theoretical explanations to support this claim and demonstrate them through module tests. In addition, we investigate the correct position of dropout in the head that produces the final prediction. Although the current consensus is to apply dropout after global average pooling, we prove that applying dropout before global average pooling leads to a more stable output. The proposed guidelines are validated through experiments using different datasets and models.

Code Repositories

Benchmarks

BenchmarkMethodologyMetrics
fine-grained-image-classification-on-caltechPreResNet-101
Top-1 Error Rate: 15.8036%
fine-grained-image-classification-on-oxford-2PreResNet-101
Accuracy: 85.5897
image-classification-on-cifar-10PreResNet-110
Percentage correct: 94.4367
image-classification-on-cifar-100PreResNet-110
Percentage correct: 73.98
image-classification-on-imagenetDenseNet-169 (H4*)
Top 1 Accuracy: 79.152%

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp