Energy-decreasing dynamics in mean-field spin models