Multiple Template Learning for Structured Prediction

Qi Mao, Ivor W. TsangarXiv 2011 · arXiv · OpenReview

TL;DR

This paper introduces "Multiple Template Learning for Structured Prediction" (MTLstruct), a novel framework that simultaneously learns the importance of feature templates and the structured prediction model. By formulating this as a Multiple Kernel Learning problem, MTLstruct efficiently prunes noisy templates, leading to improved performance and faster inference compared to existing methods like CRFs, Structural SVMs, and OnlineMKL.

What Problem Does This Paper Address?

Structured prediction methods like Conditional Random Fields (CRFs) and Structural Support Vector Machines (Structural SVMs) excel at tasks with interdependencies among output variables. Their success hinges on feature engineering, often done by applying predefined "templates" to extract features from input data. However, a major challenge is that these templates can be arbitrarily designed, leading to redundant or noisy features that can degrade model performance. Existing methods treat features from all templates equally, failing to leverage the varying importance of different templates. This paper addresses the need for a method that can automatically learn which templates are most informative and how to weight them effectively, allowing for the inclusion of many templates without manual tuning or performance degradation.

Methods

The core contribution is the Multiple Template Learning for Structured Prediction (MTLstruct) paradigm. This framework tackles the problem by:

  • Template Weighting as Multiple Kernel Learning (MKL): Features generated from the same template are grouped, and the learning of template weights is framed as an MKL problem. This allows the model to learn the importance of each group of features (i.e., each template).
  • Efficient Cutting Plane Algorithm: To handle the exponential number of constraints inherent in structured prediction MKL problems, the authors propose an efficient cutting plane algorithm that solves the problem in its primal form. This algorithm iteratively finds the most violated constraints and updates the model.
  • Group Sparsity: The method naturally induces sparsity in template weights, effectively pruning less informative or conflicting templates.
  • Extension to p-Block Norm Regularization: The framework is extended to incorporate generalized $p$-block norm regularization, allowing for more flexible weighting schemes.

Datasets

The proposed MTLstruct framework was evaluated on the following datasets:

  • Chinese Word Segmentation: Datasets from the SIGHAN Bakeoff (AS, MSR, CityU, PKU).
  • Named Entity Recognition: CoNLL-2002 datasets for Spanish (ESP) and Dutch (NED).
  • Dependency Parsing: CoNLL-X shared task datasets for Danish and Swedish.

Key Insights and Ideas

  • Template Importance Matters: The paper strongly demonstrates that not all feature templates are created equal. Learning to weight templates is crucial for robust and high-performing structured prediction models.
  • Pruning is Key: By learning template weights, MTLstruct can effectively prune noisy or redundant templates, leading to improved generalization and faster inference. This is a significant advantage over methods that use all generated features.
  • Batch Learning Advantage: The proposed batch learning approach (MTLstruct) offers better performance and efficiency compared to online learning methods like OnlineMKL, especially on large, sparse datasets common in NLP.
  • MKL Formulation is Powerful: Framing template weighting as an MKL problem provides a principled way to learn template importance and integrate it with structured prediction models.

Key Results

  • Performance Improvement: MTLstruct consistently outperformed CRFs and Structural SVMs across various tasks, particularly in scenarios with many templates. For instance, on the CityU dataset for Chinese word segmentation, MTLhmm was 2.1% higher in F1 score than CRFs.
  • Efficiency Gains: MTLstruct was significantly faster than OnlineMKL, especially on sparse and high-dimensional data, often by an order of magnitude. Its training time was comparable to Structural SVMs.
  • Template Sparsity: The learned template weights were often sparse, indicating that the method effectively identified and discarded unimportant templates. For example, in Named Entity Recognition, MTLhmm could remove 75 and 97 templates for ESP and NED, respectively, which OnlineMKL could not.
  • Robustness to Noisy Templates: The method showed improved performance and stability when more templates were added, even if they were noisy or redundant, unlike standard CRFs and SVMs.
  • p-Block Norm Extension: The generalized $p$-block norm regularization showed competitive performance, with $p \in [1, 2)$ being recommended for sequence learning tasks.

Limitations and Future Work

  • Computational Cost of Cutting Plane: While efficient, the cutting plane algorithm's complexity still depends on the number of iterations and the cost of solving subproblems, which can be significant for very large datasets.
  • Parameter Tuning: Like most machine learning methods, MTLstruct still requires tuning of parameters such as the regularization constant $C$.
  • Future Work: The authors suggest extending the proposed framework for structured prediction with regression outputs.

Summary updated

Abstract

Conditional random field (CRF) and Structural Support Vector Machine (Structural SVM) are two state-of-the-art methods for structured prediction which captures the interdependencies among output variables. The success of these methods is attributed to the fact that their discriminative models are able to account for overlapping features on the whole input observations. These features are usually generated by applying a given set of templates on labeled data, but improper templates may lead to degraded performance. To alleviate this issue, in this paper, we propose a novel multiple template learning paradigm to learn structured prediction and the importance of each template simultaneously, so that hundreds of arbitrary templates could be added into the learning model without caution. This paradigm can be formulated as a special multiple kernel learning problem with exponential number of constraints. Then we introduce an efficient cutting plane algorithm to solve this problem in the primal, and its convergence is presented. We also evaluate the proposed learning paradigm on two widely-studied structured prediction tasks, \emph{i.e.} sequence labeling and dependency parsing. Extensive experimental results show that the proposed method outperforms CRFs and Structural SVMs due to exploiting the importance of each template. Our complexity analysis and empirical results also show that our proposed method is more efficient than OnlineMKL on very sparse and high-dimensional data. We further extend this paradigm for structured prediction using generalized $p$-block norm regularization with $p>1$, and experiments show competitive performances when $p \in [1,2)$.
BibTeX
@misc{mao2011multiple,
  author = {Qi Mao and Ivor W. Tsang},
  title = {{Multiple Template Learning for Structured Prediction}},
  year = {2011},
  eprint = {1103.0890},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1103.0890},
}
Figure