Stability and Diversity in Collective Adaptation