Alternating Projections for Learning with Expectation Constraints

Kedar Bellare, Gregory Druck, Andrew McCallum

Introduction

Training sophisticated machine learning models typically requires vast amounts of labeled data. However, in many domains, labeling is prohibitively expensive. Conversely, domain experts often possess "rules of thumb" or high-level knowledge about the data that is not captured in a small labeled set. This paper introduces Alternating Projections (AP), a framework for semi-supervised learning that incorporates human knowledge via expectation constraints. AP provides a computationally efficient alternative to previous methods, particularly for structured data tasks like sequence labeling.

The Challenge of Constrained Learning

Previous attempts to integrate domain knowledge into probabilistic models faced significant trade-offs. Generalized Expectation (GE) is powerful but computationally expensive for structured models like Conditional Random Fields (CRFs) because it requires calculating complex covariances. On the other hand, Constraint-Driven Learning (CODL) is efficient but relies on "hard" assignments, discarding probabilistic uncertainty and potentially leading the model astray if initial predictions are incorrect.

Methodology: Alternating Projections

The AP algorithm decouples the optimization of a constrained objective into two alternating steps:

  1. I-Projection (Information Projection): The algorithm identifies an auxiliary distribution ($q$) that satisfies human-provided constraints while remaining as close as possible (via KL-divergence) to the current model’s distribution ($p$). This serves as a "corrected" version of the model's beliefs.
  2. M-Projection (Moment Projection): The model parameters are updated so that the model’s feature expectations match the corrected distribution ($q$).

This decomposition allows the auxiliary distribution to be more complex than the model itself. One can use a fast model for inference at test time while guiding its training with complex, long-range constraints that would otherwise be computationally prohibitive.

Experimental Setup and Constraints

The authors evaluated AP on text classification and sequence labeling tasks. A key component of the evaluation was the use of human-defined constraints. For example, in the Cora reference extraction task, experts can define rules based on punctuation, keywords, and formatting.

Figure 1: Examples of human-provided constraints used for the Cora reference extraction task.

Key Results

AP demonstrated performance comparable to GE in classification tasks while offering significant speed-ups for sequence labeling. In a CRF, adding a self-transition constraint results in a quadratic speed-up ($O(n|\mathcal{Y}|^2)$ for AP versus $O(n|\mathcal{Y}|^4)$ for GE).

On the Cora citation task, AP outperformed the previous state-of-the-art (CODL) by 3-6%. Notably, the framework excels in minimally supervised settings. With only 5 labeled examples and a set of constraints, AP reduced the error rate by 12% compared to a purely supervised baseline.

Figure 3: Performance comparison on the Cora dataset across different methods (Supervised, AP-T, AP-I, and CRR07) with varying numbers of labeled examples (N).

Conclusion

Alternating Projections offers a robust and efficient framework for injecting domain knowledge into machine learning models. By maintaining "soft" probabilistic constraints and utilizing an efficient projection-based optimization, AP achieves state-of-the-art results on complex sequence labeling tasks even with minimal supervision. Future work includes exploring richer convex constraints and applying the framework to domain adaptation challenges.

Summary updated

BibTeX
@inproceedings{bellare2009alternating,
  author = {Kedar Bellare and Gregory Druck and Andrew McCallum},
  title = {{Alternating Projections for Learning with Expectation Constraints}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2009},
  url = {https://openreview.net/forum?id=H5U554gFU-c},
}
Figure