Training, adaptation, compression, and systems techniques · Training, fine-tuning, adaptation, compression, and systems techniques · TRN011 · Training method
Stochastic depth / DropPath
Drops complete residual branches during training, varying effective network depth.
In CodeSplash
Documented in the Academy only. There's no Set up button.
- Availability
- Explained here
- Code example
- Component demo, not a trained model
- Who ran it
- CodeSplash's run and the reference's record
- CodeSplash's run
- The reference's example ran in Python and R here, and they agree.
- The reference's record
- Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.
Purpose
Drops complete residual branches during training, varying effective network depth.
Question / hypotheses
Does this intervention improve the intended quality, adaptation, resource, or reliability objective under a controlled comparison? It defines a method, not an intrinsic null-hypothesis test.
Architecture / computational structure
A survival mask gates a residual branch while the identity path remains available; scaling conventions differ between original stochastic depth and modern DropPath implementations.
Assumptions
The network must have compatible bypass paths. Per-sample and per-batch branch masks yield different noise; inference scaling must match the training convention.
Formula / computational definition
Parameters and notation
Learned: residual-block weights. Hyperparameters: survival probabilities q_l, depth schedule, mask granularity. The random gate itself is not a trained architecture selector.
Fitting, fine-tuning, and adaptation
When fine-tuning, preserve the original branch layout and tune the drop schedule cautiously. Short adaptation may not benefit from aggressive branch removal.
How to use and calibrate
Plot validation performance against drop rate and inspect convergence. Example: regularize a deep vision transformer or residual CNN.
Example application
regularize a deep vision transformer or residual CNN.
Interpretation / pitfalls
Watch out
Removing arbitrary layers without shape-compatible identities is not stochastic depth. Evaluation must enable all branches under the corresponding scale convention.
Python and R code examples
Scope: numerical mechanism demonstration. Validation: Python executed successfully on the supplied synthetic inputs; R reviewed but not executed (Rscript unavailable).
Python and R
The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.
Component demo, not a trained model — numerical mechanism demonstration. · needs numpy
import numpy as np
h=np.array([1.,2.]); branch=np.array([.1,-.2]); q=.8; gate=1
print(h+gate*branch/q)
Component demo, not a trained model — numerical mechanism demonstration.
h <- c(1,2); branch <- c(.1,-.2); q <- .8; gate <- 1
print(h+gate*branch/q)
Sources
- Primary/official source 1arxiv.org
From the CodeSplash reference, entry TRN011.