Abstract
This paper introduces Gated Recursive Semi-Markov Conditional Random Fields (grSemi-CRFs), a novel architecture designed to automate feature extraction for segment-level NLP tasks such as Named Entity Recognition (NER) and text chunking. By integrating a pyramid-structured gated recursive neural network with a Semi-CRF layer, the model directly learns representations for segments of varying lengths. This approach eliminates the need for manual feature engineering and outperforms traditional word-level models by capturing internal segment properties and exact lengths more effectively.
1. Introduction
Most sequence tagging tasks in Natural Language Processing (NLP)—such as text chunking or identifying named entities—are inherently about segments (groups of words), not just individual words. However, the industry standard has long been word-level modeling using Conditional Random Fields (CRFs). CRFs use tagging schemes like "IOB" (Inside, Outside, Beginning) to approximate segment awareness, but they struggle to capture the internal properties or the exact length of a segment.
While Semi-Markov CRFs (Semi-CRFs) were designed to model segments directly, they historically faced a major bottleneck in feature engineering. Manually designing features for every possible segment length is tedious and often incomplete. The grSemi-CRF addresses this by building a model that can "see" segments and learn their features automatically through a differentiable neural architecture.
2. Methodology
The grSemi-CRF consists of two primary components: a feature extractor based on a recursive convolutional structure and a segment-level CRF layer.
2.1 Gated Recursive Convolutional Neural Network (grConv)
The feature extractor builds a pyramid-like structure where the bottom layer consists of word embeddings (length-1 segments). Each subsequent layer combines two adjacent nodes from the layer below to form a representation for a longer segment. For example, a length-3 segment is built from a length-2 prefix and a length-1 suffix. This hierarchical composition mirrors linguistic intuition, where the meaning of a phrase like "United States" is derived from its constituents and their specific interaction.
2.2 Vectorial Gating
Unlike standard recursive networks, the grConv uses a "soft gate" (similar to an LSTM's gates) to control information flow from the prefix, the suffix, and their interaction. Crucially, the authors employ vectorial gating coefficients, allowing each dimension of the feature vector to be controlled independently. This provides much finer-grained modeling than scalar gating.
2.3 Semi-CRF Layer
The top of the pyramid feeds into a Semi-CRF layer that calculates the probability of a specific sequence of segments. The entire system is differentiable and trained end-to-end. A unique advantage is that supervision is applied to every node in the pyramid, helping to mitigate the "vanishing gradient" problem common in deep recursive networks.
3. Experiments and Results
The model was evaluated on two classic benchmarks: CoNLL 2000 (text chunking) and CoNLL 2003 (NER). To boost performance, the authors utilized external information including Senna word embeddings, Brown clusters, and Gazetteers.
- Text Chunking: The grSemi-CRF achieved an F1 score of 95.01, outperforming popular neural models like BI-LSTM-CRFs (94.46) and Senna (94.32).
- NER: The model achieved an F1 score of 90.87 when using gazetteers, proving competitive with the best non-neural semi-supervised models.
- Semantic Learning: Qualitative analysis showed the model successfully learned semantic clusters; for instance, the segment "Filippo Inzaghi" was mapped near other famous football players in the feature space without explicit external knowledge.
4. Conclusion
The grSemi-CRF demonstrates that automated segment-level feature extraction is both feasible and highly effective. By sharing parameters across the pyramid and using vectorial gating, the model efficiently handles segments of various lengths. Future work will explore integrating unlabeled data more effectively and developing semi-supervised versions of the architecture to leverage large-scale raw text corpora.
Summary updated