Multi Task Learning For Zero Shot Performance Prediction of Multilingual Models

Kabir Ahuja, Shanu Kumar, Sandipan Dandapat, Monojit Choudhury

Abstract

Predicting the performance of massively multilingual models on new languages without gold-standard evaluation data is a significant challenge in NLP. This paper proposes a Multi-Task Learning (MTL) framework to predict zero-shot performance by sharing knowledge across diverse tasks. By leveraging linguistic features and model-specific metrics, the authors demonstrate that MTL models, particularly Multi-Task Deep Gaussian Process Regression (MDGPR), reduce prediction errors by up to 20% for data-scarce tasks compared to single-task baselines.

Introduction

Massively multilingual models like mBERT and XLM-R exhibit impressive zero-shot capabilities, where a model fine-tuned on a source language (e.g., English) can be applied to various target languages. However, this performance is often inconsistent across different languages and tasks. To deploy these models responsibly, it is crucial to predict their performance on the thousands of languages that lack evaluation sets. Previous performance prediction methods treated tasks in isolation, often leading to overfitting due to the limited number of languages covered in standard benchmarks.

Methodology

The authors frame performance prediction as a Multi-Task Learning problem, training a single framework to learn from multiple NLP tasks simultaneously. They evaluated several MTL architectures:

  • Group Lasso: A regression technique enforcing block sparsity to identify common features across tasks.
  • Collective Matrix Factorization (CMF): A method that finds latent factors explaining performance by treating tasks as users and language pairs as items.
  • Multi-Task Deep Gaussian Process Regression (MDGPR): A non-linear approach using deep neural networks to define complex kernels for prediction.

Feature Engineering

The models utilize two primary categories of features:

  1. Pairwise Features: These include subword overlap between pivot and target languages, alongside typological similarities (syntactic, phonological, genetic, and geographical distance) from the URIEL database.
  2. Individual Features: These include the size of the target language's pre-training corpus and Tokenizer Quality, measured by "fertility" (the degree to which a tokenizer segments words into sub-word units).

Key Results and Analysis

The study utilized the XTREME and XTREME-R benchmarks, covering 11 tasks ranging from classification to retrieval. The results indicate that MTL models significantly outperform single-task regressors and simple averaging baselines.

Comparison of prediction error across various tasks and models, highlighting the superior performance of Multi-Task models like MDGPR.

As shown in the table above, the MDGPR model achieved an overall 10% reduction in Mean Absolute Error (MAE). For tasks with 10 or fewer data points, the error reduction was even more pronounced, reaching 20%. This confirms the "strength in numbers" hypothesis: tasks with limited data benefit immensely from "helper tasks" that allow the predictor to learn universal linguistic importance.

Feature Importance and Insights

Analysis of the models reveals critical insights into what drives multilingual performance. The authors used SHAP values to interpret the importance of various features across different tasks.

Mean SHAP values for Group Lasso, illustrating the relative importance of linguistic and model-specific features across different tasks.

Key findings include:

  • The Tokenizer "Fertility" Trap: High tokenizer fertility (over-segmentation) negatively impacts word-level tasks like POS tagging (UDPOS) and NER (WikiANN).
  • Geography as a Robust Proxy: While some linguistic data is incomplete, geographical distance is a consistently available and robust predictor of performance across nearly all tasks.
  • Robust Feature Selection: Unlike single-task models that may capture noise, the MTL approach (specifically Group Lasso) identifies a stable core of features that generalize across the task suite.

Conclusion

This research demonstrates that Multi-Task Learning is a powerful paradigm for zero-shot performance prediction. By sharing information across tasks, models can better navigate the data-scarce landscape of multilingual NLP. Future work may explore multi-pivot settings and deeper model-specific features, such as attention patterns, to further refine these predictions.

Summary updated

BibTeX
@inproceedings{ahuja2022multi,
  author = {Kabir Ahuja and Shanu Kumar and Sandipan Dandapat and Monojit Choudhury},
  title = {{Multi Task Learning For Zero Shot Performance Prediction of Multilingual Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=sxaONv2j_z4},
}
Figure