High-Performance Semi-Supervised Learning using Discriminatively Constrained Generative Models

Gregory Druck, Andrew McCallumICML 2010

Introduction

In machine learning, practitioners frequently face a common dilemma: they possess a small amount of labeled data but a vast mountain of unlabeled data.

Traditionally, generative models (like Hidden Markov Models) are the go-to for unlabeled data because they can learn underlying data structures without explicit labels. However, if the model's assumptions are even slightly misspecified, incorporating unlabeled data can actually degrade performance. Conversely, discriminative models (like Conditional Random Fields) are the gold standard for prediction tasks because they focus entirely on mapping inputs to labels. Their primary weakness is that they do not naturally know how to leverage unlabeled data.

This paper introduces a hybrid semi-supervised learning framework that bridges this gap. By using labeled data to impose "expectation constraints" on a generative model's latent variables, the authors create a system that effectively leverages unlabeled data while maintaining the high predictive accuracy characteristic of discriminative methods.

Methodology: Alternating Projections

The authors utilize the Alternating Projections (AP) framework, also known as Posterior Regularization. The core idea is to optimize a single objective function that balances the generative model's likelihood with a set of discriminative constraints.

Key technical components of this approach include:

  1. Expectation Constraints: Instead of forcing the model to match specific labels, the framework uses "Generalized Expectation" (GE). It estimates what the "average" feature values should look like from the labeled data and then forces the generative model to match those averages on the unlabeled data.
  2. Coordinate Ascent Optimization: The algorithm alternates between two steps:
  3. Information Projection (Modified E-step): Training a discriminative log-linear model (like a CRF) that has the generative model "embedded" within its potential functions.
  4. Moment Projection (M-step): Updating the generative model parameters, similar to a standard Expectation-Maximization (EM) algorithm.
  5. Many-to-One Mapping: Unlike standard HMMs where one state strictly equals one label, this method allows multiple latent states to map to a single label. This allows the model to discover hidden sub-structures within a single label category.

Key Insights

  • Discovering Sub-structure: By allowing multiple latent states per label, the model automatically discovers semantically coherent sub-categories without needing explicit labels for them. For example, it can recognize that an "Author" label consists of distinct sub-components like a "First Name", "Last Name", and "Initials".
Latent state transitions for the "author" label, demonstrating how the model learns distinct sub-structures like initials and full names.
  • The "Easy" vs. "Hard" Division of Labor: The discriminative part of the model doesn't have to expend effort on "easy" examples that the generative model already understands. Instead, it can focus its modeling capacity on difficult edge cases where generative assumptions fail.
  • Addressing Sparsity: Generative models include parameters for features that might only appear in the unlabeled data. By coupling the models, the generative model helps the discriminative model handle rare features it never encountered during supervised training.

Key Results

The method was evaluated on three sequence labeling tasks: Cora (research paper reference extraction), Apartments (segmenting Craigslist listings), and CoNLL03 NER (Named Entity Recognition). The proposed method achieved state-of-the-art results at the time of publication.

  • Cora: Reached 92.6% F1, which was the best reported result on this task. The hybrid AP models (HMM1-CRF and HMM2-CRF) consistently outperformed standard EM and CRF baselines across varying amounts of labeled data.
Results on the Cora dataset showing the F1 performance of various models across different amounts of labeled data.
  • Apartments: Achieved 83.0% token accuracy, outperforming previous methods that relied on significantly more complex prior knowledge or external resources.
  • CoNLL03 NER: Showed a significant boost, improving F1 by 2.4% to 3.0% over a standard supervised CRF.

Limitations and Future Work

While powerful, the framework does have limitations:

  • Computational Complexity: Increasing the number of latent states per label improves accuracy but increases inference time quadratically ($n^2$). While parallelizable, it remains a bottleneck for very large state spaces.
  • Constraint Noise: Estimating target expectations from very small labeled samples can be noisy. To keep the model stable, the authors had to implement specific "down-weighting" strategies for the unlabeled data.
  • Inference Methods: The paper explores using the generative model versus the discriminative model for final testing. The authors suggest that a "Generative as features" approach—using the generative model's output as an input to a downstream CRF—is a promising, yet unexplored, direction for this specific framework.

Summary updated

BibTeX
@inproceedings{druck2010high,
  author = {Gregory Druck and Andrew McCallum},
  title = {{High-Performance Semi-Supervised Learning using Discriminatively Constrained Generative Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2010},
  url = {https://openreview.net/forum?id=BJ4cr2-O-B},
}
Figure