Attention based contrastive learning with non-Siamese architecture