Abstract
Semi-supervised sequence labeling often relies on the Expectation-Maximization (EM) algorithm, which is computationally expensive and susceptible to local optima. This paper introduces a fast, scalable alternative based on the "Method of Moments." By identifying "anchor words"—unambiguous markers for specific tags—the proposed method estimates model parameters with a single pass over unlabeled data. Experimental results on Part-of-Speech (POS) tagging for Twitter and low-resource languages like Malagasy demonstrate that this approach significantly outperforms traditional baselines, particularly when labeled data is extremely scarce.
Introduction
In Natural Language Processing (NLP), sequence labeling tasks like Part-of-Speech (POS) tagging are fundamental. However, the high cost of manual annotation makes large labeled datasets rare. Semi-supervised learning aims to leverage massive unlabeled corpora alongside small labeled sets. The traditional "gold standard," Expectation-Maximization (EM), suffers from high computational costs due to multiple decoding passes and a tendency to converge on local optima. This research seeks a method that is both "identifiable" (guaranteed to find correct parameters with sufficient data) and efficient enough for modern web-scale data.
Methodology: Anchor Words and Moment Matching
The core of the proposed approach is a Method of Moments framework built upon the anchor word assumption. An anchor word is defined as a token that almost always carries a specific label regardless of its context (e.g., "the" as a determiner).
The algorithm proceeds in several steps:
- Moment Collection: Instead of guessing labels for every word, the algorithm collects statistics (moments) about word co-occurrences within their surrounding contexts from unlabeled data.
- Matrix Decomposition: These statistics form a context-word matrix $\mathbf{Q}$. Under the Hidden Markov Model (HMM) framework, $\mathbf{Q}$ can be decomposed into context-label moments ($\mathbf{R}$) and label-word distributions ($\mathbf{\Gamma}$).
- Quadratic Programming (QP): By using anchor words to "fix" labels, the estimation of emission parameters is reduced to solving small, independent quadratic programs for each feature.
This method is highly efficient, requiring only one pass over unlabeled data and avoiding the need for iterative decoding like the Viterbi algorithm. The framework is further extended to Feature-Based HMMs (FHMMs), allowing the inclusion of sub-word information like suffixes and capitalization to handle out-of-vocabulary terms.
Experimental Results
The method was evaluated on Twitter POS tagging and Malagasy POS tagging. The anchor-based approach demonstrated superior performance and efficiency across all tests. On the Twitter task with only 150 labeled sentences, the anchor-based HMM achieved 84.3% accuracy, outperforming the best semi-supervised baseline (self-training) by 6.1 percentage points.
As shown in the figure above, the anchor models maintain a significant lead over standard HMMs, especially in the extreme low-data regime. The performance gains are further detailed in the table below, comparing various semi-supervised strategies.
Beyond accuracy, the method offers substantial speedups. Training the anchor-based model took 3.8 hours, compared to 10.3 hours for self-training and 14.9 hours for EM. For complex models like the Maximum Entropy Markov Model (MEMM), the gap was even more pronounced (3.8h vs 42h).
Discussion and Conclusion
The "Method of Moments" approach proves that sequence models can be learned effectively without expensive decoding passes on unlabeled data. Its efficiency stems from solving small, parallelizable optimization problems. While the current implementation estimates transition matrices solely from labeled data, future work could incorporate unlabeled data for transitions using composite likelihood methods. Overall, this method provides a robust and scalable solution for sequence labeling in resource-constrained environments.
Summary updated