Hostname: page-component-74656f9884-rngvg Total loading time: 0 Render date: 2026-11-06T07:42:14.774Z Has data issue: false hasContentIssue false

Ad astra or astray: Exploring linguistic knowledge of multilingual BERT through NLI task

Published online by Cambridge University Press:  09 June 2022

Maria Tikhonova*
Affiliation:
HSE University, Moscow, Russia
Vladislav Mikhailov
Affiliation:
HSE University, Moscow, Russia
Dina Pisarevskaya
Affiliation:
Independent Resercher, London, UK
Valentin Malykh
Affiliation:
Huawei Noah’s Ark Lab, Moscow, Russia
Tatiana Shavrina*
Affiliation:
HSE University, Moscow, Russia AI Research Institute (AIRI), Moscow, Russia
*
*Corresponding author: E-mail: m_tikhonova94@mail.ru; rybolos@gmail.com
*Corresponding author: E-mail: m_tikhonova94@mail.ru; rybolos@gmail.com
Rights & Permissions [Opens in a new window]

Abstract

Recent research has reported that standard fine-tuning approaches can be unstable due to being prone to various sources of randomness, including but not limited to weight initialization, training data order, and hardware. Such brittleness can lead to different evaluation results, prediction confidences, and generalization inconsistency of the same models independently fine-tuned under the same experimental setup. Our paper explores this problem in natural language inference, a common task in benchmarking practices, and extends the ongoing research to the multilingual setting. We propose six novel textual entailment and broad-coverage diagnostic datasets for French, German, and Swedish. Our key findings are that the mBERT model demonstrates fine-tuning instability for categories that involve lexical semantics, logic, and predicate-argument structure and struggles to learn monotonicity, negation, numeracy, and symmetry. We also observe that using extra training data only in English can enhance the generalization performance and fine-tuning stability, which we attribute to the cross-lingual transfer capabilities. However, the ratio of particular features in the additional training data might rather hurt the performance for model instances. We are publicly releasing the datasets, hoping to foster the diagnostic investigation of language models (LMs) in a cross-lingual scenario, particularly in terms of benchmarking, which might promote a more holistic understanding of multilingualism in LMs and cross-lingual knowledge transfer.

Information

Type
Article
Copyright
© The Author(s), 2022. Published by Cambridge University Press
Figure 0

Table 1. Statistics of the NLI datasets. Vocab size refers to the total number of unique words. Num. of words stands for the average number of words in a sample. Fr = French; De = German; Sw = Swedish.

Figure 1

Table 2. The linguistic annotation of the diagnostic dataset.

Figure 2

Figure 1. Heat map of the mBERT’s language-wise evaluation on the diagnostic datasets. The brighter the color, the higher the MCC score.

Figure 3

Figure 2. MCC scores on the English diagnostic dataset for mBERT fine-tuned with multiple random seeds.

Figure 4

Table 3. Results of the fine-tuning stability experiments w.r.t. random seeds for each language. Overall MCC = overall MCC scores of each RS model averaged by the total number of RS models. RS corr. = pairwise Pearson’s correlation coefficients between the RS models’ MCC scores, averaged by the total number of random seed pairs.

Figure 5

Figure 3. Feature-wise heat maps of the performance patterns after fine-tuning on combined RTE and MNLI training datasets. Left: Delta between MCC scores (higher is better). Right: Delta between standard deviation values (lower is better).

Figure 6

Table 4. Results of the fine-tuning stability w.r.t using additional MNLI training samples in the cross-lingual transfer setting. Overall MCC = overall MCC scores of each RS model averaged by the total number of RS models. RS corr. = pairwise Pearson’s correlation coefficients between the RS models’ MCC scores, averaged by the total number of random seed pairs.

Figure 7

Figure 4. Results of the fine-tuning stability w.r.t. the number of additional MNLI training samples added to the RTE training data for English and Russian. Overall MCC = overall MCC scores of each RS model averaged by the total number of RS models. RS corr. = pairwise Pearson’s correlation coefficients between the RS models’ MCC scores, averaged by the total number of random seed pairs.

Figure 8

Figure 5. Distribution of the model MCC scores when fine-tuned on the combined data (RTE + 10k) as opposed to the standardized dataset size.

Figure 9

Table 5. Results of the fine-tuning stability w.r.t. varying degree of the feature distribution in the MNLI subset for English and Russian. Feature MCC = feature MCC score of each RS model averaged by the total number of RS models. RS corr. = pairwise Pearson’s correlation coefficients between the RS models’ MCC scores, averaged by the total number of random seed pairs.