Stacked Sequential Learning

William W. Cohen, Vitor Rocha de CarvalhoIJCAI 2005

Abstract

Stacked Sequential Learning is a meta-learning algorithm designed to enhance the performance of sequence classifiers by incorporating the predicted labels of neighboring examples into the feature set. By utilizing a two-stage training process and cross-validation to simulate real-world prediction errors, the method effectively mitigates the "label bias" and error propagation issues common in models like Maximum Entropy Markov Models (MEMMs). Experimental results across various sequential partitioning tasks demonstrate that this approach frequently outperforms state-of-the-art Conditional Random Fields (CRFs).

Introduction

In sequential partitioning tasks—such as document analysis, video segmentation, or gene finding—data often consists of long sequences where multiple consecutive instances share the same label. Standard sequence models, particularly Maximum Entropy Markov Models (MEMMs), often struggle with these tasks due to a fundamental mismatch: during training, they rely on ground-truth previous labels, but during inference, they must use their own potentially erroneous predictions. This discrepancy leads to error propagation, where a single incorrect guess can cause the model to remain in a false state for the remainder of a sequence.

Methods: The Stacking Framework

Stacked Sequential Learning addresses this by wrapping a meta-learning scheme around a "base" learner (e.g., a MaxEnt classifier or a CRF). The process involves two primary stages:

  1. Stage 1 (Cross-Validation): The training data is divided into $K$ folds. A base model is trained on $K-1$ folds and used to generate predictions for the held-out fold. This ensures that the "predicted" labels used for subsequent training stages reflect the error distribution the model will encounter at test time.
  2. Stage 2 (Feature Augmentation): The original features of each instance are augmented with the predicted labels (or log-odds confidence scores) from a surrounding window of size $W$. This window can include both historical ($W_h$) and future ($W_f$) predictions.
Figure 6: Sequential stacking architecture with a window size of W=2, showing how predictions from neighboring instances are fed into the final classification of $Y_i$.

This architecture creates a "firewall" effect. The second-stage model learns the failure modes of the first-stage learner, allowing it to correct or downweight unreliable predictions. Unlike standard Markov models, this framework easily incorporates future context without requiring complex bidirectional architectures.

Experimental Evaluation

The researchers evaluated Stacked Sequential Learning on several benchmarks, including email signature detection, FAQ document labeling, video shot segmentation, and music emotion classification. These tasks are characterized by "runs" of identical labels, making them ideal for testing robustness against error propagation.

Key Results

The stacked approach demonstrated significant performance gains over traditional sequence models. On the email signature task, a stacked Maximum Entropy learner (s-ME) achieved a 46% error reduction compared to a standard CRF (0.71% vs. 1.17% error). In the music emotion task, s-CRF reduced the error rate from 21.40% to 13.50%, a 27% improvement.

Figure 4: Error rate comparison between Stacked Maxent and other learners (Maxent, MEMM, and CRF) across various tasks. Points below the diagonal line indicate superior performance by the stacked model.

As shown in the comparative analysis, the stacked version of the learner achieved the lowest error rate in 8 out of 9 benchmark cases. The use of $K$-fold cross-validation proved essential for making the final system robust to the noise inherent in initial predictions.

Conclusion

Stacked Sequential Learning provides a simple, learner-agnostic method to improve sequence classification. By explicitly modeling the relationship between predicted labels and true outcomes, it overcomes the limitations of traditional transition-based models. While currently focused on binary partitioning tasks and requiring additional computational overhead for cross-validation, its ability to "future-proof" predictions and correct systematic errors makes it a powerful tool for complex sequential data.

Summary updated

BibTeX
@inproceedings{cohen2005stacked,
  author = {William W. Cohen and Vitor Rocha de Carvalho},
  title = {{Stacked Sequential Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2005},
}
Figure