The first step towards learning to recognize faces was the evolution of the faceservice, which allowed each individual to determine if that individual’s face was unique; after learning the unique face of others, each insect has developed an innate ability to recognize individual faces. Thus the first evolutionary step in how insects learned to cooperate was by having other insects recognize their faces. The second evolved in the same way, only with it the information was not about the identity of another individual, but the identity of a certain face. 
The third evolved to allow for cooperation based purely on a collective decision by a group of individuals . The fourth evolved to allow for cooperation based purely on a collective decision by a group of individuals, but only in those contexts where everyone can recognize their faces together 
I like the first and second stages of evolution because they both do what we want them to do and can do without requiring any input from us. The third stage is far more interesting, and has a lot more potential for being useful.