Introduction
Named Entity Recognition (NER) systems traditionally rely on the Markov property, assuming that the label of a word depends only on its immediate local context. While computationally efficient, this approach fails to capture non-local dependencies. In a typical document, an entity like "Einstein" may appear multiple times in different contexts. A human reader understands that these mentions refer to the same entity, but a local model might label "Einstein" as a PERSON in one instance and an ORGANIZATION in another if the surrounding words are ambiguous.
Previous attempts to solve this, such as Skip-chain CRFs or Gibbs sampling, introduced complex "loopy" graph structures that made inference slow and approximate. This paper proposes a simpler, more efficient two-stage approach that uses "stacking" to capture global context without sacrificing speed.
The Two-Stage CRF Model
The proposed architecture avoids complex graph structures by using two sequential passes:
- Stage 1 (Baseline): A standard linear-chain Conditional Random Field (CRF) is trained using local features like word identity, part-of-speech tags, and word shapes.
- Feature Extraction: The predictions from the Stage 1 model are used to compute "Aggregator Features" for each token. These include:
- Token-majority: The most frequent label assigned to a specific word across the document.
- Entity-majority: The most frequent label for a multi-word sequence (e.g., "Bank of Australia").
- Superentity-majority: The label assigned to a larger entity containing the current word (e.g., "Australia" within "Australia Cup").
- Stage 2: A second CRF is trained using the original local features plus the new aggregator features. To prevent the model from over-relying on Stage 1 during training, 10-fold cross-validation is used to generate features for the training set.
Results and Performance
The model was evaluated on the CoNLL 2003 English NER dataset. The two-stage approach demonstrated significant improvements over the baseline and existing non-local models.
As shown in the results table, the baseline CRF achieved an F1 score of 85.29. By incorporating document-level features, the model achieved a 12.6% relative error reduction. When expanded to corpus-level features (aggregating across multiple documents), the error reduction reached 13.3%, resulting in a final F1 score of 87.24. This outperformed the Gibbs sampling approach by Finkel et al. (2005) while remaining significantly faster—inference is roughly 15 times faster than the Gibbs sampling method.
Discussion and Conclusion
A key strength of this model is its use of soft constraints. Rather than forcing all instances of a word to have the same label, the Stage 2 CRF learns when to follow the majority and when to deviate. This is crucial for distinguishing between cases like "The China Daily" (Organization) and "China" (Location).
The two-stage CRF provides a practical and effective way to incorporate global evidence into sequence labeling tasks. By stacking simple models, the authors achieved state-of-the-art performance with minimal computational overhead, proving that complex inference isn't always necessary for capturing long-distance dependencies.
Summary updated