Optimizing to Arbitrary NLP Metrics using Ensemble Selection

Art Munson, Claire Cardie, Rich CaruanaEMNLP 2005

Abstract: While there have been many successful applications of machine learning methods to tasks in NLP, learning algorithms are not typically designed to optimize NLP performance metrics. This paper evaluates an ensemble selection framework designed to optimize arbitrary metrics and automate the process of algorithm selection and parameter tuning. We report the results of experiments that instantiate the framework for three NLP tasks, using six learning algorithms, a wide variety of parameterizations, and 15 performance metrics. Based on our results, we make recommendations for subsequent machine-learning-based research for natural language learning.

Introduction

This paper addresses a fundamental friction in machine learning for Natural Language Processing (NLP): the "metric mismatch." While most standard machine learning algorithms are hard-coded to optimize for simple accuracy or mean squared error, real-world NLP tasks often require optimizing for complex, task-specific metrics like F-measure, MUC-F1, or Area Under the ROC Curve.

In NLP, data is frequently skewed—for example, in entity recognition, "non-entity" tokens vastly outnumber "entity" tokens. In these cases, a model with 99% accuracy might actually be useless if it misses all the rare cases. Traditionally, researchers solve this through manual hyperparameter tweaking and algorithm switching. This paper evaluates an automated alternative: the Ensemble Selection framework.

The Ensemble Selection Framework

The authors employ a framework originally proposed by Caruana et al. (2004) to build a library of diverse models and greedily combine them to optimize for any arbitrary performance metric. The process follows these steps:

  1. Build a Model Library: Train a massive variety of base models (over 700 in this study) using six different algorithms: Bagged Decision Trees, Boosted Stumps, K-Nearest Neighbor, Rule Learners (RIPPER), SVMs, and Logistic Regression.
  2. Vary Hyperparameters: For each algorithm, a wide range of settings are used to ensure diversity in the library.
  3. Greedy Selection: Starting with an empty ensemble, the algorithm iteratively adds the model from the library that most improves the ensemble's performance on a specific target metric, calculated on a validation set.
  4. Selection with Replacement: Models can be added multiple times, effectively weighting high-performing models more heavily in the final average prediction.
Table 1: Algorithms and parameter ranges used to build the model library.

Experimental Setup

The framework was tested on three distinct NLP tasks:

  • Noun Phrase Coreference Resolution: Identifying which noun phrases in a document refer to the same entity (using the MUC-6 corpus).
  • Identifying Private State Frames (PSF): Detecting subjectivity and opinions in text (using the MPQA corpus).
  • Determining PSF Hierarchy: Identifying the nested structure of sources in subjective language.

Key Results and Insights

The study highlights that relying on an algorithm's default settings is a major gamble. In the coreference task, the "best" algorithm changed 7 out of 10 times once proper tuning was applied. Furthermore, no single algorithm or parameter configuration performed best across all tasks or even all metrics within a single task.

Table 3: Comparison of performance gains from parameter tuning (Best TunedΔ) and ensemble selection (Ens. Sel.Δ) across three NLP tasks.

Performance Gains

  • Tuning Gains: Simply automating the search for the best single model and parameters yielded average performance gains between 2% and 10%.
  • Ensemble Edge: The ensemble approach was most successful for "aggregate" metrics—those that measure performance by combining multiple predictions (like MUC-F1 or B3F1). In the coreference task, the ensemble optimized for F1 outperformed the best single "tuned" model by 1% and the best "default" model by nearly 8%.
  • Consistency: Out of 154 test cases, tuned classifiers outperformed default classifiers 114 times.

Limitations and Future Work

Ensemble selection is not a "magic bullet." For the PSF Hierarchy task, the ensemble actually performed slightly worse than the best single model, likely due to overfitting on the tuning set. The authors suggest that the size of the model library and the amount of tuning data are critical factors. Future work is needed to determine the "safety limits" of ensemble selection to prevent the greedy search from chasing noise rather than signal.

Summary updated

BibTeX
@inproceedings{munson2005optimizing,
  author = {Art Munson and Claire Cardie and Rich Caruana},
  title = {{Optimizing to Arbitrary NLP Metrics using Ensemble Selection}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2005},
  url = {https://openreview.net/forum?id=SyZVCM-_bS},
}
Figure