Mean-Field Microcanonical Gradient Descent