Improving Robustness and Efficiency in Active Learning with Contrastive Loss