Unsupervised Search-based Structured Prediction

Hal Daumé Iii

Presented at ICML 2009 by Hal Daumé III, this paper offers a clever bridge between search-based supervised learning and the world of unsupervised discovery. It demonstrates how algorithms designed for labeled data can be adapted to learn complex latent structures—such as the grammar of a language—without relying on gold-standard labels.

By framing unsupervised learning as a task of "predicting the input from itself," the author shows that discovering latent structure can be reduced to a series of standard supervised classification problems. This approach is often faster and more flexible than traditional Expectation-Maximization (EM).

The Challenge with Expectation-Maximization

Structured prediction involves mapping inputs (like a sentence) to complex outputs (like a parse tree). In many real-world scenarios, we lack labeled "output" trees and only have raw "input" sentences. Traditionally, researchers use Expectation-Maximization (EM) to handle these latent variables.

However, EM has two major drawbacks:

  1. Tractability: It requires computing expectations over all possible structures, which is computationally expensive and often forces strict "locality" assumptions on features to remain feasible.
  2. Feature Constraints: EM is typically tied to generative probabilistic models. This makes it difficult to incorporate the rich, overlapping features that modern discriminative classifiers (like Logistic Regression or Support Vector Machines) excel at using.

The core question of this research is: Can we use search-based algorithms—which are usually faster and more feature-flexible—for unsupervised tasks?

The "Predict-Self" Methodology

The paper's primary contribution is reducing unsupervised learning to supervised learning using a "predict-self" framework built on top of the Searn algorithm.

Originally, Searn breaks a complex prediction task into a sequence of individual decisions, learning a policy to make these decisions by iteratively refining its choices based on the final loss of the complete structure. To make this unsupervised, the model is asked to predict a two-part output: first, a latent structure $y$ (e.g., a parse tree), and second, the original input $x$ itself.

The loss is calculated only on the second part. If the model can accurately "reconstruct" the input $x$ using the latent structure $y$ as a guide, then $y$ must be a meaningful representation of the data. For this to work, the features used to predict $x$ must depend crucially on $y$. If the model can predict the $t$-th word of a sentence easily just by looking at the $t$-th word, it learns nothing. But if it can only predict the word accurately by knowing its position in a latent parse tree, it is forced to learn a good tree.

The paper also provides a formal proof that under specific conditions (using a Naive Bayes classifier), this approach is mathematically equivalent to EM, providing a solid theoretical foundation.

Experimental Setup and Key Results

The approach was evaluated on synthetic HMM data (comparing Searn against standard EM across varying numbers of latent states) and the WSJ10 Corpus, a standard benchmark for natural language parsing consisting of Wall Street Journal sentences up to 10 words long.

Robustness and Efficiency

In synthetic tests, when the learning model didn't perfectly match the data-generating process (e.g., using a 1st-order model to learn 2nd-order data), Searn with Logistic Regression (Searn-LR) significantly outperformed EM because it could leverage a richer feature set.

On the WSJ10 dataset, search-based methods avoided the "summing over everything" problem of EM, leading to much faster convergence in complex tasks like dependency parsing.

Table comparing parsing accuracy and iteration counts for various algorithms, highlighting SEARN's efficiency.

Unsupervised Searn achieved a directed arc accuracy of 45.4%. While slightly below the state-of-the-art specialized unsupervised parsers of the time (which hit ~49%), Searn converged in roughly 15% of the iterations required by those EM-based models (27.6 iterations vs. over 130-170 for alternatives). A complete run on the parsing task took roughly 3 hours on a 2009-era processor, demonstrating practical efficiency.

Semi-Supervised Gains

The paper also introduces a semi-supervised version of the algorithm. By adding just a tiny amount of labeled data, the model's performance jumps dramatically.

Learning curves demonstrating the dramatic increase in unlabeled arc accuracy when adding small amounts of labeled data to the unsupervised model.

With just 5 labeled examples, the accuracy shot up to over 70%. This suggests that the "predict-self" mechanism acts as an incredibly powerful regularizer when combined with even a minimal amount of supervision, far exceeding what the unsupervised version could achieve alone.

Limitations and Future Directions

While highly effective, the success of the "predict-self" approach relies heavily on feature engineering. The designer must create features that strictly "tie" the input to the latent structure; otherwise, the model might find a trivial solution. Furthermore, applying this to structures beyond shift-reduce parsing (like machine translation) requires defining entirely new search spaces and transition actions.

Ultimately, this framework proves that unsupervised learning doesn't require a fundamentally different class of algorithms and opens the door for extending search-based structured prediction to more complex latent variables in fields like computer vision and multi-lingual alignment.

Summary updated

BibTeX
@inproceedings{iii2009unsupervised,
  author = {Hal Daumé III},
  title = {{Unsupervised Search-based Structured Prediction}},
  booktitle = {International Conference on Machine Learning},
  year = {2009},
  doi = {10.1145/1553374.1553401},
}
Figure