Abstract
Fine-tuning and testing a multilingual large language model is a challenge for low-resource languages (LRLs) since it is an expensive process. While previous studies have predicted the performance of natural language processing (NLP) tasks using machine learning methods, they primarily focus on high-resource languages, overlooking LRLs and shifts across domains. Focusing on LRLs, we investigate three factors (the size of the fine-tuning corpus, domain similarity between fine-tuning and testing corpora, and language similarity between source and target languages), which can potentially impact the model performance by using classical regression models. Our results indicate that domain similarity has the most important impact on predicting the performance of Machine Translation models.
Introduction
In Natural Language Processing (NLP), low-resource languages (LRLs) often face significant hurdles due to the lack of large-scale parallel datasets. Fine-tuning multilingual models like mBART for these languages is resource-intensive. Currently, researchers often lack a reliable method to predict whether a specific fine-tuning set will yield improvements on a target test set before committing computational resources. While scaling laws provide some guidance for high-resource languages, they frequently fail to account for domain shift—the performance degradation observed when training and testing data come from different topical domains (e.g., news vs. religious texts). This study explores statistically rigorous methods to estimate Machine Translation (MT) performance for LRLs by analyzing key data characteristics.
Methodology
The research frames performance prediction as a regression task, aiming to predict spBLEU scores—a robust metric for LRLs—using three primary features:
- Fine-Tuning Corpus Size ($\phi_s$): The volume of training data (1k to 50k sentence pairs).
- Domain Similarity ($\phi_d$): Quantified using Jensen-Shannon Divergence (JSD) to measure the distributional distance between training and testing vocabularies.
- Language Similarity ($\phi_l$): Calculated via the lang2vec library, encompassing geographic, genetic, and structural distances between English and the target LRL.
The study evaluated several regression models, including linear, polynomial, logarithmic, and power-law scaling functions. The experiments focused on five South Asian languages: Kannada (KA), Gujarati (GU), Hindi (HI), Sinhala (SI), and Tamil (TA). Data sources included administrative/news data (Gov/PMI), religious texts (Bible), and Wikipedia-based benchmarks (FLORES).
Analysis of Predictors
A central finding is that domain similarity is the dominant predictor of performance. When training and testing domains are mismatched, increasing the training data size yields diminishing returns. Interestingly, linguistic features provided the least predictive value in this context. This may be attributed to the inherent similarities among the five South Asian languages studied, which likely masked the signal from lang2vec compared to the more pronounced effects of domain shift.
Furthermore, the study highlights the importance of data partitioning. Creating separate regression models for in-domain versus out-of-domain scenarios significantly improved prediction accuracy, reducing the Root Mean Square Error (RMSE).
Key Results
The statistical analysis confirms the primacy of domain similarity:
- Correlation: JSD exhibited a strong negative correlation with translation performance (Pearson r = -0.9176), indicating that lower divergence (higher similarity) consistently leads to better scores.
- Feature Importance: Random Forest analysis attributed 88.4% of feature importance to domain similarity, compared to just 7.8% for training size.
- Model Performance: A third-degree polynomial model using JSD as a predictor achieved an RMSE of 4.12.
Conclusion and Future Work
This research demonstrates that MT performance for LRLs can be accurately predicted before training, with domain similarity serving as the most critical factor. However, several avenues for future research remain. The current study was limited to four training size intervals and a single language family. Expanding the dataset to include more granular size points and a wider variety of language families (e.g., African or Indigenous American) would enhance generalizability. Additionally, exploring more refined linguistic features beyond lang2vec and testing across different model architectures like mT5 could further validate these predictive models.
Summary updated