Collective Learning Generally Overcomes Local Optima and Converges to the Global Optimum