§7.5 Noise robustness
Section 7.4 injected noise into the inputs as augmentation; for infinitesimal variance that turns out to be equivalent to a penalty on the weight norm. But noise injection noise robustness Training with injected noise so the learned function is insensitive to small perturbations. Input noise ≈ a weight-norm penalty; weight noise adds an η·E‖∇_W ŷ‖² term that pushes toward FLAT minima (robust to weight perturbation). defined in ch. 7 — open in glossary can be much more powerful, especially when the noise goes on the weights — a common trick in recurrent nets, interpretable as a stochastic Bayesian treatment of weight uncertainty. Take a regression net trained on squared error, and add a small perturbation to the weights each step. For small , minimizing the noisy cost is equivalent to minimizing the clean cost plus a regularizer:
Term by term
| the ordinary squared-error objective | data fit | |
| the induced regularizer: it penalizes how much the OUTPUT moves when the weights wiggle — sensitivity of ŷ to W | the penalty | |
| so training is pushed to regions where small weight perturbations barely change the output — minima surrounded by FLAT basins, not sharp ones | the effect |
Explore what “prefers flat minima” means: both wells below are equally deep, but a weight perturbation of raises the loss far more in the sharp one:
Both wells have the same depth, but a ±σ weight perturbation raises the loss far more in the sharp basin. Weight-noise regularization adds exactly a term proportional to the output's sensitivity, so it prefers the flat minimum — points that are minima surrounded by flat regions.
Why flatness generalizes
A flat minimum means the function the network computes is insensitive to small changes in its parameters — and, loosely, to small changes in the data that shift those parameters. That robustness is exactly what we want from a model that must work on unseen inputs. (For plain linear regression the term collapses to , which does not depend on the parameters — so it has no gradient and no effect. The interesting behavior needs a nonlinear net.)
§7.5.1 Smoothing the labels
Datasets contain label mistakes, so blindly maximizing on a wrong is harmful. Label smoothing label smoothing Replace hard 0/1 softmax targets with soft ε/(k−1) and 1−ε, so maximum likelihood need not chase unreachable extreme probabilities (which would grow weights forever); accounts for label mistakes. defined in ch. 7 — open in glossary softens the classification targets: instead of a hard one-hot, use for the correct class and for each of the other classes, then apply the usual cross-entropy. Slide :
At ε = 0 the targets are hard 0/1 — but a softmax can never output exactly 0 or 1, so maximum likelihood keeps growing the weights forever. Softened targets give it a reachable goal while still preferring the correct class.
The motivation is subtle: a softmax can never output exactly 0 or 1, so maximum-likelihood training with hard targets never converges — it just keeps driving the weights larger, making ever more extreme predictions. Label smoothing gives the model a reachable target, discouraging that runaway without discouraging correct classification. It has been used since the 1980s and features in modern nets (Szegedy et al., 2015).
§7.6 Semi-supervised learning
Semi-supervised learning semi-supervised learning Use both unlabeled examples from P(x) and labeled examples from P(x,y) to estimate P(y|x) — e.g. share parameters between a generative model of P(x) and a discriminative model of P(y|x), so unlabeled data shapes the representation. defined in ch. 7 — open in glossary uses both unlabeled examples from and labeled examples from to estimate . In deep learning this usually means learning a representation where examples of the same class land close together — unsupervised structure (tight input-space clusters) becomes a cue for grouping. Rather than bolting separate unsupervised and supervised components together, one can build a model whose generative part (for or ) shares parameters with the discriminative part (for ), then trade off the criteria and . The generative term acts as a prior: it asserts that the structure of is tied to the structure of , and tuning how much of it to include can beat purely generative or purely discriminative training.
§7.7 Multi-task learning
Multi-task learning multi-task learning Improve generalization by sharing lower-layer parameters across several tasks (a common factor pool) while keeping task-specific upper layers; pooled data constrains the shared part toward values that generalize. defined in ch. 7 — open in glossary improves generalization by pooling the examples of several tasks — sharing part of the model acts as a soft constraint that pushes the shared parameters toward values that generalize. The classic architecture (fig 7.2) sends a common input through shared lower layers to a representation , then splits into task-specific heads:
The parameters divide into two kinds: task-specific ones (the upper layers, which benefit only from their own task’s examples) and generic shared ones (the lower layers, which benefit from the pooled data of all tasks). The shared part gets far more effective examples, so its statistical strength — and generalization — improves, provided the tasks really do share something. The underlying prior belief: among the factors that explain the variation across the tasks’ data, some are shared.
Next: early stopping (the most common regularizer of all) and parameter tying & sharing — early stopping & parameter sharing.
Check yourself — noise robustness, label smoothing, semi-supervised & multi-task
1.Adding small Gaussian noise to the WEIGHTS is (for small η) equivalent to what regularizer, and what does it favor?
2.In FlatMinimaLab, raise σ. Why does the loss increase much more at the sharp minimum than at the flat one, even though both wells are equally deep?
3.Why does maximum-likelihood training with HARD 0/1 softmax targets never really converge, and how does label smoothing help?
4.In the fig 7.2 multi-task architecture, which parameters benefit from the pooled data of ALL tasks?
5.How does the shared generative + discriminative parametrization make semi-supervised learning work?