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.
10.7 Dropout and DropPath
DropPath: Deep Networks with Stochastic Depth
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
Dropout: also mentioned in 10.6 Why LLM training rarely adopts Dropout?
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...