Exact Decoding for Jointly Labeling and Chunking Sequences

Nobuyuki Shimizu, Andrew R. HaasACL 2006

Abstract

This paper introduces a novel joint label-chunk model and an exact $O(n^2)$ decoding algorithm designed for multi-layer sequence labeling tasks, such as simultaneous Part-of-Speech (POS) tagging and Noun Phrase (NP) chunking. By addressing the error propagation inherent in traditional cascaded models, the proposed approach achieves superior performance while remaining computationally tractable compared to complex, approximate joint models.

Introduction

Natural Language Processing often involves structures that fall between simple linear chains and full syntactic trees. Tasks like noun phrase chunking require identifying both word-level labels (POS tags) and segment-level labels (chunks). Traditionally, these are handled by cascaded models: a POS tagger runs first, and its output is fed into a chunker. The primary drawback of this method is error propagation, where early mistakes in POS tagging lead to unavoidable errors in chunking.

Example of joint POS and NP labeling

While joint models like Dynamic Conditional Random Fields (DCRFs) can theoretically solve this, they are often computationally intractable for exact inference. This paper proposes a middle path: a joint model with an exact $O(n^2)$ inference method.

The Joint Label-Chunk Model

The core contribution is a dynamic programming algorithm that performs exact inference by treating the two layers as a unified structure. Unlike the $O(n)$ Viterbi algorithm for single chains or $O(n^3)$ CKY parsing for trees, this $O(n^2)$ approach offers a balance of expressiveness and efficiency.

Decoding Algorithm

The decoding process utilizes two synchronized tables to find the globally optimal sequence:

  1. label_table: Tracks the best scores for POS transitions within a specific chunk.
  2. chunk_table: Tracks the best scores for transitions between different chunks.
Joint decoding structure across two layers

By running two synchronized Viterbi-style processes—one extending the current chunk and one starting a new one—the model allows information to flow between layers. For instance, knowing a sequence is a Noun Phrase increases the likelihood that internal words are nouns or adjectives, effectively allowing the chunk layer to "correct" the POS layer.

Learning and Training

Because an algorithm for calculating marginal probabilities (the "Forward-Backward" equivalent) was not yet available for this structure, the authors utilized online learning algorithms:

  • Voted Perceptron: A robust method that averages weights over multiple passes.
  • Max-Margin (MMVP): An update rule inspired by SVMs that maximizes the gap between the correct sequence and the next-best alternative.

Experimental Evaluation

The model was evaluated on the CoNLL 2000 shared task for Base Noun Phrase Chunking. To manage the search space, the standard 45 POS tags were collapsed into five broad categories: Noun, Verb, Adjective, Adverb, and Other.

Key Results

The joint models consistently outperformed cascaded baselines with statistical significance:

  • Cascaded CRF (POS then NP): 79.08% F1 score.
  • Joint Voted Perceptron: 79.69% F1 score.
  • Joint Max-Margin (MMVP): 80.34% F1 score.

Beyond accuracy, the joint model reached peak performance in significantly fewer training iterations (10) compared to linear-chain CRFs (over 100).

Conclusion and Future Work

This research demonstrates that exact joint decoding for multi-layer tasks is both effective and tractable. Future work aims to develop a "Forward-Backward" equivalent for this $O(n^2)$ structure to enable standard maximum likelihood training. The authors also suggest applying this framework to broader tasks like relation extraction, where one layer identifies entities and the second identifies their relationships.

Summary updated

BibTeX
@inproceedings{shimizu2006exact,
  author = {Nobuyuki Shimizu and Andrew R. Haas},
  title = {{Exact Decoding for Jointly Labeling and Chunking Sequences}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2006},
}
Figure