Glossary · Machine learning
Mean squared error
Also called MSE, squared error, L2 loss
The average of the squared differences between predictions and targets: a common way to measure how far one set of numbers is from another.
For predictions and targets , the mean squared error is
Squaring makes every difference positive and makes large differences count much more than small ones. A miss of 0.2 costs four times a miss of 0.1. It is smooth, so gradient descent can follow it: its gradient with respect to a prediction is just .
As a loss it pulls predictions towards the targets. As a measurement it says how close two models’ outputs are.
In this project
Distillation uses it both ways. The student’s loss includes the squared difference between its mean action and the teacher’s, over the 48 motor outputs. The trainer also logs the student’s mean squared error against each teacher, per action, over the states that teacher is in charge of. In the first distillation run, the error against the base model stayed at 0.002 while the body straight’s fell from 0.028 to 0.005 and the knees’ from about 0.055 to 0.008 by 39 M steps (see Shadow clones).