Neural CRF Transducers for Sequence Labeling

Kai Hu, Zhijian Ou, Min Hu, Junlan Feng

TL;DR

The authors propose Neural CRF Transducers, a novel architecture for sequence labeling that combines the global normalization of Conditional Random Fields (CRFs) with the long-range label dependency modeling of RNN Transducers. By using a second RNN to model the entire history of predicted labels, the model achieves state-of-the-art results on tasks like Named Entity Recognition (NER) while avoiding the "label bias" common in locally normalized models.

What Problem Does This Paper Address?

Sequence labeling—assigning a tag to every element in a sequence (e.g., identifying "Person" or "Location" in a sentence)—is a cornerstone of NLP. Historically, two approaches have dominated:

  1. Linear-chain Neural CRFs (NCRFs): These are "globally normalized," meaning they look at the whole sequence to calculate probabilities. However, they usually only model "first-order" dependencies (e.g., the current label only depends on the previous one), missing out on long-distance patterns.
  2. RNN Transducers / Seq2Seq Models: These use an RNN to track the entire history of labels, allowing for "infinite" dependency range. However, they are "locally normalized" (deciding one label at a time), which makes them susceptible to label bias and exposure bias—where the model gets stuck in a sub-optimal path because it can't "look ahead" or correct early mistakes.

The authors aim to bridge this gap: creating a model that captures long-range label dependencies while remaining globally normalized.

Methods

The Neural CRF Transducer consists of two primary components:

  • Transcription Network ($F$): A bidirectional LSTM that scans the input observations (words and characters) to generate feature vectors for each position.
  • Prediction Network ($G$): A unidirectional LSTM that scans the sequence of labels predicted so far. This allows the model to "remember" labels from much earlier in the sentence.

The "Global" Secret Sauce

Unlike a standard RNN Transducer that uses a softmax at every step, the Neural CRF Transducer calculates a total potential score for the entire sequence. It then normalizes this score across all possible label sequences.

Because this architecture breaks the "Markov assumption" (the idea that only the immediate past matters), standard algorithms like Viterbi decoding won't work. Instead, the authors use beam search with early updates for both training and decoding. This allows the model to approximate the most likely label sequence efficiently.

Datasets

The model was evaluated on four standard NLP benchmarks:

  • POS Tagging: Penn Treebank (PTB).
  • Chunking: CoNLL-2000.
  • English NER: CoNLL-2003.
  • Dutch NER: CoNLL-2002.

The authors used standard word embeddings (GloVe, Senna) and character-level CNNs to represent the input text.

Key Insights and Ideas

  • Overcoming the Markov Limitation: By replacing the simple transition matrix of a standard CRF with an RNN-based prediction network, the model can capture complex, long-distance constraints in label sequences that a bigram model would miss.
  • Global vs. Local Normalization: The paper demonstrates that global normalization is superior for sequence labeling. Even though RNN transducers model long-range dependencies, their local normalization leads to lower performance compared to the globally normalized CRF version.
  • Task Sensitivity: Long-range dependencies matter more for some tasks than others. The improvements were significant for NER and Chunking but negligible for Part-of-Speech (POS) tagging, suggesting that POS tags are mostly determined by local context.

Key Results

  • State-of-the-Art NER: On the CoNLL-2003 English NER task, the model achieved an F1 score of 92.36 (when augmented with ELMo embeddings), surpassing previous state-of-the-art results.
  • Consistent Gains: The Neural CRF Transducer consistently outperformed both linear-chain NCRFs and standard RNN Transducers across almost all tasks. For example, in Dutch NER, it achieved an F1 of 81.84 compared to the linear-chain CRF's 81.53.
  • Robustness: The model showed better stability (lower standard deviation across runs) in tasks like Chunking compared to its competitors.

Limitations and Future Work

  • Computational Complexity: Because the model requires beam search instead of the mathematically exact Viterbi algorithm, it is computationally more expensive to train and run.
  • Search Errors: Beam search is an approximation; there is always a small risk that the "true" best sequence is pruned during the search process.
  • Future Directions: The authors suggest applying this architecture to more complex "structured prediction" tasks, such as speech recognition, where long-range dependencies between output symbols are even more critical.

Summary updated

BibTeX
@inproceedings{hu2019neural,
  author = {Kai Hu and Zhijian Ou and Min Hu and Junlan Feng},
  title = {{Neural CRF Transducers for Sequence Labeling}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2019},
  doi = {10.1109/icassp.2019.8682728},
}
Figure