Contrastive Learning and the Emergence of Attributes Associations