Self-Prediction and Contrastive Learning