What is deep supervision / auxiliary loss?
mediumAnswer
- Attach small classification / regression heads to intermediate layers and add their losses to the main loss (with lower weights).
- Provides gradient signal deeper into the network — helps optimization of very deep nets and enables intermediate feature usefulness.
- Used in Inception (auxiliary classifiers), U-Net (deep supervision on multi-scale masks), and dense prediction.
- Modern residual nets need it less.
Check yourself — multiple choice
- One loss only
- Add small heads at intermediate layers, weight their losses → deeper gradient signal, useful mid-features
- Removes main loss
- Only for RNNs
Deep supervision: intermediate heads and losses → better mid-layer features, deeper gradient.
#losses#training
Practise Deep Learning
214 interview questions in this topic.
Related questions
- What are vanishing and exploding gradients, and how do you fix them?
- What does Batch Normalization do?
- How does dropout work and when is it applied?
- Why use a learning-rate schedule (warmup + cosine decay)?
- Why do residual (skip) connections help training deep networks?
- What is Xavier (Glorot) initialization and why?