Simple, robust, scalable semi-supervised learning via expectation regularization

Gideon S. Mann, Andrew McCallumICML 2007

TL;DR

Expectation Regularization (XR) is a simple yet powerful method for semi-supervised learning that scales as easily as standard logistic regression. By adding a penalty term that encourages a model's predictions on unlabeled data to match human-provided expectations (like label priors), XR achieves state-of-the-art accuracy even with as little as one labeled example per class.

What Problem Does This Paper Address?

Semi-supervised learning (SSL)—the art of using a small amount of labeled data alongside a mountain of unlabeled data—has long been a "holy grail" in machine learning. However, the authors argue that most SSL methods are rarely used in production because they are:

  1. Fragile: They require delicate hyperparameter tuning.
  2. Complex: They often involve building massive graphs or complex "auxiliary" functions.
  3. Unscalable: Many methods (like Transductive SVMs) struggle to handle millions of unlabeled points.

The authors specifically target the "failure to launch" of SSL in application-oriented research, proposing a method that is robust, easy to implement, and computationally efficient.

Methods

The authors introduce Expectation Regularization (XR). The core idea is to take a standard discriminative model (like a Maximum Entropy/Logistic Regression classifier) and augment its objective function.

Standard models only care about maximizing the likelihood of the labels you gave it. XR adds a second term: a regularizer that looks at the unlabeled data. This term calculates the KL-divergence between:

  • The Model’s Predictions: What the model thinks the label distribution looks like across the unlabeled set.
  • Human Expectations: What a human knows the distribution should look like (e.g., "I know about 60% of these emails are spam").

The paper focuses on a specific version called Label Regularization. If you know the general class balance of your dataset (which is often easy to estimate from a small sample), you can force the model to respect that balance on the unlabeled data. This prevents a common SSL failure where a model "collapses" and predicts the same majority class for every single unlabeled instance.

Datasets

The authors evaluated XR on five diverse, large-scale datasets to prove its versatility. These datasets are notable for having dramatic class skews and high-dimensional, non-independent features, ranging from text classification to genomics.

Dataset characteristics

Key Insights and Ideas

  • The "Global" Advantage: Unlike previous methods that tried to match expectations on a per-instance basis (which leads to degenerate solutions), XR matches expectations globally across the entire unlabeled set. This allows individual predictions to be confident while the aggregate remains balanced.
  • Robustness to Noise: One of the most surprising findings is that you don't need a perfect prior. Even if the human-provided label distribution is significantly off (e.g., guessing a uniform distribution when the data is skewed), XR still tends to improve performance or at least remain stable.
  • Simplicity is Scalable: Because the gradient of the XR term looks very similar to the standard MaxEnt gradient, it can be optimized using the same high-performance tools (like L-BFGS) and scales linearly with the number of unlabeled examples.

Key Results

XR consistently outperformed or matched more complex methods like EM-trained Naive Bayes, Entropy Regularization, and Cluster Kernels across various tasks.

Accuracy on SRAA dataset
  • The "One-Shot" Winner: On the SRAA dataset (shown above), XR was the clear winner when only one labeled instance per class was provided, demonstrating steep early learning curves.
  • Protein Prediction: On the SecStr task, XR achieved a performance of 65.44%, beating out supervised SVMs (55.41%) and matching complex graph-based methods while being much faster to train.
  • Hyperparameter Stability: The authors found that the weighting parameter and the temperature coefficient rarely needed tuning across different datasets, making it a "set-and-forget" method compared to its peers.

Limitations and Future Work

  • Baseline Deficit: In some cases, the baseline Maximum Entropy model starts with much lower accuracy than Naive Bayes. While XR improves the MaxEnt model significantly, it sometimes struggles to close the gap with a well-initialized generative model (like Naive Bayes + EM).
  • Beyond Labels: This paper primarily explored regularizing label distributions. The authors suggest that future work could involve regularizing feature-label expectations (e.g., "the word 'protein' should be associated with the 'Biology' label 80% of the time").
  • Structured Models: The authors plan to apply XR to more complex structured models like Conditional Random Fields (CRFs), where the expectations would be calculated over sequences rather than individual points.

Summary updated

BibTeX
@inproceedings{mann2007simple,
  author = {Gideon S. Mann and Andrew McCallum},
  title = {{Simple, robust, scalable semi-supervised learning via expectation regularization}},
  booktitle = {International Conference on Machine Learning},
  year = {2007},
  url = {https://openreview.net/forum?id=BkE2Vhb_WS},
}
Figure