TBD: I have not examined this stuff for a long time and it is probably out of date.

How do we get generalisation from neural networks? As in all ML it is probably about controlling overfitting to the training set by some kind of regularization.

## Early stopping

e.g. (Prechelt 2012). Don’t keep training your model. The regularisation method that actually makes learning go faster, because you don’t bother to do as much of it. Interesting connection to NN at scale

## Stochastic weight averaging

Izmailov et al. (2018) Pytorch’s introduction to Stochastic Weight Averaging has all the diagrams and references here we could want. Also this ends up having some interesting connection to Bayesian posterior uncertainty.

## Weight penalties

\(L_1\), \(L_2\), dropout… Seems to be applied to weights, but rarely to actual neurons.

See Compressing neural networks for that latter use.

This is attractive but has a potentially expensive hyperparameter to choose. Also, should we penalize each weight equally, or are there some expedient normalization schemes? For that, see the next section:

## Normalization

Mario Lezcano, in the PyTorch Tutorials mentions

Regularizing deep-learning models is a surprisingly challenging task. Classical techniques such as penalty methods often fall short when applied on deep models due to the complexity of the function being optimized. This is particularly problematic when working with ill-conditioned models. Examples of these are RNNs trained on long sequences and GANs. A number of techniques have been proposed in recent years to regularize these models and improve their convergence. On recurrent models, it has been proposed to control the singular values of the recurrent kernel for the RNN to be well-conditioned. This can be achieved, for example, by making the recurrent kernel orthogonal. Another way to regularize recurrent models is via "weight normalization". This approach proposes to decouple the learning of the parameters from the learning of their norms. To do so, the parameter is divided by its Frobenius norm and a separate parameter encoding its norm is learnt. A similar regularization was proposed for GANs under the name of "spectral normalization". This method controls the Lipschitz constant of the network by dividing its parameters by their spectral norm, rather than their Frobenius norm.

### Weight Normalization

Pragmatically, controlling for variability in your data can be very hard in, e.g. deep learning, so you might normalise it by the batch variance. Salimans and Kingma (Salimans and Kingma 2016) have a more satisfying approach to this.

We present weight normalization: a reparameterisation of the weight vectors in a neural network that decouples the length of those weight vectors from their direction. By reparameterizing the weights in this way we improve the conditioning of the optimization problem and we speed up convergence of stochastic gradient descent. Our reparameterisation is inspired by batch normalization but does not introduce any dependencies between the examples in a minibatch. This means that our method can also be applied successfully to recurrent models such as LSTMs and to noise-sensitive applications such as deep reinforcement learning or generative models, for which batch normalization is less well suited. Although our method is much simpler, it still provides much of the speed-up of full batch normalization. In addition, the computational overhead of our method is lower, permitting more optimization steps to be taken in the same amount of time.

They provide an open implementation for keras, Tensorflow and lasagne.

### Adversarial training

See GANS for one type of this.

## References

*arXiv:1412.8690 [cs, Math, Stat]*, December. http://arxiv.org/abs/1412.8690.

*arXiv:1702.02604 [cs, Stat]*, February. http://arxiv.org/abs/1702.02604.

*arXiv:1612.02734 [cs]*, December. http://arxiv.org/abs/1612.02734.

*arXiv:1404.7456 [cs, Stat]*, April. http://arxiv.org/abs/1404.7456.

*Proceedings of the National Academy of Sciences*116 (32): 15849–54. https://doi.org/10.1073/pnas.1903070116.

*International Conference on Machine Learning*, 541–49. http://arxiv.org/abs/1802.01396.

*Neural Computation*12 (8): 1889–1900. https://doi.org/10.1162/089976600300015187.

*arXiv:1610.01989 [cs, Stat]*, September. http://arxiv.org/abs/1610.01989.

*arXiv:2012.00152 [cs, Stat]*, November. http://arxiv.org/abs/2012.00152.

*ICML*, 14.

*arXiv:1512.05287 [stat]*. http://arxiv.org/abs/1512.05287.

*arXiv:1712.06541 [cs, Stat]*, December. http://arxiv.org/abs/1712.06541.

*Proceedings of the 24th International Conference on Neural Information Processing Systems*, 2348–56. NIPS’11. USA: Curran Associates Inc. https://papers.nips.cc/paper/4329-practical-variational-inference-for-neural-networks.pdf.

*arXiv:1509.01240 [cs, Math, Stat]*, September. http://arxiv.org/abs/1509.01240.

*arXiv:1612.04010 [cs]*, December. http://arxiv.org/abs/1612.04010.

*arXiv:1710.05468 [cs, Stat]*, October. http://arxiv.org/abs/1710.05468.

*arXiv:1706.02515 [cs, Stat]*, June. http://arxiv.org/abs/1706.02515.

*arXiv:1612.04468 [cs, Stat]*, December. http://arxiv.org/abs/1612.04468.

*Advances in Neural Information Processing Systems*, 8570–81. http://arxiv.org/abs/1902.06720.

*Workshop on Learning to Generate Natural Language*. http://arxiv.org/abs/1708.00077.

*Proceedings of the National Academy of Sciences*117 (20): 10625–26. https://doi.org/10.1073/pnas.2001875117.

*ICML*, 2113–22. http://www.jmlr.org/proceedings/papers/v37/maclaurin15.pdf.

*Proceedings of ICML*. http://arxiv.org/abs/1701.05369.

*Advances In Neural Information Processing Systems*. http://arxiv.org/abs/1609.01596.

*arXiv:1606.07326 [cs, Stat]*, June. http://arxiv.org/abs/1606.07326.

*Proceedings of the IEEE International Conference on Computer Vision*, 5296–5304.

*Medium*(blog). November 6, 2016. https://medium.com/intuitionmachine/deep-learning-the-unreasonable-effectiveness-of-randomness-14d5aef13f87#.g5sjhxjrn.

*Neural Networks: Tricks of the Trade*, edited by Grégoire Montavon, Geneviève B. Orr, and Klaus-Robert Müller, 53–67. Lecture Notes in Computer Science 7700. Springer Berlin Heidelberg. https://doi.org/10.1007/978-3-642-35289-8_5.

*Advances in Neural Information Processing Systems 29*, edited by D. D. Lee, M. Sugiyama, U. V. Luxburg, I. Guyon, and R. Garnett, 901–1. Curran Associates, Inc. http://papers.nips.cc/paper/6114-weight-normalization-a-simple-reparameterization-to-accelerate-training-of-deep-neural-networks.pdf.

*arXiv:1805.11604 [cs, Stat]*, April. http://arxiv.org/abs/1805.11604.

*arXiv:1607.00485 [cs, Stat]*, July. http://arxiv.org/abs/1607.00485.

*arXiv:1611.06791 [cs]*, November. http://arxiv.org/abs/1611.06791.

*The Journal of Machine Learning Research*15 (1): 1929–58. http://www.jmlr.org/papers/volume15/srivastava14a.old/source/srivastava14a.pdf.

*arXiv:2006.00294 [cs, Math, Stat]*, May. http://arxiv.org/abs/2006.00294.

*arXiv:1611.03131 [cs, Stat]*, November. http://arxiv.org/abs/1611.03131.

*Proceedings of ICLR*. http://arxiv.org/abs/1611.03530.

## No comments yet. Why not leave one?