Lazy loaded image10.7 Dropout and DropPath


Comparison

Feature
Dropout
DropPath / Stochastic Depth
Core Idea
Randomly drop neurons
Randomly drop entire paths or subnetworks
Granularity of Application
Neuron-level
Module-level

Formula

DropPath: also shares the same structure, but in the above, the is in dimension of (B, C, H, W) and each element is randomly dropped independently.
In contrast, DropPath (or Stochastic Depth) operates at a coarser granularity, i.e., the entire branch, typically with shape , is either kept or dropped per sample, not per element. For example, with a batch size of 4 (i.e., 4 samples) and , we may get
  • The first sample is kept;
  • The second sample is dropped;
  • The thrid sample is dropped;
  • The fourth sample is kept.

Code Implementation

Dropout
DropPath (Stochastic Depth)
Prev
10.6 Why LLM training rarely adopts Dropout?
Next
11.0 Introduction
Loading...
Article List
LLM Learning Roadmap
✨ Awesome-Anything
🖼️ Digital Image Processing
🍃 LLM Components
🌱 LLM Pre-training
☘️ LLM Post-Training
🍀 LLM Popular Models
🪴 LLM Applications
🌿 LLM Optimization
🌾 LLM Compression
🌵 LLM Hands-on Practice
🌴 LLM Must-read Papers
🌳 LLM Q&A
🐝 VLM Image Encoders
📝 MISC.