Contrastive Regularization for Semi-Supervised Learning