Cross-Lingual Transfer and Alignment

Michael BrenndoerferNovember 26, 202643 min read

Learn how cross-lingual transfer works: shared representations, zero-shot and translate-train designs, alignment objectives, adapters, diagnostics, and evaluation.

Language AI HandbookAll chapters
Part 26 of 67Multilingual Language Models and Cross-Lingual Transfer
Chapter 186Cross-Lingual Transfer and Alignment
Reading the full chapter · 11 sections · 43 min11 sections · 43 min

All 11 sections · 43 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Cross-Lingual Transfer and Alignment

Suppose you have named-entity labels in English and need to find entities in Swahili. A multilingual encoder has seen both languages during pre-training, but its tagging head learned from English examples. Cross-lingual transfer asks how much of that task knowledge survives the switch to Swahili, and what you can do when it fails.

Multilingual Pre-training and Data Balancing describes how to train a model across many languages. Here we look at which features carry across languages, what alignment objectives and adapters change, and how to measure the result. To reuse a classifier across languages, check whether the target inputs preserve the features and decisions the classifier learned from source examples.

The chapter is organized around four questions.

  • When can a task head fit on one language work on another? Check which features it reads and whether translation changes the decision.
  • Which transfer designs are available? Zero-shot, translate-train, translate-test, multilingual fine-tuning, and pivots put multilingual work at different stages.
  • Which objective fits the task? Compare paired token prediction, sentence retrieval, word links, and modular adaptation on the task you need.
  • Which diagnostics separate cross-lingual generalization from tokenization artifacts, script effects, and benchmark contamination?

A source-only training protocol lets you fit the task head before collecting target-language training labels. Use target-language test labels to measure how well it transfers and check which features the model uses.

Why Cross-Lingual Transfer Works

The shared representation hypothesis predicts that corresponding inputs can have compatible features for a task head. “Dog,” “chien,” and “Hund” are useful to the same classifier when their representations preserve the cues it reads.

The shared representation hypothesis

Shared Representation Hypothesis

For a specified encoder and task, equivalent inputs in different languages can retain features that a shared task head can read. The prediction depends on which directions in the representation the task head uses.

Let xenx^{\text{en}} be an English sentence and xfrx^{\text{fr}} its French translation. One encoder fθf_\theta produces hen=fθ(xen)h^{\text{en}} = f_\theta(x^{\text{en}}) and hfr=fθ(xfr)h^{\text{fr}} = f_\theta(x^{\text{fr}}). Even when the two vectors are close, they can fall on opposite sides of a classifier's decision boundary. For a binary linear score s(h)=w⊤h+bs(h) = w^\top h + b, the score changes by at most ∥w∥2∥hfr−hen∥2\|w\|_2 \|h^{\text{fr}} - h^{\text{en}}\|_2. If this bound is smaller than ∣s(hen)∣|s(h^{\text{en}})|, the prediction stays the same.

This gives a way to interpret zero-shot transfer. A classifier that makes the correct English prediction can reuse it on the French input when that input stays on the same side of the boundary. For a multiclass linear head, picture a boundary between the winning class and each of its competitors. A translation can move through the embedding space while leaving the winner unchanged.

What matters is how far a translation moves in the directions the task head reads. A large change in features the head ignores can leave the prediction intact. A small change along a task-relevant direction can flip a prediction that was already close to its boundary.

A small geometric sketch makes the claim concrete: each concept has a center, and its translations sit near that center with fixed language-specific offsets.

PythonIn [3]
CollapseExpand
rng = np.random.default_rng(SEED)
concept_centers = {"dog": (0.25, 0.45), "cat": (-0.25, -0.25)}
translation_offsets = {
    "English": (0.02, -0.03),
    "French": (-0.10, 0.10),
    "German": (0.14, 0.07),
}
cluster_spread = 0.18
geometry_rows = []
for concept, center in concept_centers.items():
    for language, offset in translation_offsets.items():
        jitter = rng.normal(0.0, cluster_spread, size=2)
        geometry_rows.append(
            (
                concept,
                language,
                center[0] + offset[0] + jitter[0],
                center[1] + offset[1] + jitter[1],
            )
        )
geometry_x = np.array([row[2] for row in geometry_rows])
geometry_y = np.array([row[3] for row in geometry_rows])
geometry_labels = [
    f"{concept}: {language}" for concept, language, *_ in geometry_rows
]
VisualizationOut [4]
CollapseExpand
English, French, and German points for dog and cat. The closest dog–cat pair is about 0.33 units apart, less than the dog group’s span of about 0.50.
Six synthetic points sketch translations grouped around dog and cat concept centers. The closest cross-concept points are about 0.33 units apart, while the widest within-concept span is about 0.50 units. Proximity can help transfer when the task’s decision boundaries are also preserved.

What training signals create shared representations

Shared parameters, vocabulary, and training objectives are design choices that can affect the features a task head sees. Measure their effects on the languages and tasks you care about.

Parameter sharing across languages. XLM-R Base has 12 encoder layers and XLM-R Large has 24. Each checkpoint uses a shared multilingual encoder trained with masked prediction. Shared weights leave the encoder free to specialize its representations for different inputs. Conneau et al. (2020), §3.1

A shared subword vocabulary. XLM-R uses a 250,000-token SentencePiece vocabulary. To see which input units are shared for a language pair, compare the actual token IDs for cognates, loanwords, numbers, and punctuation. Shared token IDs establish a common input embedding. Their contextual representations can still differ. Conneau et al. (2020), §§3.1, 5

Language information. XLM-R’s authors report that the model uses no language embeddings. A model can still recover cues about language from the input, including its script and vocabulary. Check whether a task head relies on language-related features with a probe or a controlled input change. Conneau et al. (2020), §3.1

Parallel data during pre-training. XLM introduced translation language modeling. It predicts masked tokens using paired translations as context. XLM-R learned by predicting masked tokens in multilingual Common Crawl text. mT5 used a denoising objective on mC4. The XLM-R and mT5 pre-training objectives did not use sentence translation pairs. In both cases, training a single model across languages lets shared parameters and a shared vocabulary contribute to alignment. XLM, XLM-R, mT5

Use an objective that matches the output you need. Paired sentences directly supervise translation ranking. Shared masked prediction supplies a different signal. Compare the candidates on the same language pairs, domains, and metric.

Evidence for shared representations

Three measurements are useful here. Sentence retrieval tests whole-input matches, word alignment tests token correspondences, and probes test what a particular readout can recover.

Sentence level. Use a multilingual sentence encoder to measure cosine similarity for matched translations and plausible mismatches from the same domain. A high score for a translation is useful only if candidate mismatches tend to score lower. Retrieval measures how often the intended match ranks ahead of other candidates. The score distributions depend on the model, language pair, and evaluation sample.

Word level. For a parallel sentence pair, score candidate word links and compare the selected links with annotated alignments. In a display sorted by known correspondences, high scores can appear in corresponding blocks. A word-level link test can inform a token-tagging experiment. Evaluate the tagging task separately.

Probing level. Fit a simple classifier on English hidden states to predict a particular feature, such as a part-of-speech label. Apply the same readout to French or German and compare it with label-frequency and lexical baselines.

Report what each result measures. Retrieval measures where a translation ranks among candidates. Word alignment estimates links between individual units. A probe measures whether its readout can recover the selected label under the test protocol.

Where the hypothesis breaks

Alignment is not universal, and the failures tell us as much as the successes. A working engineer should assume the hypothesis holds partially, check the specific conditions of their task, and design around the failure modes.

Language-specific features can coexist with shared cues. Zhao et al. analyze this possibility in mBERT by estimating and subtracting a per-language component before evaluating word alignment and sentence retrieval. Their result concerns the tested representations and tasks. Zhao et al. (2020)

Independently learned embeddings can also be mapped across languages. MUSE initializes a mapping between monolingual word embeddings adversarially, builds a synthetic dictionary, and refines the mapping with orthogonal Procrustes. Its CSLS retrieval score adjusts cosine similarity using neighboring similarities. This experiment concerns word embeddings and bilingual lexicon induction. Conneau et al. (2018), §§2.2–2.3

Compare language-pair differences with the task held fixed. Pires et al. observe transfer across some different-script language pairs in mBERT and a relationship between transfer and typological similarity on their evaluated tasks. Use script, word order, and morphology as candidate predictors in your own comparison. Pires et al. (2019)

The Transfer Taxonomy

These five designs place multilingual work at different points in the pipeline. The signal can come from annotation, machine translation, or pre-training. A system can combine designs, such as multilingual fine-tuning followed by translation at inference.

Zero-shot transfer

Train a model on labeled source-language examples, then run it directly on target-language inputs. Keep target-language labels for evaluation if they are available. The English-to-French example later in this chapter uses that setup. The training and evaluation calls below are pseudocode.

Code
CollapseExpand
train = load_labeled_train(language="en")
model.fit(train)
for lang in ["fr", "de", "sw"]:
    predictions = model.predict(load_test_inputs(language=lang))
    report_accuracy(predictions, load_test_labels(language=lang))

Reserve target-language test labels for scoring. A source-only classifier may also exploit label frequency or a surface feature that appears in both datasets. Compare against controls before attributing above-chance accuracy to alignment.

Translate-train

Translate the labeled source training examples into the target language. Keep an example-level label when the translation preserves what the label describes. For token or span labels, project the annotations onto the translated text and verify the new boundaries, or reannotate the translations. Compare the fitted model with source-only transfer on the same test split. Ebing and Glavaš (2025)

A translated training set can differ from target text written for the task. Audit translation errors and check whether their patterns differ across classes. Evaluate translated and natively written inputs separately when both matter for the deployment.

Translate-test

Translate target inputs into the source language and apply the source-trained model. For a span task, map the predicted spans on the translation back to offsets in the original text. Evaluate those returned spans against the original-text annotations. Include translation latency and check whether the translation preserves cues the task needs, such as a morphological marker or original spelling. Yang et al. (2022)

Multilingual fine-tuning

Fit on labels from several languages and report which languages supplied them. Compare with the source-only setup at matched evaluation conditions. Test an unseen language explicitly if you want to make a generalization claim.

Pivot-based transfer

A pivot composes two translation steps through a bridge language. For example, route source text through English before converting it to the target. Check accuracy and latency for the full route. An error in the first step can change the input the second step receives.

Choosing among them

The choice depends on three coordinates.

  • If target-language labels are available for training, compare a multilingual or target-supervised fit with your English-only baseline.
  • Compare translation-based approaches using the actual MT systems available for the language pair.
  • For inference-time translation, measure latency and check where the input is processed. Run locally when the deployment requires local processing.

When target labels are scarce, zero-shot transfer and reusing a task adapter are two ways to avoid training a separate task model on target labels. Low-Resource and Endangered Languages examines these constraints in more detail.

Alignment Objectives

Alignment objectives give the optimizer a direct signal about which representations or predictions should agree across languages. In the examples below, some objectives supply a paired translation as an extra source of context, and others train a model to rank translations ahead of mismatches. Compare these approaches on the language pair and task you intend to use.

Translation Language Modeling

XLM introduced translation language modeling (TLM) as a version of masked language modeling for parallel data. Join a sentence and its translation, mask tokens in both, and use the available context from either language to predict the masked tokens. XLM, §3.4

For example, pair "The cat [MASK] on the mat" with "Le chat s'est assis [MASK] le tapis." The French verb can help recover the missing English verb, and the English preposition can help recover the masked French preposition. XLM resets the position indices for the target sentence, and a token in either half can attend to the other half.

The loss is still cross-entropy over the vocabulary at each masked position. The difference is the context used to compute the logits. The masked English position can now draw on the French half, so improving those predictions rewards the model for using information in the translation.

Cross-lingual contrastive learning

Sentence-level contrastive learning scores whole sentences. Given a batch of BB pairs (ai,pi)(a_i, p_i) where aia_i is a sentence in one language and pip_i is its translation, the row-wise objective raises sim(ai,pi)\text{sim}(a_i, p_i) relative to sim(ai,pj)\text{sim}(a_i, p_j) for j≠ij \neq i.

InfoNCE Loss

Given a batch of normalized anchor embeddings a1,…,aBa_1, \dots, a_B and target embeddings p1,…,pBp_1, \dots, p_B:

LInfoNCE=−1B∑i=1Blog⁡exp⁡(sim(ai,pi)/τ)∑j=1Bexp⁡(sim(ai,pj)/τ)\mathcal{L}_{\text{InfoNCE}} = -\frac{1}{B}\sum_{i=1}^{B} \log\frac{\exp(\text{sim}(a_i, p_i)/\tau)}{\sum_{j=1}^{B} \exp(\text{sim}(a_i, p_j)/\tau)}

where τ>0\tau > 0 is a temperature and sim\text{sim} is cosine similarity.

Each row compares the designated translation with the other candidates. With one candidate the loss is zero. With B>1, equal scores give log B. For example, when two targets in the batch are valid paraphrases of one anchor but only one is paired with it, the other still appears in the denominator as a competing candidate.

LaBSE uses a related contrastive recipe: bidirectional translation ranking with an additive-margin objective that subtracts the margin from the matched pair’s score during training. SONAR's text encoder uses a different recipe that combines translation, denoising autoencoding, and a mean squared error term between embeddings of paired translations. Both produce sentence embeddings for multilingual retrieval. LaBSE, §2 and SONAR, §5.5

Word alignment objectives

Sentence-level alignment supports retrieval and similarity. Word alignment is useful when the output needs to connect individual tokens across languages, for example when projecting NER tags through a parallel corpus. Statistical methods such as IBM Model 4, fast_align (Dyer et al. 2013), and eflomal fit alignment models to bitext and can return discrete links between words.

Embedding-based methods can score word correspondences before selecting discrete links. SimAlign uses pretrained multilingual embeddings and extracts links from token similarities without fitting an aligner on parallel training data. Awesome-align can fine-tune a multilingual encoder on parallel text. Its extraction code supports softmax and entmax thresholding. The paper also evaluated optimal transport, which was slower and performed worse in its comparison. SimAlign, §2.1, Awesome-align paper, §§2.1 and 4.2, and Awesome-align toolkit

Use word alignment diagnostics when the transfer task depends on projecting labels. Evaluate link quality and target-language tagging separately, and examine examples where the two results diverge.

Code-switching and mixed-language training

Code-switching augmentation mixes languages within a training example. Multilingual batch mixing changes which languages appear across the examples in a batch.

  • Word substitution can produce a mixed sentence such as "Le chat sat on the mat."
  • A batch can also combine complete monolingual sentences in different languages. If each example is a single sentence, each example in that batch can stay monolingual.

Use these as augmentation experiments at a named stage of training. A mixed example can still carry language cues. Measure convergence and task accuracy against a monolingual or unmixed control. Code-Switching and Mixed-Language Text develops these comparisons.

Sentence embedding alignment at scale

LASER, LaBSE, and SONAR all use parallel text, with different ways to make it useful. LASER learns sentence embeddings through multilingual translation. LaBSE ranks translations against other sentences in its batch. SONAR learns a fixed-size representation that its decoder can translate from, with an explicit distance penalty on translation pairs. For a retrieval task, compare how well each model ranks translations for the languages and domains you need. LASER

In a distillation setup, fit a student to approximate the teacher’s sentence embeddings on a chosen multilingual dataset. Validate which pairs the student preserves in the intended domain. In the implementation below, we specify the shared features directly so the downstream comparison has a controlled alignment mechanism.

When parallel text is available, compare TLM for token prediction with a contrastive objective for sentence retrieval. Both use paired sentences. With only monolingual text, shared multilingual pre-training is a starting point. Code-switching augmentation is another option if you have a source of cross-language substitutions, such as a bilingual lexicon.

Adapters and Parameter-Efficient Cross-Lingual Transfer

Full fine-tuning of a 500M-parameter multilingual model for each language and each task is expensive and awkward. The cost is paid in storage, deployment, and engineering. If every language requires its own full copy of the model, a deployment serving 50 languages needs 50 full-sized files, and updates have to be repeated everywhere. Adapters solve this by inserting small trainable modules while keeping the base model frozen.

The adapter idea

The bottleneck adapter considered here is a small residual module that can be added alongside a transformer sublayer.

Bottleneck Adapter

For hidden state x∈Rdx \in \mathbb{R}^{d}, a bottleneck adapter computes:

Adapter(x)=x+Wup σ(Wdownx)\text{Adapter}(x) = x + W_{\text{up}} \, \sigma(W_{\text{down}} x)

where Wdown∈Rdb×dW_{\text{down}} \in \mathbb{R}^{d_b \times d} projects down to a chosen bottleneck width dbd_b, σ\sigma is a nonlinearity, and WupW_{\text{up}} projects back up. The example below uses GELU and db=64d_b=64.

Houlsby et al. use task-specific adapters with a largely frozen pretrained model. The number of trainable parameters depends on bottleneck width, placement, and which other parameters are trained. The example below counts the weights and biases for its two projections. Report training time and memory separately. Houlsby et al. (2019)

MAD-X

MAD-X (Pfeiffer et al. 2020) separates language adapters from task adapters so that the same task adapter can be reused across languages. MAD-X, §§4.1–4.3

  • Language adapters. Train a language adapter with masked prediction on monolingual text. Measure the usable text available for each language.
  • Task adapters. One per task, trained with the task loss on source-language (typically English) data. They capture task-specific features.

During task training, MAD-X freezes the source language’s layer-wise adapters and invertible embedding adapter while learning the task adapter. At target inference, it switches both language-specific components and keeps the task adapter. The same task adapter can then serve languages with their own trained adapters.

Invertibility

MAD-X also learns a reversible transform at the embedding layer. Split an embedding into (e1,e2)(e_1,e_2) and compute o1=e1+F(e2)o_1=e_1+F(e_2) and o2=e2+G(o1)o_2=e_2+G(o_1). To recover the input, subtract in reverse order: e2=o2−G(o1)e_2=o_2-G(o_1) and e1=o1−F(e2)e_1=o_1-F(e_2). The same functions FF and GG serve in both directions. In masked language modeling, the forward transform follows the input embeddings and its inverse precedes the tied output embeddings. For zero-shot task inference, the target language supplies this input transform as well as the layer-wise adapters.

MAD-X keeps its language and task modules separate. For this kind of modular design, specify which modules to insert, where they go, and how they run together.

Language-agnostic and language-specific

Not every deployment has a language adapter per language. When a language is not covered, you have three options.

  • Try the adapter for another language and validate it on the target task. Choose candidates using lexical overlap, training coverage, or other measured criteria.
  • Apply the task adapter directly as a comparison. Report how that differs from the setup in which the task adapter was trained.
  • Train a new language adapter from available monolingual data. Compare the result and training cost with your other baselines.

Run the comparison on the actual target language. Script or morphology can help choose which to test. The measured result determines whether that adapter is suitable.

LoRA and modern alternatives

LoRA (Hu et al., 2022) freezes an existing weight matrix and fits a low-rank update. With their scaling convention for rank r,

W′=W+αrBAW' = W + \frac{\alpha}{r} B A

For a square d×dd\times d projection, A∈Rr×dA \in \mathbb{R}^{r \times d} and B∈Rd×rB \in \mathbb{R}^{d \times r} have 2dr2dr parameters, excluding any other trained parameters. The fixed scale is α/r\alpha/r. At inference, the update can be folded into the existing weight matrix. Hu et al. (2022), §4.1

Train and evaluate any language or task updates under the composition rule you intend to use. A sum of two weight updates is a different operation from stacking independently trained nonlinear bottleneck adapters.

Composition and adapter fusion

The reason modular adapters are interesting beyond parameter cost is composability. If you have:

  • Language adapters for French, German, and Japanese.
  • Task adapters for NER, sentiment, and QA.

You have nine cross-lingual task systems, from six trainable modules. Adding a new language or task costs one adapter, not one full model. The savings compound: adding a fourth language takes the system from nine to twelve combinations with a single new module, whereas a full-fine-tuning deployment would require three new full models.

AdapterFusion trains a composition layer over separately trained task adapters. It learns input-dependent weights over the adapter features in the original task-composition setting. Treat using language adapters this way as a separate experiment. Pfeiffer et al. (2021), §3

Transfer Diagnostics

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.

Worked Example: Zero-Shot NLI from English to French

Suppose you have English natural language inference (NLI) labels and want to classify French and German sentence pairs. Given a premise, predict whether it entails or contradicts the hypothesis or leaves it undecided. Train on English MultiNLI and evaluate the English, French, and German versions of the XNLI test split. For XNLI, the authors selected new English premises from the MultiNLI sources, collected new hypotheses using the MultiNLI procedure, and translated the resulting evaluation pairs. Use English development data for model selection to keep task supervision English-only. XNLI, §3.1

With a frozen multilingual sentence encoder, let pp be the premise embedding and hh the hypothesis embedding. Both have dimension dd. Concatenate three blocks to make a 3d3d-dimensional vector:

  • pp carries information about the premise.
  • hh carries information about the hypothesis.
  • ∣p−h∣|p - h| records an absolute difference at each embedding coordinate.

Fit a logistic regression classifier to English vectors and keep both the encoder and classifier fixed for all three evaluations. An aligned encoder can put the same cue in a consistent coordinate across languages. That gives the classifier a chance to reuse the feature that helped in English. The source and target test accuracies tell you how well it transferred. The English accuracy is also a check on the task head, since a head that performs poorly even on English gives little basis for diagnosing a transfer gap.

The absolute-difference block ∣p−h∣|p-h| is unchanged when the premise and hypothesis are swapped. The ordered raw blocks let the head distinguish those inputs. Neither block construction guarantees that the head can recover the relation from an arbitrary encoder. Check the result on the held-out pairs.

The generated example uses a small lexicon to assign the same coordinates across languages. The paired French test measures what happens when the encoder masks negation before normalization. The prescribed coordinates make this intervention easy to inspect.

Building It: Code Implementation

The notebook uses a lexicon, a few sentence templates, and a small classifier. It computes cosine similarities and InfoNCE on the generated sentences, transfers the classifier from English to French and German, then checks the shape and parameter count of a bottleneck adapter. Everything runs on the CPU without downloading a model or a dataset. The point is not to reproduce a state-of-the-art result but to make the moving parts visible, so that each component of the transfer pipeline can be inspected on its own.

We give translation equivalents a common coordinate. For example, dog, chien, and Hund activate the same entry in the vector. We give not, pas, and nicht a shared negation coordinate. The lexicon omits the verb because the fixture uses that same action in every sentence.

PythonIn [5]
CollapseExpand
import re
from itertools import product

import matplotlib.pyplot as plt
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import accuracy_score

ANIMALS = [
    ("The cat", "Le chat", "Die Katze"),
    ("The dog", "Le chien", "Der Hund"),
    ("The rabbit", "Le lapin", "Das Kaninchen"),
    ("The fox", "Le renard", "Der Fuchs"),
]
PLACES = [
    ("the kitchen", "la cuisine", "der Küche"),
    ("the garage", "le garage", "der Garage"),
    ("the garden", "le jardin", "dem Garten"),
    ("the studio", "le studio", "dem Studio"),
]
NEGATION = ("not", "pas", "nicht")
LANGUAGES = ("English", "French", "German")
LEXICON = [*ANIMALS, *PLACES, NEGATION]

token_to_feature = {
    form.casefold().split()[-1]: i
    for i, forms in enumerate(LEXICON)
    for form in forms
}


def encode(sentences, *, keep_negation=True):
    """Normalize the active lexicon features in each input sentence."""
    vectors = np.zeros((len(sentences), len(LEXICON)))
    for row, sentence in enumerate(sentences):
        for word in re.findall(r"\w+", sentence.casefold()):
            feature = token_to_feature.get(word)
            if feature is not None:
                vectors[row, feature] = 1.0
    if not keep_negation:
        vectors[:, -1] = 0.0
    return vectors / np.linalg.norm(vectors, axis=1, keepdims=True)


def sentence(animal_id, place_id, language_id, *, negated=False):
    animal = ANIMALS[animal_id][language_id]
    place = PLACES[place_id][language_id]
    verbs = ("does not sleep in", "ne dort pas dans", "schläft nicht in")
    if not negated:
        verbs = ("sleeps in", "dort dans", "schläft in")
    return f"{animal} {verbs[language_id]} {place}."

The encoder produces a vector with one coordinate per animal, place, and negation. Every fixture sentence names one animal and one place, so its vector has nonzero norm even if we hide negation. In a negated sentence, removing the negation bit before normalization raises the two retained entries from 1/31/\sqrt{3} to 1/21/\sqrt{2}. The lexicon makes the encoder inputs easy to inspect. Free text would need proper tokenization, handling for unknown words, and a learned encoder or a much broader feature model.

Cross-lingual sentence similarity

Take translations of one proposition and translations of a second, with different animals and locations. Because the vectors have unit norm, their dot product is cosine similarity. The matrix includes both matching and nonmatching pairs, so we can see whether high similarity picks out the translations.

PythonIn [6]
CollapseExpand
demo_examples = [("A", sentence(0, 0, i)) for i in range(len(LANGUAGES))] + [
    ("B", sentence(1, 1, i)) for i in range(len(LANGUAGES))
]
demo_vectors = encode([text for _, text in demo_examples])
demo_sim = demo_vectors @ demo_vectors.T
# Perturb the displayed score cells and clip them to the color scale.
# This noise is applied to the scores; the encoder vectors are unchanged.
_sim_rng = np.random.default_rng(SEED)
demo_sim = demo_sim + _sim_rng.normal(0.0, 0.04, size=demo_sim.shape)
demo_sim = np.clip(demo_sim, 0.0, 1.0)
np.fill_diagonal(demo_sim, 1.0)

languages_short = ["EN", "FR", "DE"]
demo_ticks = [
    f"{languages_short[i % len(LANGUAGES)]} {scenario}"
    for i, (scenario, _) in enumerate(demo_examples)
]
ConsoleOut [7]
CollapseExpand
EN A  The cat sleeps in the kitchen.
FR A  Le chat dort dans la cuisine.
DE A  Die Katze schläft in der Küche.
EN B  The dog sleeps in the garage.
FR B  Le chien dort dans le garage.
DE B  Der Hund schläft in der Garage.

The A sentences all put the cat in the kitchen. The B sentences put the dog in the garage. Within a group, translations share both active coordinates. Across the two groups they share neither.

VisualizationOut [8]
CollapseExpand
Six-by-six heatmap with two bright translation groups. Cellwise noise yields some bright cells clipped at one and some dark cross-group cells clipped at zero.
Perturbed cosine scores for English, French, and German versions of two propositions. Translations form two bright blocks. Cellwise noise and clipping to the range from zero to one create small variations within each block.

The two bright blocks distinguish propositions across language boundaries. Before adding noise, translations of different propositions share no features and have a cosine similarity of zero. In the seeded example, the perturbed scores across both dark blocks range from about -0.08 to 0.09 before clipping. The largest positive score is in the lower-left block because the two directions get independent noise draws. Clipping sends negative scores to zero and any matched scores above one to one. The classifier below uses the encoded vectors directly.

Information-theoretic alignment: InfoNCE

InfoNCE treats each row of the similarity matrix as a classification problem. The correct column is the matching translation. Subtracting the row maximum keeps the exponentials bounded and gives the same log-softmax as the original logits.

PythonIn [9]
CollapseExpand
def info_nce(anchor, target, temperature=0.07):
    """Row-wise InfoNCE with matched pairs on the diagonal."""
    logits = anchor @ target.T / temperature
    shifted = logits - logits.max(axis=1, keepdims=True)
    log_normalizer = np.log(np.exp(shifted).sum(axis=1))
    return float(np.mean(log_normalizer - shifted.diagonal()))

We split by animal and place combination, holding back one combination per animal for evaluation. Each animal and each place still occurs individually in training. For InfoNCE, encode one English and one French translation of each held-out proposition, in matching row order. Rolling the French rows by one position makes every positive label point to the wrong proposition while leaving the candidate set fixed.

PythonIn [10]
CollapseExpand
all_scenarios = list(product(range(len(ANIMALS)), range(len(PLACES))))
train_scenarios = [
    (animal, place) for animal, place in all_scenarios if animal != place
]
test_scenarios = [
    (animal, place) for animal, place in all_scenarios if animal == place
]

en_parallel = [sentence(animal, place, 0) for animal, place in test_scenarios]
fr_parallel = [sentence(animal, place, 1) for animal, place in test_scenarios]
en_parallel_emb = encode(en_parallel)
fr_parallel_emb = encode(fr_parallel)

aligned_loss = info_nce(en_parallel_emb, fr_parallel_emb)
broken_loss = info_nce(en_parallel_emb, np.roll(fr_parallel_emb, 1, axis=0))
ConsoleOut [11]
CollapseExpand
Parallel pairs:             4
InfoNCE on matched pairs:   0.000002
InfoNCE after rotating:     14.286
Difference:                14.286 nats

Each row of the noiseless fixture contains one similarity of 1 and three similarities of 0. At temperature τ\tau, the matched loss per row is log⁡(1+3e−1/τ)\log(1+3e^{-1/\tau}). Rotating the French rows moves the similarity of 1 off the diagonal, so the designated positive has a logit of zero and the loss becomes log⁡(3+e1/τ)\log(3+e^{1/\tau}). At τ=0.07\tau=0.07, the two losses are about 1.9×10−61.9\times10^{-6} and 14.2914.29 nats.

Temperature controls how sharply the loss separates matched translations from the rest of the batch. For the sweep we add a fixed noise draw to both sets of embeddings, renormalize, and recompute the matched and rotated losses at each temperature.

PythonIn [12]
CollapseExpand
temperature_values = np.array([0.02, 0.04, 0.07, 0.1, 0.2, 0.5, 1.0])
_noise_rng = np.random.default_rng(SEED)
en_parallel_emb = en_parallel_emb + _noise_rng.normal(
    0.0, 0.05, size=en_parallel_emb.shape
)
fr_parallel_emb = fr_parallel_emb + _noise_rng.normal(
    0.0, 0.05, size=fr_parallel_emb.shape
)
en_parallel_emb = en_parallel_emb / np.linalg.norm(
    en_parallel_emb, axis=1, keepdims=True
)
fr_parallel_emb = fr_parallel_emb / np.linalg.norm(
    fr_parallel_emb, axis=1, keepdims=True
)
matched_temperature_losses = np.array(
    [
        info_nce(en_parallel_emb, fr_parallel_emb, temperature=temperature)
        for temperature in temperature_values
    ]
)
rotated_temperature_losses = np.array(
    [
        info_nce(
            en_parallel_emb,
            np.roll(fr_parallel_emb, 1, axis=0),
            temperature=temperature,
        )
        for temperature in temperature_values
    ]
)
VisualizationOut [13]
CollapseExpand
The matched curve stays below the rotated control at every temperature. The curves are farthest apart at the low-temperature end.
InfoNCE loss for four generated parallel pairs after adding fixed noise and renormalizing their vectors. The matched loss stays below the rotated control from temperature 0.02 to 1.0.

The fixed noisy sweep retains lower loss for matched rows at each plotted temperature. At low temperatures the penalty grows sharply when rotation puts the largest similarity in a column that the loss treats as a distractor.

Zero-shot NLI transfer

For each premise, construct one hypothesis of each class. Repeat the premise for entailment, negate it for contradiction, and swap in another location for neutral. For neutral, assume the original sentence leaves open whether the animal also sleeps elsewhere. The 12 training scenarios give 36 English training pairs. The four held-out scenarios give 12 test pairs per language, with the same labels and class counts in English, French, and German.

PythonIn [14]
CollapseExpand
def make_nli_pairs(scenarios, language_id):
    pairs = []
    for animal, place in scenarios:
        premise = sentence(animal, place, language_id)
        negated = sentence(animal, place, language_id, negated=True)
        other_place = (place + 1) % len(PLACES)
        if other_place == animal:
            # Keep held-out propositions out of training hypotheses too.
            other_place = (other_place + 1) % len(PLACES)
        alternative = sentence(animal, other_place, language_id)
        pairs.extend(
            [
                (premise, premise, "entailment"),
                (premise, negated, "contradiction"),
                (premise, alternative, "neutral"),
            ]
        )
    return pairs


def encode_nli_pairs(pairs, *, keep_negation=True, noise_std=0.0, rng=None):
    premises, hypotheses, labels = zip(*pairs)
    p = encode(premises, keep_negation=keep_negation)
    h = encode(hypotheses, keep_negation=keep_negation)
    if noise_std > 0.0 and rng is not None:
        # Simulate imperfect cross-lingual alignment for non-source languages.
        p = p + rng.normal(0.0, noise_std, size=p.shape)
        h = h + rng.normal(0.0, noise_std, size=h.shape)
    features = np.concatenate([p, h, np.abs(p - h)], axis=1)
    return features, np.array(labels)

Fit the classifier on English rows. Evaluate the English, French, and German versions of the held-out scenarios. Then repeat the French evaluation after discarding the negation coordinate before normalization. The affirmative and negated hypotheses become identical before the French noise is applied. Normalizing the masked vector also rescales the coordinates it retains. The masked and unmasked French evaluations use the same noise draw.

PythonIn [15]
CollapseExpand
X_train, y_train = encode_nli_pairs(make_nli_pairs(train_scenarios, 0))
clf = LogisticRegression(max_iter=1000, C=1.0)
clf.fit(X_train, y_train)

test_pairs = [make_nli_pairs(test_scenarios, i) for i in range(len(LANGUAGES))]
language_noise = {0: 0.0, 1: 0.35, 2: 0.55}
test_data = [
    encode_nli_pairs(
        pairs,
        noise_std=language_noise[i],
        rng=np.random.default_rng(SEED + i),
    )
    for i, pairs in enumerate(test_pairs)
]
accuracies = [
    accuracy_score(labels, clf.predict(features))
    for features, labels in test_data
]

X_fr_masked, y_fr = encode_nli_pairs(
    test_pairs[1],
    keep_negation=False,
    noise_std=language_noise[1],
    rng=np.random.default_rng(SEED + 1),
)
fr_masked_acc = accuracy_score(y_fr, clf.predict(X_fr_masked))
chance = 1 / len(clf.classes_)
accuracy_labels = [*LANGUAGES, "French\n(negation masked)"]
accuracy_values = [*accuracies, fr_masked_acc]
ConsoleOut [16]
CollapseExpand
Training feature matrix: (36, 27)
English  12 held-out pairs, accuracy 1.000
French   12 held-out pairs, accuracy 0.583
German   12 held-out pairs, accuracy 0.250
French accuracy with negation masked: 0.417

Without added noise, translations of a test example give identical features and predictions. The reported run adds Gaussian noise to French and German embeddings. The model gets 12 of 12 English pairs, 7 of 12 French pairs, and 3 of 12 German pairs right. When negation is masked in French, the affirmative and negated hypotheses have identical features before noise. After noise is added, the model assigns the same prediction to the matching entailment and contradiction in three of the four scenarios. The location feature is still present. With the same noise in the two French conditions, masking negation lowers accuracy from 7 of 12 to 5 of 12.

The aggregate drop tells us how many fewer examples the classifier gets right. To find which decisions changed, compare correctness on the same French test rows before and after masking. Reuse the fitted classifier and group the four possible transitions by the gold natural language inference label.

PythonIn [17]
CollapseExpand
french_inputs, french_gold = test_data[1]
assert np.array_equal(french_gold, y_fr)
before_correct = clf.predict(french_inputs) == french_gold
after_correct = clf.predict(X_fr_masked) == french_gold

print(
    f"{'Gold label':<15} {'Right both':>10} {'Right to wrong':>14}"
    f" {'Wrong to right':>14} {'Wrong both':>10}"
)
for gold_label in clf.classes_:
    in_class = french_gold == gold_label
    right_both = np.count_nonzero(in_class & before_correct & after_correct)
    lost = np.count_nonzero(in_class & before_correct & ~after_correct)
    gained = np.count_nonzero(in_class & ~before_correct & after_correct)
    wrong_both = np.count_nonzero(in_class & ~before_correct & ~after_correct)
    print(
        f"{gold_label:<15} {right_both:>10} {lost:>14} {gained:>14} {wrong_both:>10}"
    )
ConsoleOut [17]
CollapseExpand
Gold label      Right both Right to wrong Wrong to right Wrong both
contradiction            1              2              0          1
entailment               0              0              0          4
neutral                  4              0              0          0

Count the right-to-wrong and wrong-to-right columns to explain the change in accuracy. Of the four French contradiction pairs, two go from right to wrong and none go from wrong to right. All four neutral pairs stay correct, and all four entailment pairs stay wrong. The two lost decisions account for the drop from 7 out of 12 to 5 out of 12. This measures the effect of masking and renormalizing the features for these paired inputs.

The absolute accuracies are useful, but the transfer gap is the diagnostic quantity. The same English-trained classifier and the same held-out examples produce the gaps below. The gaps are about 0.42 for French, 0.75 for German, and 0.58 for masked French.

PythonIn [18]
CollapseExpand
gap_labels = [*LANGUAGES[1:], "French masked"]
gap_values = [accuracies[0] - accuracies[i] for i in range(1, len(accuracies))]
gap_values.append(accuracies[0] - fr_masked_acc)
gap_values = [g for g in gap_values]
VisualizationOut [19]
CollapseExpand
Bars measure accuracy drops from English. German has the largest drop at 0.75, followed by masked French at 0.58 and French at 0.42.
Accuracy drops from English of about 0.42 for French, 0.75 for German, and 0.58 for masked French. Relative to unmasked French, the mask widens the gap by about 0.17.
VisualizationOut [20]
CollapseExpand
English scores 1.00, French 0.58, German 0.25, and masked French 0.42. German falls below the uniform-guessing line at 0.33.
On the generated test pairs, accuracy is 1.00 for English, 0.58 for French, 0.25 for German, and 0.42 for masked French. The dashed line marks uniform guessing at about 0.33.

This paired test measures the effect of masking negation before normalization. The mask also rescales the retained entries of a negated sentence, which changes the hypothesis block and can change the absolute-difference block. With the same French examples and noise draw, the full intervention lowers accuracy from about 0.58 to 0.42. In a benchmark experiment, alignment would come from a learned encoder, and the size of the difference would depend on the model and test set.

A minimal bottleneck adapter

A bottleneck adapter projects each token's hidden state down, applies a nonlinearity, and projects back to the original width. A residual adds the result to the input. We use one adapter per layer for the parameter estimate and keep the example separate from the classifier so we can inspect the module without training a transformer.

PythonIn [21]
CollapseExpand
import torch
import torch.nn as nn


class BottleneckAdapter(nn.Module):
    """Add a learned bottleneck transformation to the input."""

    def __init__(self, hidden_size=768, bottleneck=64):
        super().__init__()
        self.down = nn.Linear(hidden_size, bottleneck)
        self.up = nn.Linear(bottleneck, hidden_size)
        self.act = nn.GELU()
        # A small up-projection keeps the initial residual update small.
        nn.init.normal_(self.up.weight, std=1e-2)
        nn.init.zeros_(self.up.bias)

    def forward(self, x):
        return x + self.up(self.act(self.down(x)))
PythonIn [22]
CollapseExpand
hidden_size = 768
bottleneck = 64
n_layers = 12
adapter = BottleneckAdapter(hidden_size=hidden_size, bottleneck=bottleneck)
hidden = torch.randn(4, 12, hidden_size)
with torch.inference_mode():
    out = adapter(hidden)

per_adapter = sum(p.numel() for p in adapter.parameters())
budget = per_adapter * n_layers
mean_perturbation = (out - hidden).abs().mean().item()
ConsoleOut [23]
CollapseExpand
Adapter parameters:       99,136
12-layer adapter budget:  1,189,632
Input shape:  (4, 12, 768)
Output shape: (4, 12, 768)
Mean absolute update: 0.02212

Both projections act on the last dimension, preserving the batch and token dimensions. Each projection contributes ddbd d_b weights. Their biases contribute another db+dd_b+d parameters in total. The initial update is measured on the sampled batch. This module illustrates the residual bottleneck operation.

At hidden width d=768d=768, one adapter has 2ddb+(db+d)=1,537db+7682dd_b+(d_b+d)=1{,}537d_b+768 parameters. Each extra bottleneck unit adds 1,537 parameters. Twelve layers with one adapter each use twelve times that count. The parameter savings relative to the block matrix weights get smaller as the bottleneck grows.

PythonIn [24]
CollapseExpand
bottleneck_widths = np.array([16, 32, 64, 128, 256])
adapter_parameter_counts = (
    2 * hidden_size * bottleneck_widths + bottleneck_widths + hidden_size
)
adapter_layer_budgets = adapter_parameter_counts * n_layers
# Matrix weights only, with four attention projections and an FFN of width 4d.
attention_weights = 4 * hidden_size**2
ffn_width = 4 * hidden_size
ffn_weights = 2 * hidden_size * ffn_width
base_block_weight_budget = (attention_weights + ffn_weights) * n_layers
VisualizationOut [25]
CollapseExpand
On a logarithmic parameter axis, both adapter budgets rise with width. The budget for twelve adapters is twelve times the budget for one. The dashed 84.9-million frozen-block matrix baseline sits above both curves.
Both axes are logarithmic. Across the tested widths, one adapter grows from 25,360 to 394,240 parameters. The twelve-layer budget is twelve times the single-adapter count at each width. The dashed line counts 84.9 million attention and feed-forward matrix weights in twelve width-768 blocks, excluding biases, normalization, embeddings, and heads.

Key Parameters

  • InfoNCE temperature scales every logit before the softmax. Lower temperatures sharpen probabilities when scores differ. They can also reduce the gradient when the positive already dominates. Inspect the ranking and the loss together.
  • Logistic regression C is the inverse regularization strength. Hold it fixed in this comparison. Using French development labels to choose it changes the target-supervision protocol and should be reported.
  • Hidden width and bottleneck width determine the projection shapes. Larger bottleneck widths increase the number of trainable weights at fixed hidden width.
  • Adapter placement determines how many copies of the module to budget for. The example assumes one module in each of 12 layers, giving a twelve-layer budget that is exactly twelve times a single adapter's parameter count.

Limitations & Impact

An English-trained task head can be evaluated before fitting on target-language task labels. Use local evaluation to decide what annotation or adaptation is still needed.

Report the measured gap and target-language score together. A benchmark score, such as 65% accuracy on Swahili, needs interpretation in terms of the task, errors, and deployment requirements.

Test individual cues the task relies on. For example, remove a morphological cue and compare the same items under both conditions. Keep the shuffled-label comparison under the same split and report how much its scores vary.

Test exposure separately for each benchmark and training corpus. Report uncertainty, overlap where it can be verified, and whether the ranking holds on an additional target-language test set.

To assess transfer, measure the target-language score and inspect errors by task and language. The next chapters examine low-resource languages, code-switching, and multilingual evaluation.

Summary

Source-only fitting lets one task head make predictions across languages. Evaluate its results in each target language and describe the observed transfer gaps.

  • A task head can reuse a feature across languages when changes to its inputs leave the relevant decision intact.
  • Zero-shot, translate-train, translate-test, multilingual fine-tuning, and pivot-based transfer place the multilingual work at different stages. The designs can be combined.
  • Alignment can come from several objectives. TLM predicts masked tokens from parallel context. LaBSE ranks translations and subtracts a margin from the matched scores during training, while SONAR combines translation, denoising autoencoding, and a distance loss. Word link extraction and code-switching address different parts of the transfer problem.
  • MAD-X separates language adapters from the task adapter, so a trained task adapter can be reused with target-language adapters. Low-rank adaptation is a separate way to fit a smaller set of weights.
  • Report the source and target scores, the protocol, and evidence about alternate explanations, including tokenization and benchmark exposure.

The implementation trains on English and evaluates the same cases across three languages. Its paired French run tests the full effect of masking negation before normalization. The lexicon supplies alignment by design. To measure how well a learned encoder transfers, apply the same source-only training protocol to a held-out benchmark such as XNLI.

The next chapter turns to a harder version of the same problem: languages where pre-training coverage is minimal, annotation is impractical, and the shared representation may not be strong enough to carry weight.

Quiz

Ready to test your understanding? Take this quick quiz to reinforce what you've learned about cross-lingual transfer and alignment.

Cross-Lingual Transfer and Alignment

Question 1 of 80 of 8 completed
Which statement best captures the chapter's shared representation hypothesis?
Join the discussionAsk a question or share what you learned.

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!

A different angle
All writing
Language AI Handbook · Vol. 8

Code-Switching and Mixed-Language Text

Learn how code-switching breaks language ID, tokenization, and generation pipelines. Covers switch-point F1, mixed scripts, Unicode traps, and evaluation.

45 min read
Language AI Handbook · Vol. 8

Cultural and Multilingual Evaluation

Measure what multilingual benchmarks miss: translationese, construct validity, cultural knowledge, local harms, and native-speaker-led evaluation design.

54 min read
Language AI Handbook · Vol. 8

Multilingual Pre-training and Data Balancing

Learn how multilingual language models allocate training budgets across languages using temperature-based sampling, effective epochs, capacity trade-offs, and per-language diagnostics.

57 min read

About the author

Reference

Citation details

Cite or share this article.

BIBTEXAcademic
@misc{brenndoerfer2026crosslingual, author = {Michael Brenndoerfer}, title = {Cross-Lingual Transfer and Alignment}, year = {2026}, url = {https://mbrenndoerfer.com/writing/cross-lingual-transfer-alignment-multilingual-adapters}, organization = {mbrenndoerfer.com}, note = {Accessed: 2026-12-03} }
APAAcademic
Michael Brenndoerfer (2026). Cross-Lingual Transfer and Alignment. Retrieved from https://mbrenndoerfer.com/writing/cross-lingual-transfer-alignment-multilingual-adapters
MLAAcademic
Michael Brenndoerfer. "Cross-Lingual Transfer and Alignment." 2026. Web. December 3, 2026. <https://mbrenndoerfer.com/writing/cross-lingual-transfer-alignment-multilingual-adapters>.
CHICAGOAcademic
Michael Brenndoerfer. "Cross-Lingual Transfer and Alignment." Accessed December 3, 2026. https://mbrenndoerfer.com/writing/cross-lingual-transfer-alignment-multilingual-adapters.
HARVARDAcademic
Michael Brenndoerfer (2026) 'Cross-Lingual Transfer and Alignment'. Available at: https://mbrenndoerfer.com/writing/cross-lingual-transfer-alignment-multilingual-adapters (Accessed: December 3, 2026).
SimpleBasic
Michael Brenndoerfer (2026). Cross-Lingual Transfer and Alignment. https://mbrenndoerfer.com/writing/cross-lingual-transfer-alignment-multilingual-adapters
Newsletter

Stay up to date

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

Unsubscribe at any time. Privacy policy