Predicting Performance for Natural Language Processing Tasks

Mengzhou Xia, Antonios Anastasopoulos, Ruochen Xu, Yiming Yang, Graham Neubig

Abstract

The rapid expansion of Natural Language Processing (NLP) across diverse languages and tasks has created a "cross-product explosion" that makes exhaustive experimental testing computationally prohibitive. This paper introduces NLPerf, a framework that treats NLP performance estimation as a regression problem. By leveraging language typological features and dataset statistics, NLPerf accurately predicts model performance on unseen languages and architectures. Results demonstrate that NLPerf outperforms human experts and can achieve high accuracy using only a small, strategically chosen subset of representative experiments, offering a path toward more efficient and environmentally sustainable NLP research.

Introduction

In modern NLP, researchers face an overwhelming array of choices regarding languages, tasks, and model architectures. Testing every new idea across all possible settings is mathematically impossible, often leading researchers to rely on a few "standard" languages like English or Spanish. This reliance on intuition creates comparability issues and limits our understanding of how models generalize to the thousands of other languages in existence.

The authors of the ACL 2020 paper propose NLPerf, a framework designed to "fill in the blanks" of experimental tables. By training a predictor on past results, researchers can estimate a model's performance in new scenarios without the need for full-scale execution. This approach addresses the computational and environmental costs of exhaustive testing while providing a more principled method for language selection.

Methods

NLPerf frames performance prediction as a supervised learning task using XGBoost (gradient boosting trees) to capture non-linear relationships between experimental features and final evaluation scores.

Featurization

The model utilizes two primary feature sets:

  1. Language Features: Extracted from the URIEL Typological Database, these include geographic, genetic, syntactic, and phonological distances between languages.
  2. Dataset Features: Quantitative statistics such as dataset size, vocabulary size, average sentence length, and Type-Token Ratio (TTR).

Experimental Setup

The framework was evaluated across nine NLP tasks, including Machine Translation (Wiki-MT, TED-MT), Sequence Labeling (POS tagging, Entity Linking), and Linguistic Analysis (Bilingual Lexicon Induction, Morphological Analysis). The researchers tested two scenarios: Single-Model (SM) prediction for a specific architecture across languages, and Multi-Model (MM) prediction across different architectures.

Key Results and Insights

NLPerf demonstrated remarkable accuracy in predicting performance metrics like BLEU and RMSE. In the TED-MT task, the framework achieved an RMSE of 6.04, significantly outperforming the best human expert (7.29) and a mean baseline (12.64).

Actual vs. predicted BLEU scores across varying dataset sizes for Turkish-English and Portuguese-English translation tasks.

A critical finding is the model's ability to generalize to unseen languages. On the Wiki-MT task, the predictor achieved an RMSE of 2.50 BLEU points, indicating high confidence in its ability to interpolate missing values in experimental tables.

The Power of Representative Subsets

One of the most practical contributions of this work is the identification of "representative" subsets. Using a beam-search approach, the authors found that training a predictor on just five strategically chosen datasets—selected for diversity in language family and size—yielded predictions nearly as accurate as those trained on the entire dataset.

Prediction error (RMSE) when selecting the most representative, least representative, or random subsets of languages for training the performance predictor.

This discovery challenges the common practice of testing on the most "popular" languages. As shown in the figure above, selecting the most representative languages (red line) consistently results in lower prediction error than random search or selecting the least representative languages (blue line).

Discussion and Limitations

While NLPerf offers a powerful tool for experimental efficiency, it has limitations. The model's reliability decreases when extrapolating to feature values far outside its training range, such as predicting performance on massive datasets when trained on smaller ones. Additionally, the current implementation uses categorical features for model types, which may not capture fine-grained architectural nuances or hyperparameter sensitivities.

Despite these challenges, NLPerf represents a significant step toward a more systematic and efficient approach to NLP experimentation, proving that we can move beyond intuition-based language selection.

Summary updated

BibTeX
@inproceedings{xia2020predicting,
  author = {Mengzhou Xia and Antonios Anastasopoulos and Ruochen Xu and Yiming Yang and Graham Neubig},
  title = {{Predicting Performance for Natural Language Processing Tasks}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.764},
}
Figure