Abstract
The neural linear-chain CRF model is one of the most widely-used approaches to sequence labeling. In this paper, we investigate a series of increasingly expressive potential functions for neural CRF models, which not only integrate the emission and transition functions, but also explicitly take the representations of the contextual words as input. Our extensive experiments show that the decomposed quadrilinear potential function based on the vector representations of two neighboring labels and two neighboring words consistently achieves the best performance.
Introduction
In sequence labeling tasks such as Named Entity Recognition (NER) and Part-of-Speech (POS) tagging, the Neural Conditional Random Field (CRF) has become a standard architecture. Traditionally, these models utilize an additive approach, separating the problem into an emission function (word-label relationship) and a transition function (label-label relationship). While effective, this approach is inherently restrictive as it often ignores complex, multi-way interactions between labels and their surrounding context.
Redesigning Potential Functions
To overcome the limitations of additive models, this research explores more expressive potential functions. Instead of treating labels as simple identities, the authors utilize dense label embeddings to capture semantic similarities between categories.
The core of the investigation lies in moving toward multilinear functions—specifically Trilinear and Quadrilinear designs—that allow variables to multiply together, capturing deeper correlations. For instance, a quadrilinear function considers the current word, the previous word, the current label, and the previous label simultaneously.
Tensor Decomposition
Directly implementing high-order tensors (like a 4D grid for quadrilinear functions) is computationally prohibitive due to quartic complexity. To maintain efficiency, the authors employ tensor decomposition (denoted as "D-" models). By breaking a massive weight grid into a product of smaller matrices, they reduce complexity to a linear scale relative to the rank. This not only makes the models nearly as fast as a standard CRF but also acts as a form of regularization, often leading to better generalization than "full" multilinear counterparts.
Key Insights and Results
Context Obfuscation and Regularization
A critical finding is the concept of context obfuscation. While BiLSTMs are designed to capture context, the specific information of a neighboring word can become diluted within the hidden state. Explicitly feeding the previous word's representation ($h_{i-1}$) directly into the potential function provides a significant performance boost. Furthermore, the low-rank constraint of decomposed models helps prevent overfitting, particularly in low-resource scenarios where training data is scarce.
Performance and Efficiency
The D-Quadrilinear model emerged as the clear winner across tasks like NER, Chunking, and POS tagging in multiple languages.
- NER Gains: Using BERT embeddings, the D-Quadrilinear model improved average F1 scores over a vanilla CRF by approximately 0.32% on English and up to 0.73% on Dutch.
- Inference Speed: Despite the increased mathematical complexity, the decomposed models remain highly efficient, matching the inference speed of a vanilla CRF.
Conclusion
This investigation demonstrates that the design of the potential function is a crucial factor in the performance of neural CRF models. By explicitly modeling the interactions between neighboring words and labels through decomposed multilinear functions, researchers can achieve state-of-the-art results without sacrificing computational efficiency. Future work may extend these designs to more complex structured prediction tasks like dependency parsing.
Summary updated