Mean Field Theory in Deep Metric Learning