Sequence labeling tasks, such as Named Entity Recognition (NER) and Part-of-Speech (POS) tagging, are fundamental to natural language processing. However, these tasks often suffer from a scarcity of high-quality annotated data. This paper introduces Variational Sequential Labelers (VSLs), a framework that leverages neural variational inference to improve sequence labeling through both enhanced regularization and semi-supervised learning.
The VSL Framework
The core innovation of the VSL is the integration of a generative model of words with a discriminative labeler using hierarchical latent variables. Unlike standard Variational Autoencoders (VAEs) that reconstruct entire sequences, VSLs focus on a "word prediction" objective: predicting a word $x_t$ given its surrounding context $x_{-t}$.
The authors propose three architectural variants to explore different latent structures:
- VSL-G: A baseline model using a single Gaussian latent variable per word.
- VSL-GG-Flat: Employs two independent latent variables ($z_t$ and $y_t$) per word to separate general word information from label-specific features.
- VSL-GG-Hier: A hierarchical model where the word-specific variable $z_t$ is conditioned on the label-specific variable $y_t$.
The model is trained using a multi-task objective that maximizes the variational lower bound (ELBO) for word prediction while simultaneously minimizing classification loss. In semi-supervised settings, unlabeled data contributes solely to the generative ELBO component, allowing the model to learn from vast amounts of raw text.
Experimental Results
The VSL models were evaluated on standard benchmarks, including CoNLL 2003 (NER), Twitter POS, and Universal Dependencies (UD) 1.4 across six languages.
A key finding is that VSLs act as a powerful regularizer. Even without additional unlabeled data, VSLs consistently outperform standard BiGRU baselines. The hierarchical structure (VSL-GG-Hier) proved most effective, likely due to its ability to disentangle tagging features from general linguistic features.
As shown in the results, VSL-GG-Hier achieves significant gains over the baseline. Specifically, it improves POS tagging accuracy by approximately 0.8% and NER $F_1$ scores by 0.8–1.0 points using labeled data alone. Incorporating unlabeled data provides an additional performance boost, demonstrating the framework's effectiveness for semi-supervised learning.
Key Insights and Conclusion
The success of VSLs stems from two main factors:
- Variational Regularization: The generative objective shapes the latent space in a way that benefits the downstream classification task, preventing overfitting on small labeled datasets.
- Contextual Representation: By framing word prediction as a context-dependent task (similar to CBOW), the model learns representations that capture the local syntax essential for sequence labeling.
While the benefits of unlabeled data eventually plateau, the VSL framework offers a robust method for improving sequence labelers. Future work may explore temporal dependencies between latent variables to further capture the sequential nature of language.
Summary updated