Dimension reduction and the gradient flow of relative entropy