Contrastive Learning For Compact