Abstract
Entropy regularization is a straightforward and successful method of semi-supervised learning that augments the traditional conditional likelihood objective function with an additional term that aims to minimize the predicted label entropy on unlabeled data. It has previously been demonstrated to provide positive results in linear-chain CRFs, but the published method for calculating the entropy gradient requires significantly more computation than supervised CRF training. This paper presents a new derivation and dynamic program for calculating the entropy gradient that is significantly more efficient---having the same asymptotic time complexity as supervised CRF training. We also present efficient generalizations of this method for calculating the label entropy of all sub-sequences, which is useful for active learning, among other applications.
Introduction
Conditional Random Fields (CRFs) are a gold standard for sequence labeling tasks like named-entity recognition or part-of-speech tagging, but they typically require large amounts of hand-labeled data to perform well. Semi-supervised learning offers a solution by using small amounts of labeled data alongside large amounts of unlabeled data.
One popular semi-supervised technique is Entropy Regularization (ER). The core idea is to force the model to be "confident" about its predictions on unlabeled data by minimizing the entropy of its predicted label distributions. However, a major roadblock has been the computational cost: previous methods for calculating the gradient of this entropy were $O(ns)$ times slower than standard supervised training (where $n$ is sequence length and $s$ is the number of labels). This paper introduces a breakthrough that reduces this complexity from $O(n^2s^3)$ to $O(ns^2)$, matching the speed of standard supervised training.
Methods
The authors propose a new derivation for the entropy gradient that avoids the "quadratic feature expectations" required by previous methods. The core of their approach is the introduction of Subsequence Constrained Entropy. They demonstrate that because a linear-chain CRF follows the Markov property, the entropy of the entire sequence can be factored into smaller, manageable pieces.
They developed a new dynamic program using two new structures:
- $H^\alpha$ (Forward Entropy Lattice): Stores the entropy of prefix sequences.
- $H^\beta$ (Backward Entropy Lattice): Stores the entropy of suffix sequences.
By building these lattices—a process very similar to the classic Forward-Backward algorithm—they can compute the entropy of any label subsequence in constant time. This allows the total entropy gradient to be calculated in the same asymptotic time complexity as standard supervised CRF training ($O(ns^2)$).
Key Insights and Ideas
- The Markov Advantage: Entropy, much like probability in a CRF, respects the chain structure of the model. This allows for a recursive, dynamic programming solution rather than a brute-force calculation.
- Efficiency Parity: Semi-supervised training doesn't have to be significantly slower than supervised training. By factoring the gradient correctly, the cost of processing unlabeled data becomes nearly the same as labeled data. The three extra dynamic programs required do not need to re-calculate expensive dot-products between features and parameters, making them highly efficient.
- Beyond Training: The concept of subsequence constrained entropy is also a powerful tool for Confidence Estimation. It allows a system to pinpoint exactly which part of a sequence it is most uncertain about, which is invaluable for active learning applications.
Results
The algorithm improves the theoretical time complexity from $O(n^2s^3)$ to $O(ns^2)$. In practical "wall clock" timing tests, the authors found that their method takes only about 1.5 times as long as traditional supervised training. This is a massive improvement over previous methods that were orders of magnitude slower, finally making ER scalable to massive unlabeled datasets.
Limitations and Future Work
The paper focuses on the computational efficiency of the calculation rather than the empirical accuracy of the resulting models, assuming that Entropy Regularization is already a proven benefit for the task. Additionally, the derivation is specific to linear-chain CRFs. While the logic might be extendable to more complex graphical models like skip-chain CRFs, the math for those structures is not addressed here. Finally, while the authors suggest their method is useful for active learning, they leave the empirical validation of identifying high-uncertainty subsequences for future research.
Summary updated