The ant recognition system is flexible, allowing ants to learn and tolerate outsiders while still recognizing their own kind.