Improved Generalization in Semi-Supervised Learning