Cross-Lingual Transfer and Alignment › Transfer Diagnostics

Michael BrenndoerferNovember 26, 20265 min read
Language AI HandbookAll chapters
Part 26 of 67Multilingual Language Models and Cross-Lingual Transfer
Chapter 186Cross-Lingual Transfer and Alignment › Transfer Diagnostics
Reading section 6 of 11 · Transfer Diagnostics · 5 minSection 6 of 11 · 5 min

Section 6 of 11 · 5 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Report the evaluation protocol with the zero-shot score. Check data provenance, target-language access during tuning, and how well the task head performs on source-language inputs.

The transfer gap

The transfer gap is the difference between source-language and target-language accuracy:

Δ=Accsource−Acctarget\Delta = \text{Acc}_{\text{source}} - \text{Acc}_{\text{target}}

Report the measured gap for each language and task. A negative gap means the target scored higher. Examine test set composition and variation across runs before interpreting its sign.

For example, accuracies of 87% in English and 60% in French give a 27-point gap. Accuracies of 68% and 62% give a 6-point gap. The second model has higher French accuracy and a smaller gap in this comparison. Use both numbers when selecting a model.

Language similarity and typology

Script, word order, and morphology are reasonable hypotheses to test when transfer varies across language pairs. Hold the task and metric fixed while measuring candidate explanations.

  • Script: compare actual subword overlap and tokenizer coverage by language.
  • Word order: include examples that exercise the order changes your task needs to handle. Measure whether the task head preserves the intended distinction.
  • Morphology: an inflected Turkish form can align to several English tokens. Compare link coverage at the word or span level when unit lengths differ.

These effects are visible in the typology described in Language Diversity, Typology, and Scripts. They also interact with tokenization: at a fixed token limit, higher tokens per word leave room for fewer words of context. We covered the tokenization-specific effects in Tokenization Challenges.

Script and tokenization effects

mBERT trained on multilingual Wikipedia and XLM-R trained on Common Crawl. Compare the coverage of your tokenizer directly on matched text before attributing a transfer gap to script or vocabulary allocation. Pires et al. (2019), §2 · Conneau et al. (2020), §3.2

Suppose parallel segments have the same number of words, with 1.1 and 2.5 tokens per word. The second segment uses about 2.27 times as many tokens. At a fixed model-side token budget with truncation, it can leave less room for surrounding text. Measure segmentation and context coverage before interpreting a transfer gap.

Probing cross-lingual representations

A cross-lingual probe fits a readout on source-language hidden states and measures its accuracy on target-language states. Hewitt and Manning’s structural probe asks whether transformed vector geometry recovers syntactic tree distances. A probe for part-of-speech labels uses a different target. Report what the tested readout recovered. Hewitt and Manning (2019)

Probing surfaces two failure modes.

  • Shared but shallow: A probe recovers surface patterns rather than deep structure. Cross-lingual probe accuracy may reflect shared tokenization rather than shared semantics. A part-of-speech probe can learn that a particular token type often has a particular tag. A word-type control task helps check whether the probe can memorize that association. Hewitt and Liang (2019)
  • Weak readout: low target accuracy can reflect a missing feature, a change in how it is encoded, or a readout that fails on the tested sample. Compare probes and downstream adaptation before drawing a conclusion.

Contamination and evaluation pitfalls

This is the most important diagnostic paragraph in the chapter.

Check benchmark provenance against records for the model and training version in question. MUSE provides bilingual word-translation dictionaries; sentence benchmarks use different evaluation units. Audit each benchmark separately for exact and near matches. MUSE project documentation

A match to actual fitted training data is evidence of exposure. Measure score sensitivity separately, for example by comparing results on verified matches and nonmatches while checking for differences in difficulty. Report uncertainty when interpreting a two-point difference.

Mitigation is imperfect but worth doing.

  • Where the training cutoff is verifiable, use a held-out benchmark created after it and check whether its underlying material is older.
  • Compare benchmark content and publication history with the training records you can inspect.
  • Fit a shuffled-label baseline on the same source inputs, repeat it across seeds, and compare the target score with both the trained model and a class-frequency baseline.
  • Compare multiple test sets. If rankings change, inspect their languages, tasks, and overlap before assigning a cause.

The companion chapter on Cultural and Multilingual Evaluation develops these points in more detail.

A practical diagnostic checklist

Before you trust a zero-shot number, check:

  • Gap: report the source and target scores with their uncertainty and coverage.
  • Baseline: compare with an explicit class baseline and a translation-based baseline when the required translation system is available.
  • Script: test how the deployed tokenizer encodes the target script. With a fixed deterministic tokenizer, the same input gives the same token sequence. Check the language model’s training records separately for exposure to that script.
  • Tokens: measure tokens per word and the length of text covered under the same token budget.
  • Probe: test the readout for the property you need on held-out examples and compare it with a lexical control.
  • Contamination: audit available training records and keep evidence of exposure separate from test-score changes.
  • Ablation: compare repeated shuffled-label fits with the majority baseline and inspect data splits, seeds, and evaluation code if the scores are surprising.

Use the checks to describe the evidence for this model and test set. Report uncertainty and any remaining alternative explanations.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy