Elamur Research

On the Calibration of Massively Multilingual Language Models

Paper · 2022 · Kabir Ahuja, Sunayana Sitaram, Sandipan Dandapat et al.

Summary

A multilingual classifier can transfer a useful ability from English to another language while transferring a misleading sense of certainty. Its chosen answers may remain informative, yet the probabilities accompanying them may promise more reliability than the answers deliver. Ahuja and colleagues investigate this mismatch in multilingual and cross-lingual language processing. Their subject is calibration: whether predicted probabilities agree with the frequency of correct outcomes. The study asks how confidence behaves after language transfer, which language characteristics accompany poor calibration, and how much established correction methods can help.

The experiments examine classifiers built from mBERT and XLM-R. English supplies the initial task supervision, and other languages supply evaluation cases. The tasks cover inference between sentences, causal choices, review ratings, and paraphrase judgments. Throughout, the authors distinguish accuracy from calibration. Accuracy measures whether the selected label is correct. Calibration concerns whether the probability attached to that selection has an appropriate empirical interpretation. Adjusting probabilities can improve calibration without changing any answer; changing answers can improve accuracy without producing trustworthy probabilities.

Before correction, the average calibration error outside English exceeds the English error in every task–architecture combination reported in the initial comparison, although the size of that gap varies considerably. On XNLI, XLM-R has expected calibration error, or ECE, of 7.32 for English, 13.34 averaged over the other languages, and 19.07 for Swahili, its most poorly calibrated language in that task. mBERT has English ECE of 5.44, but its Thai result reaches 45.15. The authors also examine associations with pretraining-data volume, syntactic resemblance to English, and overlapping sub-word vocabularies. Lower representation and greater linguistic distance frequently accompany higher error, but the strength of these relationships depends on the architecture and task.

Established calibration procedures substantially improve many of these results. Temperature scaling fits a parameter governing the conversion of class scores into probabilities after training. Label smoothing changes the supervision used during training so that targets do not demand complete certainty. Both can help when their supervision comes entirely from English. For XLM-R on XNLI, combining them gives average non-English ECE of 4.89. Additional labeled material from the destination language can help further, either by fitting a local temperature or by continuing classifier training. These options have different risks: on XCOPA, continued training with the small local development sets improves some calibration measurements while reducing test accuracy.

The contribution is therefore a systematic diagnosis accompanied by practical comparisons, rather than a new architecture or an assurance that one correction works everywhere. Confidence needs its own evaluation in each language, and average behavior should be read alongside the largest observed language-specific error. The authors show that English supervision can provide useful calibration beyond English, while local labels sometimes support better correction. Their evidence remains confined to the classification benchmarks and language coverage they study. It does not establish equivalent reliability for much less represented languages, structured linguistic outputs, or unrestricted answering.

Interesting ideas

Give probabilities their own examination. A successful prediction and an appropriately qualified prediction are different achievements. Measuring both prevents improvements in label selection from concealing unreliable certainty. This distinction is useful whenever another component consumes confidence: a review queue, an information extractor, a search system, or a classifier deciding whether a case needs human attention. The transferable idea is to specify what a score claims to mean and then test that interpretation against outcomes.

Reassess reliability after transfer. Sharing an encoder or prediction interface does not ensure that confidence retains its meaning under a different input distribution. The paper evaluates destination languages directly instead of treating English behavior as sufficient evidence. The same reasoning applies to changes in genre, subject matter, document source, or processing conditions. A score’s numerical range can remain unchanged even when the evidence supporting its interpretation has shifted.

Expose unevenness behind an aggregate. A mean describes the evaluated collection, but it can conceal a particularly unreliable member. Reporting the largest observed language error alongside the average makes that unevenness visible. This is valuable for systems serving heterogeneous populations or sources, where a favorable overall result can coexist with a serious local weakness. The maximum remains an observed benchmark result, however, instead of a bound on every future case.

Restrict the correction when supervision is scarce. Temperature fitting and continued training consume local examples in different ways. The former adjusts a narrow probability transformation; the latter can reshape the classifier more broadly. Comparing them makes the amount of adaptation an explicit experimental choice. Outside multilingual classification, this suggests testing whether a limited correction can resolve the identified defect before granting a small dataset influence over a much larger decision mechanism.

Evaluate interactions between interventions. Training-time smoothing and post-training scaling operate at different stages, which gives a plausible reason to combine them. Their combined result must nonetheless be measured: several settings favor a constituent method over the combination. This lesson applies to stacked postprocessors, induced repairs, retrieval adjustments, and other pipelines. Compatibility of purpose does not establish improvement in the assembled system.

Inspect overlap below the record boundary. PAWS-X separates sentence pairs across development and test material, yet individual sentences recur. The authors consequently decline to use its local development examples for adaptation. For evaluation and benchmarking, this is a useful reminder that independence depends on the units a system can exploit. Distinct records may still share passages, entities, component sentences, or other informative material.

Use correlations to organize investigation. Pretraining coverage, syntactic similarity, and vocabulary sharing help describe where calibration deteriorates. They do not identify an isolated cause or validate a repair. Such associations are useful for prioritizing audits and formulating hypotheses, especially when direct intervention is expensive. Their value increases when exceptional cases and weak relationships remain visible rather than being forced into a single explanation.

Deep dive: On the Calibration of Massively Multilingual Language Models

Ahuja and colleagues examine confidence errors across languages and test how scaling, smoothing and local labels improve calibration. · about 35 minutes to read

How Mova uses it

Mova’s native language core combines explicit rules, learned statistical parameters, and structured representations in Rust. Its documented evaluation already includes confidence-sensitive diagnostics for pragmatic classification. The present connection is therefore concrete, but limited: those diagnostics investigate whether stronger confidence accompanies better predictions; they do not establish all the probability properties measured by this paper.

The status labels below compare proposals with documented Mova mechanisms. They describe overlap in capability, not an implementation receipt for Ahuja and colleagues’ study. A proposed addition marked new remains provisional because the available account of Mova is incomplete. The paper’s findings concern its multilingual classifiers; benefits for Mova would require separate measurement.

Idea: Evaluate the numerical meaning of confidence. Where: Section 2 and Appendix A.1. Area: statistical evaluation. Mova: частково є (prag/src/eval.rs measures correctness across confidence groups). Mova could compare a component’s stated probabilities with empirical correctness, provided those scores are intended as probabilities. Its current confidence-group analysis offers a foundation without proving calibration. Why Mova: a reproducible, explainable calculation can still assign probability values that consistently overstate its success.

Idea: Distinguish confidence ordering from probability agreement. Where: Section 2 and Appendix A.1. Area: statistics. Mova: частково є (prag/src/eval.rs reports confidence-group performance and inversions). A score may order predictions sensibly while exaggerating certainty throughout that ordering. Mova could preserve its ranking diagnostic and add a separate calibration measurement instead of naming either one as a substitute for the other. Why Mova: downstream thresholds need evidence about the numbers themselves, beyond evidence that larger scores typically identify easier cases.

Idea: Recheck confidence in every language route being assessed. Where: Section 3.2, initial transfer comparison. Area: multilingual evaluation. Mova: частково є (English core assessment and separately measured French parsing). Mova could evaluate confidence under each supported language and task condition, keeping experimental language tools distinct from its assessed English core. Why Mova: a language-specific tokenizer, repair layer, or parser can change the relationship between a score and the correctness of the resulting structure.

Idea: Display group averages together with the largest observed error. Where: Table 1 and Table 9. Area: reporting. Mova: нове. A proposed calibration report could retain the average over evaluated language routes and identify the route with the highest measured error. The exact implementation status of such a report is unknown. Why Mova: an aggregate can conceal the component or language whose confidence most needs investigation, especially when coverage expands unevenly.

Idea: Add reliability plots to confidence reports. Where: Figure 1 and Appendix A.1. Area: statistical visualization. Mova: частково є (confidence grouping in prag/src/eval.rs). Mova could show each group’s average probability beside its observed correctness and retain the grouping specification. This would expose systematic overconfidence or underconfidence that confidence ordering alone cannot reveal. Why Mova: a visual disagreement between predicted certainty and actual outcomes can help distinguish a score interpretation problem from a failure to rank difficult inputs.

Idea: Trial a narrow postprocessing correction. Where: Section 2.1, temperature scaling. Area: statistical adaptation. Mova: нове. For an appropriate classifier exposing class logits, Mova could fit a temperature using reserved development examples and assess the resulting probabilities separately from the selected labels. This proposal does not automatically apply to rule priorities or domain-coverage scores. Why Mova: when decisions are useful but their confidence is misleading, a limited correction may be easier to inspect than revising the underlying reader.

Idea: Separate shared calibration from destination-specific calibration. Where: Section 2.1, TS and Self-TS. Area: multilingual adaptation. Mova: нове. Calibration artifacts could explicitly distinguish fitting on reference-language examples from fitting on reviewed examples in a destination language. Both settings would need their own evaluation and declared scope. Why Mova: successful transfer of a correction is different evidence from local validation, and operational consumers should be able to tell which evidence supports a probability.

Idea: Make adaptation freedom depend on available evidence. Where: Section 3.2, comparison of local scaling and continued training. Area: learning policy. Mova: частково є (separate tested routes for seed revision, parameter learning, and knowledge admission). Mova could compare a constrained adjustment with broader parameter changes under the same reviewed-data budget. Why Mova: a small collection of examples should not receive unrestricted influence merely because an update procedure is available.

Idea: Investigate softened supervision for compatible learners. Where: Section 2.1, label smoothing. Area: statistical training. Mova: нове. Mova could test softened class targets in a statistical component whose objective supports them, while preserving its accuracy assessment. This would be an experiment about learned predictions, without weakening exact arithmetic or changing the status of logical evidence. Why Mova: discouraging extreme fitted distributions might improve confidence while preserving Mova’s rule-based structure and transparent interfaces.

Idea: Test combinations as independent candidates. Where: Tables 3 and 7. Area: experimental design. Mova: вже є (held-out self-play evaluation and regression gates for proposed changes). The paper reinforces the need to assess the final combination of interventions, including comparisons with each constituent. A Mova calibration experiment should follow the same discipline. Why Mova: an extra correction can interfere with a useful earlier change even when both appear individually reasonable.

Idea: Preserve predictive accuracy during calibration assessment. Where: Table 8 and Section 3.2, XCOPA discussion. Area: acceptance criteria. Mova: вже є (student accuracy requirements for changes affecting shared knowledge and features). Mova could retain a separate accuracy gate whenever a confidence intervention can alter outputs. Why Mova: improved probability agreement would otherwise conceal a reader that has become less successful at answering the actual task.

Idea: Trace calibration supervision to its source. Where: Sections 2.1 and 3.1. Area: provenance. Mova: частково є (source-bound groupants and separately admitted training material). A fitted correction could record its task, language, source version, fitting examples, and intended scope. These records would complement existing evidence contracts. Why Mova: reproducing a probability claim requires knowing which observations were allowed to shape it, not merely preserving the final parameter.

Idea: Audit reused components across splits. Where: Appendix, notes accompanying Tables 7 and 8. Area: data integrity. Mova: частково є (assessment exclusions in tools/dictindex and separate assessment boundaries). Mova could inspect sentence-level or component-level overlap when complete records contain several pieces. Why Mova: frozen test records can still lose independence if training or adaptation consumes their informative constituents through another dataset.

Idea: Keep fitting examples apart from final evaluation. Where: Section 3.1 and Appendix A.3. Area: evaluation protocol. Mova: вже є (teacher-separated assessment and held-out change evaluation). Calibration fitting should consume development evidence, while its success should be assessed against separately reserved outcomes. Why Mova: the same observations cannot provide an independent test of a correction they helped determine, even when the correction changes only a small parameter set.

Idea: Disclose exceptions to a transfer claim. Where: Appendix A.3, XCOPA selection note. Area: experimental provenance. Mova: частково є (explicit task contracts and retained execution evidence). Reports could state when destination-language labels influenced configuration selection even if they did not directly fit the advertised correction. Why Mova: a compact description such as zero-shot can obscure important supervision choices unless the complete selection procedure remains visible.

Idea: Study coverage as a diagnostic variable. Where: Section 3.2, SIZE analysis. Area: data analysis. Mova: частково є (source coverage and occurrence counts in tools/dictindex). Mova could test whether sparse lexical or constructional evidence accompanies unreliable predictions. This would be a Mova-specific analogue of pretraining representation, not an identical measure. Why Mova: evidence scarcity may help direct review towards weakly supported cases without being mistaken for proof that any particular interpretation is wrong.

Idea: Examine structural familiarity separately from word familiarity. Where: Section 3.2, SYN analysis. Area: syntax and evaluation. Mova: частково є (UD representations, language-specific rules, and treebank measurements). A reliability analysis could stratify cases by explicit construction families while recording lexical coverage independently. Why Mova: a reader may recognize the vocabulary yet mishandle its grammatical arrangement, and a single coverage statistic would conceal that distinction.

Idea: Define vocabulary overlap through a reproducible procedure. Where: Section 3.2, SWO construction. Area: tokenization and corpus analysis. Mova: частково є (tokenizers and dictionary indexing). Mova could compare fitting and evaluation vocabularies while recording normalization, segmentation, and occurrence filtering. Why Mova: apparent lexical sharing depends on preprocessing, so an overlap number should remain tied to the procedure that produced it.

Idea: Treat association as a prompt for review. Where: Tables 2 and 6, and Figure 4. Area: statistical reasoning. Mova: вже є (tools/dictindex presents statistical selectors as review candidates rather than admitted meanings). Calibration associations could prioritize investigations while leaving rule changes and dictionary admission under separate gates. Why Mova: a useful predictor of failure is not automatically a correct explanation of failure or a valid repair.

Idea: Investigate outliers without replacing the complete result. Where: Table 6, XNLI calculation excluding Thai. Area: sensitivity analysis. Mova: нове. A proposed report could retain the full association and add an explicitly labeled analysis of an exceptional language or source stratum. Why Mova: a single unusual processing failure can distort a pooled description, while silently dropping it would hide the very case needing attention.

Idea: Measure the value of additional calibration examples. Where: Figure 3. Area: annotation budgeting. Mova: нове. Mova could fit the same correction using progressively larger reviewed subsets, evaluating every setting on fixed independent material. The paper’s XNLI observation would motivate the experiment without supplying a universal sample requirement. Why Mova: a learning curve can reveal whether further review is still useful and whether the proposed correction is stable under limited supervision.

Idea: Revisit a diagnosis after increasing training evidence. Where: Figure 2 and Table 5. Area: robustness analysis. Mova: частково є (training journals and held-out parameter experiments). A reliability comparison could be repeated after an admitted expansion of training material while preserving the evaluation conditions. Why Mova: more evidence may reduce absolute error while leaving the same language or construction disproportionately unreliable.

Idea: Preserve the measurement settings behind ECE. Where: Appendices A.1 and A.3. Area: statistical reproducibility. Mova: нове. An ECE implementation could store the bin definition, aggregation unit, evaluated scope, and prediction records needed to reproduce the result. Why Mova: the metric’s name alone does not specify every measurement choice, and later comparisons become ambiguous if those choices are lost.

Idea: Distinguish repeatability from variation across fitted systems. Where: Appendix A.3, repeated-seed configuration search. Area: experimental reliability. Mova: частково є (identical-run checks and interval estimates in pragmatic evaluation). Mova could continue checking deterministic repetition while separately studying variation across data samples or admissible configurations. Why Mova: reproducing a computation exactly and estimating how broadly its result generalizes answer different questions.

Idea: Carry the scope of confidence into worker interfaces. Where: Introduction and Ethics Statement. Area: operational design. Mova: частково є (bounded capabilities, explicit failures, and review boundaries). A consumer could receive the task and calibration scope alongside a score rather than interpreting the score in isolation. Why Mova: an operational action should not treat confidence validated for one language or task as a portable guarantee.

Idea: Keep evidential status independent of predictive probability. Where: Section 2, calibration definition. Area: pragmatics and knowledge representation. Mova: частково є (typed evidentials in prag/src/frames.rs and assertion checks in world). Mova could preserve whether a proposition is reported, inferred, or directly asserted while separately evaluating the correctness of the classifier assigning that status. Why Mova: certainty about identifying hearsay does not establish the truth of the proposition being reported.

Idea: Define correctness before extending calibration to structures. Where: Conclusion, proposed sequence-labeling and answering extensions. Area: structured prediction. Mova: частково є (dependency parsing, coreference, and world-based answers). Mova could specify whether a probability concerns an attachment, a link, an entire structure, or an answer before measuring agreement with outcomes. Why Mova: scores attached to different linguistic objects require different correctness events and cannot inherit a classification interpretation without justification.

Idea: Separate the language axis from the task axis. Where: Table 1 and Section 3.2. Area: evaluation analysis. Mova: частково є (task-specific benchmarks and separate language experiments). Mova could preserve task–language results before producing broader summaries, instead of interpreting every disparity as a language effect. Why Mova: the paper’s task collections differ in language composition, making it important to avoid attributing a difficult task mixture entirely to the language route.

Idea: Make architecture comparisons explicit about configuration. Where: Section 3.1. Area: comparative evaluation. Mova: частково є (CPU reference behavior and separately characterized GPU approximants). Comparisons between Mova components could declare capacity, training, and execution differences instead of attributing an outcome to a single design label. Why Mova: observing a better result from a different configuration does not isolate which difference produced the gain.

Idea: Distinguish component calibration from application adequacy. Where: Introduction and Ethics Statement. Area: system evaluation. Mova: частково є (separate execution receipts, model observations, and admission checks). Mova could treat calibrated classification as one kind of evidence within a larger operational assessment. Why Mova: a probability correction can improve one component while leaving unresolved whether the complete action, knowledge admission, or user-facing answer is justified.

The problem and its context

Cross-lingual transfer makes a strong practical promise: task supervision gathered in one language can support useful predictions in another. The paper examines a familiar version of that arrangement. A multilingual pretrained system receives English task training and is then evaluated elsewhere. The attraction is clear when local labeled material is scarce. The unresolved question is whether its probability estimates travel as successfully as its selected answers.

The introduction describes a field that had devoted substantial attention to predictive performance. Multilingual systems had been assessed across tasks and languages, and researchers had developed approaches intended to improve transfer. The paper names adapter methods, sparse parameter updates, and limited local supervision among these approaches. Its own goal is complementary: examine the reliability of confidence produced by the resulting classifiers.

The relevant foundations include BERT and XLM-R. The introduction also mentions mBART and mT5 as examples of broad multilingual pretraining. These references establish the surrounding research setting; the actual experiments use mBERT and XLM-R. The paper does not introduce another pretraining objective or attempt a comprehensive comparison of all multilingual architectures.

Earlier calibration research gives competing reasons for optimism and caution. As the authors recount it, Guo and colleagues found that improved image-classification performance did not imply improved probability estimates. More recent image classifiers could be more accurate while displaying worse calibration. The paper connects that discussion to work on residual image-recognition networks, using vision as evidence that confidence quality deserves examination independently of accuracy.

For language tasks, the account of Desai and Durrett is more encouraging. Their pretrained transformer classifiers were comparatively well calibrated against non-pretrained baselines, including outside the training domain. But that result does not settle the multilingual case. A language change can introduce a particular kind of distribution shift, and the paper cites Ponti and colleagues for the expectation that transferred point predictions may then become miscalibrated.

The distinction becomes important when confidence influences an action. The authors discuss systems used to identify harmful speech, linking the motivation to research on offensive-language classification. A system might apply stricter responses only when its prediction appears sufficiently certain. If the confidence scale becomes unreliable in some languages, the same apparent certainty no longer represents comparable evidence across users.

This is a concern about linguistic disparity as well as individual errors. A multilingual interface can present an identical kind of probability in every supported language while its empirical meaning varies substantially. Measuring only English would not expose that variation. Neither would a report containing only accuracy, because a classifier could make reasonably useful decisions while systematically overstating their reliability.

The paper draws possible explanatory variables from earlier transfer research. Are All Languages Created Equal in Multilingual BERT? and From Zero to Hero help motivate attention to language representation and transfer conditions. Work on choosing transfer languages motivates structural similarity. These connections justify investigating candidate associations; they do not establish their causal role in calibration.

The resulting study has a clear progression. It first documents confidence behavior after transfer. It then asks whether language characteristics track the observed errors. Finally, it compares interventions under different supervision conditions. This progression matters because it keeps diagnosis, explanation, and correction distinct. Evidence that a language has poor calibration does not itself explain the cause, and an association with a language characteristic does not automatically identify an effective intervention.

The method, step by step

The study combines a standard task-training procedure with a separate evaluation of confidence. Its unit of comparison is a classifier, task, language, and calibration setting. English supplies initial task examples. The authors then collect predictions on each evaluated language and examine both correctness and probability estimates. Corrections differ in when they act and which labeled examples they can access.

From English task supervision to multilingual calibration assessment

The steps in order.

From English task supervision to multilingual calibration assessmentStep 1: Choose an encoder and classification benchmark1. Choose an encoder and classification benchmarkStep 2: Train the classifier using English examples2. Train the classifier using English examplesStep 3: Record predictions for each evaluation language3. Record predictions for each evaluation languageStep 4: Apply an English-supervised calibration procedure4. Apply an English-supervised calibration procedureStep 5: Optionally fit using local labeled examples5. Optionally fit using local labeled examplesStep 6: Compare probability reliability and answer accuracy6. Compare probability reliability and answer accuracy

Specify the event a probability describes

The formal setup begins with an input space X and a finite set of K labels. A classifier h maps inputs to labels and provides a confidence value for each candidate class. The authors introduce calibration by considering whether the probability assigned to a particular label matches how frequently that label is actually correct among comparable predictions.

p(y = k | hₖ(x) = q) = q

Here, x denotes an input and y its correct class. The symbol k identifies a class, while hₖ(x) is the probability assigned to that class. The value q is the stated probability. The left-hand side describes the actual frequency of class k among inputs receiving that value. The equality states the ideal agreement.

This definition does not require every uncertain answer to be correct. It requires uncertainty to be meaningful across a collection of cases. An individual answer supplies an outcome, but calibration is a relationship between probability assignments and outcomes over an evaluation distribution.

The experiments use a narrower operational view than inspecting every class probability separately. They take the largest predicted probability as confidence and judge whether the corresponding selected label is correct. The resulting measurements concern the reliability of the classifier’s preferred answer.

Group confidence values and compare them with outcomes

Reliability diagrams make the relationship visible. Predictions are grouped according to confidence, and each group receives an empirical accuracy. The diagram compares that accuracy with the associated confidence. Ideal agreement follows the diagonal where the two quantities coincide; departures reveal a mismatch.

The scalar measurement is expected calibration error:

ECE = Σₘ₌₁ᴹ (|Bₘ| / n) |acc(Bₘ) − conf(Bₘ)|

M denotes the number of bins. Bₘ is the set assigned to bin m, and |Bₘ| counts its examples. The total number of evaluated examples is n. The function acc returns the fraction correctly classified within the bin; conf returns the mean confidence there. Absolute-value bars around their difference prevent positive and negative discrepancies from canceling.

The factor |Bₘ| / n weights a bin according to its share of the evaluated data. A large discrepancy affecting many examples contributes more than an equally large discrepancy affecting few. This makes ECE a population summary rather than a direct measure of the most severe individual confidence error.

The authors use M = 10. Their appendix describes uniform confidence grouping, although its wording alternates between equally sized and uniform-sized bins. The important practical specification is that the same confidence grouping underlies the diagram and the weighted comparison. A reader should not interpret the metric as independent of its binning procedure.

ECE also removes the direction of disagreement. Confidence above observed correctness and confidence below observed correctness both increase the value. Reliability diagrams retain some of that directional information. This is why the visual and scalar descriptions complement each other instead of offering interchangeable presentations.

Fit a temperature after training

Temperature scaling changes the softmax conversion from raw class scores to probabilities. The raw scores are logits. A fitted parameter rescales them before normalization:

hₖ(x) = exp(oₖ(x) / T) / Σₖ′∈[K] exp(oₖ′(x) / T)

The logit oₖ(x) belongs to class k for input x. T is the temperature, exp denotes exponentiation, and [K] is the class index set. The denominator sums the transformed scores over classes, using k′ as its summation index. Normalization yields a probability for each class.

The classifier’s other parameters stay fixed while the temperature is learned. The fitting objective is development-set likelihood. This gives the intervention a deliberately narrow role: correct probability expression after the decision system has been trained.

The paper uses different names for the same mechanism under different supervision conditions. TS fits the temperature with English development examples. Self-TS fits it with development examples from the destination language. The distinction concerns the source of evidence, not a different probability transformation.

As applied here, temperature scaling preserves class ordering and therefore leaves the selected answer unchanged. Its accuracy is consequently identical to that of the corresponding unscaled classifier. This property provides a useful experimental separation between the quality of answers and the quality of accompanying probabilities.

Train with less concentrated targets

Label smoothing acts earlier. It changes the target distribution used during classifier training:

q = 1 − α

The quantity q is the target probability assigned to the recorded correct class. The smoothing parameter α specifies the mass removed from that class, with the remaining mass spread evenly across the other classes. The paper constrains α between 0 and 1 and sets α = 0.1 for its experiments.

The motivation is to discourage excessively concentrated output distributions. With a hard target, training pushes toward assigning all probability to the recorded answer. Smoothing changes that pressure. It can affect learned parameters and decisions, so its accuracy must be measured rather than assumed unchanged.

The authors connect the procedure to confidence-penalizing regularization and cite earlier evidence that smoothing can compete with temperature scaling, particularly outside the training domain. Their multilingual experiments test whether that usefulness extends across languages.

Continue training with local supervision

Few-shot learning, abbreviated FSL in the comparisons, continues task training using a limited collection of destination-language examples. The motivation differs from pure probability rescaling. Rather than leaving the predictor fixed, continued training attempts to reduce the mismatch between English task supervision and the local input distribution.

The allowed local budget is:

min(2500, |D_val(t, l)|)

The symbol t identifies a task and l a language. D_val(t, l) is the available development set for that combination, and its cardinality gives the number of examples. The minimum limits adaptation to the available set or 2500 examples, whichever is smaller.

The same local material can support temperature fitting rather than continued training. This makes the comparison especially informative: similar supervision can be given narrow influence over probabilities or broader influence over classifier parameters. The authors also combine smoothing with each route, producing Self-TS + LS and FSL + LS.

Choose architectures and training configurations

The experimental mBERT configuration has 12 layers and uses the base variant. XLM-R uses the large variant with 24 layers. The comparison therefore concerns those selected configurations, without equalizing their depth or capacity.

For configuration search, the paper lists learning rates [1e-5, 3e-5, 5e-6, 7e-6] and epoch candidates [1, 3, 4, 5]. Each candidate is evaluated with 3 seeds: 1, 11 and 22. The usual selection criterion is average English development accuracy. XCOPA departs from that rule by using development evidence across languages, because English performance did not adequately track performance elsewhere.

All experiments use batch size 8. Training relies on Adam, while LBFGS estimates the temperature. The initial temperature is T = 1.5. The authors obtain pretrained implementations through Transformers and use Calibration Framework for the calibration measurements and diagrams. Their code is released as MMLMCalibration.

Construct language-level diagnostic variables

The association analysis uses a separate representation of each language. SIZE is the logarithm of its pretraining token count. This captures representation within the pretraining corpus rather than task-specific supervised training volume.

SYN measures structural resemblance to English using syntactic features from URIEL and lang2vec. The authors follow the use of those features in earlier transfer-language research. SYN is a language-level descriptor, not a measurement of the classifier’s actual parse quality.

SWO captures overlap in sub-word tokenization vocabularies. The authors tokenize Wikipedia material for the pivot and target languages, remove items occurring fewer than 10 times, and compare the retained vocabularies:

SWO = |Vₚ ∩ Vₜ| / |Vₚ ∪ Vₜ|

Vₚ denotes the pivot vocabulary and Vₜ the destination vocabulary. The intersection contains shared items, and the union contains all distinct items appearing in either. Cardinality bars count the items in each set.

For each task and architecture, Pearson correlation relates these variables to language-specific ECE. This is an observational analysis over the available languages. It does not alter the amount of pretraining data or syntactic similarity experimentally, and it cannot separate all their relationships with one another.

Experiments and results

The benchmarks provide different kinds of classification decisions and different language collections. Their diversity makes it possible to check whether the calibration problem is confined to a single task. At the same time, differences in task design and language composition mean that cross-benchmark comparisons require care.

What the benchmarks contain

XNLI evaluates inference from a premise to a hypothesis. The alternatives are entailment, contradiction, and neutrality. English training comes from MultiNLI, while evaluation material extends across 15 languages through translation. The paper uses a sub-sampled training configuration of 40,000 examples. Its statistics list development and test sizes of 2500.

XCOPA asks the classifier to choose the alternative bearing the appropriate causal relationship to a premise. The benchmark extends COPA into 11 languages, but the authors study 9. Quechua and Haitian Creole are omitted because the selected pretrained systems had not included them in pretraining.

The XCOPA training route first uses Social-IQA and then COPA. Social-IQA supplies related questions about social situations, with a different alternative structure from COPA. The paper motivates this intermediate stage by COPA’s small English training collection. For the local calibration experiments, XCOPA’s development size is 100, and its reported test size is 400.

MARC predicts Amazon review ratings. The classifier receives review titles and bodies, while review category is excluded. There are 5 rating labels and 6 languages. The study’s sub-sampled training size is 40,000, with development size 2500 and test size 5000.

PAWS-X evaluates paraphrase judgments between sentence pairs. Its training material comes from English PAWS, while translated evaluation material supplies additional languages. The statistics list 7 language settings, training size 50,000, and development and test sizes of 2000.

PAWS-X receives special treatment. Individual sentences appear across development and test material even though complete pairs differ. The authors therefore report only calibration settings that avoid destination-language development examples. This omission preserves a clearer interpretation of the comparison instead of filling every result category.

The initial calibration gap

The starting condition, OOB, means task training without an explicit calibration intervention. Table 1 reports English ECE, average ECE over other languages, and the highest observed error among them.

For XNLI, XLM-R has English ECE 7.32 and non-English mean 13.34. Swahili produces its maximum, 19.07. mBERT has English ECE 5.44 and mean 12.34, with Thai reaching 45.15. That Thai result illustrates why the average cannot adequately describe the most severe language-specific failure.

XCOPA has comparatively large errors even in English. XLM-R records 14.54 in English and 20.07 averaged elsewhere, with Swahili at 29.33. mBERT records 23.4 in English and 23.51 elsewhere, with its maximum of 29.02 also belonging to Swahili. The near agreement between English and the average for mBERT shows that the size of the transfer disparity is not uniform.

For MARC, XLM-R records English ECE 7.15, other-language mean 9.65, and a Chinese maximum of 13.45. mBERT records 9.38, 11.11, and a Japanese maximum of 17.33. These values remain evidence of unequal reliability even though the errors are less extreme than some inference results.

PAWS-X gives XLM-R English ECE 1.93, mean 4.28 elsewhere, and a Japanese maximum of 5.88. Table 1 gives mBERT values of 3.57, 10.32, and a Korean maximum of 15.65. The paper relates the broader benchmark pattern to language composition: MARC and PAWS-X contain high-resource languages, whereas XNLI and XCOPA introduce greater diversity.

That interpretation is plausible within the reported evidence, but task and language composition change together. The comparison does not hold the task fixed while substituting a matched language collection. It establishes a pattern across these benchmarks without isolating its entire explanation.

English supervision can improve confidence elsewhere

The first correction comparison keeps destination-language labels unavailable. English development data fits TS, English task training incorporates LS, and the combined setting applies scaling after smoothed training.

XLM-R on XNLI, average ECE outside English

English-supervised corrections help, while local scaling with smoothing is strongest among the displayed settings.

XLM-R on XNLI, average ECE outside EnglishOOB: 13.34OOB13.34TS: 6.74TS6.74LS: 6.93LS6.93TS + LS: 4.89TS + LS4.89Self-TS: 5.41Self-TS5.41Self-TS + LS (this paper): 4.05Self-TS + LS (this paper)4.05FSL: 7.67FSL7.67FSL + LS: 4.36FSL + LS4.36
The numbers
System or settingECE
OOB13.34
TS6.74
LS6.93
TS + LS4.89
Self-TS5.41
Self-TS + LS (this paper)4.05
FSL7.67
FSL + LS4.36

The XNLI result demonstrates that calibration improvement can cross a language boundary even when fitting supervision does not. The English-only combination is useful for XLM-R, and local scaling with smoothing improves the reported mean further.

mBERT behaves differently within the same benchmark. Its mean ECE is 6.29 with TS, 10.42 with LS, and 6.70 with their combination. Hence, adding smoothing does not improve on temperature scaling alone in this zero-shot comparison. The strongest constituent remains an essential baseline.

XCOPA gives smoothing a more prominent role. For XLM-R, the main table reports TS at 15.95, LS at 5.47, and TS + LS at 4.52, against OOB at 20.07. For mBERT, the corresponding correction results are 20.02, 12.41, and 6.77, against 23.51.

These contrasts support the paper’s central practical finding without producing a single universal ordering. Temperature scaling often gives a stronger improvement than smoothing, but XCOPA reverses that relationship. Combining the methods frequently helps, yet the XNLI mBERT result already shows why that statement needs qualification.

MARC supplies another exception. XLM-R has mean ECE 4.22 with TS, 7.93 with LS, and 4.45 with their combination. For mBERT, the values are 6.14, 5.96, and 4.46. The same combined procedure has a different relationship to its constituents across the architectures.

PAWS-X makes the limitation of combination especially clear:

XLM-R on PAWS-X, average ECE outside English

Scaling alone improves reliability, whereas adding smoothing does not preserve that advantage.

XLM-R on PAWS-X, average ECE outside EnglishOOB: 4.28OOB4.28TS (this paper): 2.29TS (this paper)2.29LS: 3.37LS3.37TS + LS: 4.44TS + LS4.44
The numbers
System or settingECE
OOB4.28
TS (this paper)2.29
LS3.37
TS + LS4.44

The result is important because it resists a simple narrative in which more calibration machinery must improve calibration. The combined setting is not merely weaker than its best constituent; its reported ECE is also worse than the uncorrected starting condition.

Local labels change the comparison

When destination-language examples become available, the paper compares local temperature fitting with continued local training. Smoothing accompanies either procedure in additional settings.

For mBERT on XNLI, Self-TS gives 4.77, Self-TS + LS gives 4.69, FSL gives 3.14, and FSL + LS gives 2.55. On XCOPA, those settings give 20.09, 6.89, 3.75, and 3.54. In these comparisons, continued training with smoothing is particularly effective for mBERT.

For XLM-R on XCOPA, the main table gives Self-TS 16.02, Self-TS + LS 4.06, FSL 8.94, and FSL + LS 4.39. Along with XNLI, this favors local scaling with smoothing over continued training with smoothing for the selected XLM-R configuration.

MARC again alters the ordering. Continued local training without smoothing gives the lowest mean ECE reported there: 2.51 for XLM-R and 2.12 for mBERT. Smoothing changes those values to 2.58 and 3.01. Local scaling with smoothing is competitive, but not the strongest option on that benchmark.

The practical conclusion depends on architecture, task, and supervision. Local examples are useful evidence, but their best use is not predetermined. Updating more parameters is neither invariably better nor invariably worse than fitting a narrow correction.

Lower calibration error can accompany worse answers

Accuracy provides an independent check. Temperature scaling preserves it by construction. The reported smoothing settings typically remain near their uncorrected accuracy, whereas continued training can make more substantial changes.

XNLI shows a favorable case for continued training. XLM-R has mean non-English accuracy 74.9 in OOB, 79.4 with FSL, and 79.3 with FSL + LS. mBERT has 56.7, 60.6, and 61.2. These results show that local adaptation can improve answers as well as their confidence.

XCOPA presents the warning:

XLM-R on XCOPA, average accuracy outside English

Continued local training reduces accuracy despite favorable calibration results in some adapted settings.

XLM-R on XCOPA, average accuracy outside EnglishOOB (this paper): 74.3OOB (this paper)74.3FSL: 67.2FSL67.2FSL + LS: 69.5FSL + LS69.5
The numbers
System or settingaccuracy %
OOB (this paper)74.3
FSL67.2
FSL + LS69.5

For mBERT on XCOPA, OOB accuracy is 54.5, FSL accuracy is 53.0, and FSL + LS accuracy is 52.9. The authors connect this difficulty to local adaptation using development sets of 100 examples.

MARC offers a more favorable accuracy comparison. XLM-R moves from 57.7 in OOB to 59.4 with FSL; mBERT moves from 42.9 to 49.6. These outcomes reinforce the need to evaluate adaptation in context rather than treating the XCOPA failure as a general rejection of continued training.

What the ablations show

The paper studies established interventions instead of dismantling a newly introduced architecture. Its most informative controlled comparisons separate calibration procedures, supervision sources, data quantities, and language-level associations. Together, they clarify why the headline findings need several qualifications.

Post-training scaling isolates a confidence change

Temperature scaling offers an unusually clean comparison because it leaves answer selection unchanged. When ECE improves under TS, the gain concerns probability estimates instead of a different set of correct predictions.

This does not make scaling universally preferable. Its usefulness depends on whether a shared rescaling can address the actual probability distortion. But it gives the study a way to demonstrate that confidence quality can improve independently of accuracy, instead of relying only on a conceptual distinction.

Smoothing lacks that invariance because it changes training. The accuracy table therefore serves as a necessary companion to its ECE results. Continued training requires even more caution because its purpose includes adapting the prediction function itself.

The combination must beat its constituents

The comparison among TS, LS, and TS + LS tests more than whether explicit calibration beats OOB. It asks whether interventions acting at different stages provide complementary value.

The answer is conditional. XCOPA strongly supports the combination, while XNLI favors TS alone for mBERT. MARC favors TS alone for XLM-R. PAWS-X gives the combined XLM-R setting an unfavorable result even against OOB.

This pattern matters for interpreting the authors’ recommendation. The study establishes the usefulness of a family of inexpensive interventions, not the dominance of a fixed pipeline. A practitioner should preserve the separate settings in evaluation instead of assuming that the combined procedure supersedes them.

Associations are strong in some settings and weak in others

For XLM-R on XNLI, ECE correlates with SIZE at -0.8, SYN at -0.88, and SWO at -0.85. On XCOPA, the respective coefficients are -0.85, -0.73, and -0.62. These values support the account that lower pretraining representation and greater distance from English frequently accompany worse confidence.

PAWS-X gives coefficients of -0.48 for SIZE, -0.93 for SYN, and -0.92 for SWO. MARC is less strongly associated with the investigated variables: -0.41, -0.46, and -0.27. The authors consequently identify syntactic similarity as the most consistently strong negative association for XLM-R.

The mBERT analysis is less uniform. On XCOPA, SIZE correlates at -0.14, SYN at -0.22, and SWO at 0.07. These weak relationships prevent the language-factor analysis from becoming an explanation that works equally well for every architecture and task.

Nor do strong correlations isolate separate mechanisms. Languages with more pretraining material can differ in vocabulary sharing and structure at the same time. The analysis identifies a pattern in the available observations, not an intervention effect attributable to one variable alone.

Thai reveals sensitivity in the pooled mBERT analysis

The appendix reports XNLI associations for mBERT with and without Thai. With the full set, the coefficients are -0.4 for SIZE, -0.38 for SYN, and -0.41 for SWO. Omitting Thai gives -0.86, -0.88, and -0.78.

Thai also has mBERT’s most extreme XNLI calibration error. The additional calculation therefore shows that the exceptional case materially changes the aggregate relationship.

The appropriate lesson is to investigate heterogeneity. The restricted analysis cannot replace the complete result, because Thai remains a supported evaluation language. It shows that a pooled coefficient may combine a broad trend with a case that the same trend describes poorly.

Expanding English training improves values without erasing the pattern

The principal XNLI and MARC experiments use reduced training collections for computational reasons. Appendix Figure 2 examines whether the XNLI diagnosis survives training on more data, comparing 40k samples with 392k samples.

The authors report better calibration with the full collection. Nonetheless, they retain the central observation that non-English languages are poorly calibrated relative to English, with Swahili, Thai, and Urdu named among difficult cases.

This comparison addresses the possibility that the reported disparity is merely an artifact of restricted task training. More data changes the absolute quality but does not remove the qualitative language pattern in that experiment. The analysis is preliminary, however, and does not repeat every intervention at every scale.

Temperature fitting has its own data curve

Appendix Figure 3 varies the amount of destination-language material used for Self-TS on XNLI. The authors state that 500 examples suffice for low calibration error in that setting.

The significance is practical: local correction may require less supervision than broad task retraining. But the observation is attached to a particular correction and benchmark. It does not establish a general annotation budget for all languages, tasks, or kinds of confidence.

The comparison also does not settle how to allocate examples between fitting, configuration selection, and independent evaluation. A modest fitting requirement remains compatible with needing additional evidence to establish that the fitted correction generalizes.

PAWS-X places a boundary on the experiment

Avoiding local adaptation on PAWS-X is a substantive control. Repeated component sentences would complicate the claim that destination-language development material provides independent adaptation evidence.

The authors leave the corresponding result categories unreported rather than treating unique pairs as sufficient protection. This choice makes the experimental scope narrower but the interpretation clearer. It also shows why leakage analysis must follow the structure of task inputs rather than stopping at record identifiers.

Limitations

Limits explicitly identified by the authors

Language coverage is the principal stated limitation. The selected benchmarks range from 6 languages for MARC to 15 for XNLI. The pretrained systems support around 100 languages, leaving a substantial gap between broad technical support and direct evidence about confidence.

The evaluated languages are also concentrated towards better-resourced settings. The paper identifies Swahili as the lowest-resource language studied, while acknowledging that supported languages can have still less pretraining representation. The results therefore cannot establish how reliably the proposed procedures work at the sparsest end of multilingual coverage.

This is partly a measurement problem. Calibration assessment requires correct labels against which probability estimates can be compared. Where suitable evaluation resources are absent, running a classifier on more unlabeled text does not answer whether its certainty is warranted. The paper connects this constraint to broader concerns about linguistic inclusion.

The authors also identify task coverage as unfinished. Their experiments address classification. They propose extending the investigation to sequence-labeling tasks and question answering, but do not supply results for those settings. A confidence event for an entire answer or labeled sequence may differ from the event evaluated by a sentence classifier.

Computational expense is another stated limitation. Searching settings and seeds across tasks and languages required substantial GPU resources. The reported hardware includes NVIDIA V100 and P100 devices, with 32GB and 16GB memory respectively. The authors distinguish that broad research cost from the comparatively limited extra computation required by an individual calibration procedure.

They also leave unsupervised correction under distribution shift for future investigation. Such methods could occupy a useful middle ground between English-only supervision and collecting destination-language labels. The paper motivates that direction through earlier work, but does not evaluate an unsupervised multilingual solution itself.

Additional cautions from the experimental design

The architecture comparison does not isolate a single cause of differences between mBERT and XLM-R. Their selected configurations have different depths and capacities, alongside other differences. A lower ECE establishes an outcome for those configurations, not proof that one architectural property explains it.

The transfer terminology also needs precision. English supplies initial task training, and the zero-shot calibration methods avoid local examples when fitting their corrections. However, XCOPA configuration selection uses development information across languages. Its complete experimental procedure therefore contains a supervision exception that should remain attached to interpretation of the results.

The correlation analysis cannot establish causation. SIZE, SYN, and SWO are descriptors that vary across languages. The experiments do not independently manipulate each descriptor while controlling the others. Even strong relationships cannot specify how much calibration would improve if a particular source of similarity or representation were changed.

Language collections also differ across tasks. The authors reasonably connect more difficult calibration on XNLI and XCOPA with their more diverse language coverage, but the comparison changes the task at the same time. It is not a matched experiment isolating language diversity from classification difficulty, annotation conditions, or available training evidence.

ECE is limited by its aggregation. A low value does not certify every class, source, confidence range, or subgroup. Its use of absolute gaps also discards the direction of error. An application sensitive to overconfident mistakes may require information beyond a single average discrepancy.

The paper’s initial formal calibration statement concerns probabilities assigned to a class. Its practical ECE uses confidence in the selected class. That measurement is useful, but it does not establish that every entry in the full class distribution satisfies the stronger label-wise interpretation.

The sensitive applications motivating the study are not experimental deployments. The benchmarks do not evaluate account restrictions, fraud investigations, or legal decisions. Improved probability estimates are relevant to those concerns, but they cannot establish that an entire application is safe, appropriate, or fair.

The few-shot recommendation is similarly conditional. XCOPA demonstrates that broad adaptation with scarce local examples can harm accuracy. It does not identify a universal amount of supervision below which continued training must fail or above which it becomes reliable. Task structure and architecture remain important.

Several reported values differ slightly across the paper’s tables. For example, the main XNLI comparison gives XLM-R TS + LS as 4.89, while the detailed table gives 4.9. PAWS-X mBERT OOB is 10.32 in the initial comparison and 10.33 in the later calibration table. These differences should remain attributed to their locations rather than silently reconciled.

The description of COPA data also contains a discrepancy. The dataset discussion refers to 400 English training examples, whereas the statistics table lists 33,410 for S-IQA and 500 for COPA. The staged training strategy is clear, but those counts do not justify reconstructing an unreported unified procedure.

Finally, calibration always concerns a specified population of predictions. Benchmark success does not establish that the same fitted correction remains appropriate after changes in topic, genre, language usage, or operational selection. The study demonstrates useful improvements under its evaluation conditions while leaving continuing distribution change unresolved.

What came after

The later citing works connect this study with broader questions about multilingual coverage and the organization of multilingual research. The available citation information establishes those connections, but does not describe a specific replication, extension of the calibration experiments, or adoption of the paper’s correction pipeline.

When Is Multilinguality a Curse?, published in 2024, concerns language modeling across 250 languages spanning high- and low-resource settings. Its stated scope intersects with a central unresolved issue in Ahuja and colleagues’ study: multilingual support extends well beyond the languages for which reliability has been directly measured. The citation connects the works, but does not establish whether the later study evaluates calibration, uses temperature scaling, or revisits the reported correlations.

Multilingual Large Language Model: A Survey of Resources, Taxonomy and Frontiers, also from 2024, places the citation within a broad survey of multilingual research. Its title identifies resources, classification of approaches, and research directions as its scope. The available account does not specify how the survey interprets this calibration study or which findings it emphasizes.

A more detailed technical lineage would require evidence about those later works’ methods and discussions. Their citation alone cannot show that the original corrections became standard practice or that later experiments resolved the weaknesses identified here.

The lasting question is nonetheless clearly defined by the original experiments. Multilingual capability has a probability dimension as well as an accuracy dimension. Extending the set of languages a system can process creates a corresponding need to examine what its confidence means in each setting. Ahuja and colleagues show that this examination can uncover disparities missed by answer accuracy alone, and that relatively constrained interventions can frequently improve the situation without eliminating the need for local evaluation.

Cite

Cite as Kabir Ahuja, Sunayana Sitaram, Sandipan Dandapat and Monojit Choudhury. 2022. On the Calibration of Massively Multilingual Language Models. Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2022.emnlp-main.290

@inproceedings{ahuja2022calibration,
  title = {{On the Calibration of Massively Multilingual Language Models}},
  author = {Kabir Ahuja, Sunayana Sitaram, Sandipan Dandapat and Monojit Choudhury},
  booktitle = {Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.290},
  url = {https://doi.org/10.18653/v1/2022.emnlp-main.290}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/ahuja-2022-calibration-massively-multilingual-language-models/