Reading Zero-Shot Transfer Off the Task Subspace: A Label-Free, Per-Language Predictor of Cross-Lingual Accuracy

When a multilingual model is fine-tuned only on English labels and then used on Swahili or Yoruba, practitioners usually cannot tell how well it works. By definition there is no target-language validation set, and runs with different random seeds that look identical on English can differ sharply on the target language. This proposal builds a label-free score that predicts, separately for each target language, how well a given fine-tuned checkpoint will transfer. The score uses only unlabeled target-language text. It looks at the few directions inside a middle layer that the fine-tuned model actually reads when it makes a decision, and it asks two questions. First, do target-language inputs land where English inputs land along those directions? Second, if they land elsewhere, is the target point cloud still the same shape as the English one, only rotated?

The core idea fits in two sentences. A fine-tuned classifier reads a small task-specific subspace of its hidden states, and zero-shot transfer succeeds when target-language inputs, projected onto that subspace, overlap the English distribution without any rotation. Measuring that overlap on unlabeled text gives a per-language, per-checkpoint transfer estimate. Measuring the same overlap after allowing a rotation separates two kinds of failure: structure that exists but is misplaced, which a mapping could fix, and structure that has collapsed, which only better pre-training or target data could fix.

Why this, and why now

Two bodies of work sit side by side without touching. The first uses parameter-space geometry to predict zero-shot transfer. Generalization Measures for Zero-Shot Cross-Lingual Transfer shows that the English prediction margin and loss sharpness correlate strongly with target accuracy on XNLI and PAWS-X. Zero-shot Cross-lingual Transfer is Under-specified Optimization explains the seed variance: many parameter settings fit English equally well but sit on a steep, rugged target-language error surface. Both papers motivate the problem. Both also leave a gap that is easy to miss. Margin and sharpness are computed on English, so for a given checkpoint they produce one number regardless of which target language you care about. They cannot tell you that seed 3 is best for Swahili while seed 7 is best for French, and under-specification implies that such disagreements should be common. Margin is also undefined for generative decoder models, which that paper names as a limitation.

The second body of work measures how similar the shapes of hidden-state clouds are across languages, which is what "structural isomorphism" means here. Word-level Cross-lingual Structure in Large Language Models uses Gromov-Hausdorff distance (a measure of how much one point cloud must be distorted to match another) and finds that cross-lingual structure peaks around layer 9 of 32. Middle-Layer Representation Alignment for Cross-Lingual Transfer in Fine-Tuned LLMs finds a similar middle-layer peak. Are Structural Concepts Universal in Transformer Language Models? shows that syntactic concepts live in shared subspaces of 32 to 64 dimensions. These papers supply the measurement tools. They never use those tools to predict downstream zero-shot accuracy.

One finding from this second body of work shapes the design. The middle-layer alignment paper reports that standard fine-tuning is "alignment-neutral": it does not change global cross-lingual alignment. If that is true, a global isomorphism score computed over the full hidden space will be nearly constant across seeds and useless for choosing a checkpoint. What does differ across seeds is which directions the fine-tuned model reads.

Refusal Direction is Universal Across Safety-Aligned Languages shows the two failure regimes in a single binary task. The decision direction is shared across languages, but Yoruba inputs form "mushy," overlapping clusters along it, and Llama 3.1 complies with 82.9% of harmful Yoruba prompts. The proposal turns that qualitative picture into a measurement, restricted to the task subspace and applied to every checkpoint.

Core Claim

For a fine-tuned model and a target language, a transport distance between English and target activations, both projected onto the model's own task subspace at a middle layer, predicts target accuracy across seeds and checkpoints within a language. It should do so better than English-side margin and sharpness, and better than global isomorphism measures. Comparing the same distance with and without an optimal rotation should separate languages whose structure is misplaced from languages whose structure has collapsed. The method needs no target labels and no parallel text, and it applies unchanged to generative models.

The score

Let $h_\ell(x)$ be the layer-$\ell$ hidden state of input $x$, mean-pooled over tokens. Let $U \in \mathbb{R}^{d \times k}$ be an orthonormal basis for the task subspace. We estimate it as the top-$k$ right singular vectors of the Jacobian of the model's task outputs with respect to $h_\ell$, averaged over English training inputs. For generative tasks, the task outputs are the log-probabilities of the label or slot tokens. Let $\mu_s$ and $\mu_t$ be the empirical distributions of $U^\top h_\ell(x)$ over unlabeled source and target inputs. We compute two quantities:

$$S_{\text{shift}}(t) = \frac{W_\varepsilon(\mu_s, \mu_t)}{\sigma_s}, \qquad S_{\text{iso}}(t) = \min_{R \in O(k)} \frac{W_\varepsilon(\mu_s, R_\#\mu_t)}{\sigma_s}.$$

Here $W_\varepsilon$ is the entropy-regularized optimal transport (Sinkhorn) distance, which measures how far one cloud of points must move to cover another, as used for alignment in Unsupervised Cross-lingual Transfer of Word Embedding Spaces. $O(k)$ is the set of $k \times k$ orthogonal matrices, and $R_\#\mu_t$ is the target cloud after rotation by $R$. The rotation is fitted by alternating Procrustes and transport steps, the standard unsupervised mapping recipe from Word translation without parallel data. $\sigma_s$ is the English cloud's spread, so scores are comparable across checkpoints.

The predictor is $S_{\text{shift}}$, where lower should mean better transfer, because the fixed task head reads unrotated coordinates. The diagnostic is the pair $(S_{\text{shift}}, S_{\text{iso}})$. High shift with low isomorphism distance means the shape is intact but displaced. High values of both mean the representation has collapsed, the regime the refusal paper describes for Yoruba.

Research Program

The work has three parts.

The first part builds a large population of fine-tuned models with real variation in target accuracy. It reuses the setup of Generalization Measures for Zero-Shot Cross-Lingual Transfer: mBERT and XLM-R trained with AdamW, Sharpness-Aware Minimization (an optimizer that seeks flat minima), and a Fisher curvature penalty. Each configuration is run with many seeds and saved at several checkpoints. For decoder models, Llama 3 and Qwen 2.5 are fine-tuned with LoRA adapters as in the middle-layer alignment paper.

The second part computes the scores on unlabeled target text. We use the unlabeled test inputs themselves (a transductive setting with no labels touched) and, separately, FLORES-200 monolingual sentences. The FLORES version checks that the score is not exploiting quirks of a particular test set.

The third part runs the diagnostic decomposition. We test it against the one regime the file already characterizes: on PolyRefuse, Yoruba should fall in the "collapsed" corner and German should not. We then ask whether the typology pattern of Evaluating morphological typology in zero-shot cross-lingual transfer, in which introflexive languages score below 50% on POS while fusional pairs score above 80%, appears as collapse or as displacement. The answer has practical stakes. Displacement suggests that local warping of the kind used in Non-Linear Instance-Based Cross-Lingual Mapping for Non-Isomorphic Embedding Spaces could help. Collapse suggests it cannot.

Baselines

The naive reference points are the last checkpoint of a single seed and the checkpoint with the best English development accuracy. These are what practitioners actually do. The second is the honest "do nothing" option: it uses all the data the zero-shot setting permits and no geometry at all.

The strongest existing method is prediction margin, with sharpness as a second variant, from Generalization Measures for Zero-Shot Cross-Lingual Transfer. That paper reports a Pearson correlation of 0.954 between margin and target test accuracy for mBERT with the Fisher penalty on XNLI, above 0.9 in almost all experiments, and sharpness correlations down to −0.845. We will recompute margin, and the paper's difference-based sharpness with its perturbation scale tuned on English only, over exactly the same model population we score. The file does not say whether these correlations are pooled across languages or computed within a language. We will therefore report both.

Beating this baseline means two things. First, a higher within-language rank correlation (Kendall's tau across checkpoints for a fixed target language). Second, lower selection regret, defined as the gap between the target accuracy of the selected checkpoint and the best checkpoint in the population, especially on Swahili, Urdu, Thai, and the introflexive UD languages. On pooled correlation, matching margin is enough, since margin is already near the ceiling there. For MASSIVE with decoder models, margin is undefined. There, the baselines are English development loss and target-side output entropy, and no reported result was found on Lacuna for label-free checkpoint selection on MASSIVE.

A target-side confidence baseline scores each checkpoint by its average maximum predicted probability, or negative entropy, on unlabeled target inputs. It is per-language and label-free, so it is the most direct competitor to the core claim. It gets the same unlabeled inputs and no tuning.

A translated-development-set baseline machine-translates the English dev set into each target language and selects checkpoints on it. It uses the same MT system for all languages.

Three ablations isolate the key ingredient. Global isomorphism computes Gromov-Hausdorff distance and eigenvalue similarity over the full hidden space at the same layer, as in Word-level Cross-lingual Structure in Large Language Models and Analyzing the Limitations of Cross-lingual Word Embedding Mappings. If the task subspace matters, this ablation should be near-flat across seeds, consistent with the alignment-neutrality finding. A random-$k$ subspace ablation controls for dimensionality. A pre-fine-tuning subspace ablation fixes $U$ from the base model. Finally, a layer sweep tests whether the predictive signal peaks in the middle layers where isomorphism peaks.

Why not just…?

Why not just use prediction margin, which already correlates above 0.9? Margin is computed on English, so for a fixed checkpoint it gives one value for every target language. Under-specified optimization (Zero-shot Cross-lingual Transfer is Under-specified Optimization) predicts that the best checkpoint differs by language. A high pooled correlation can come mostly from differences between training configurations, for example SAM versus AdamW, rather than from ranking seeds within a configuration. The within-language tau and the regret comparison settle this directly. If margin matches our score within languages, then the per-language claim fails. The remaining contribution would be the extension to generative models and the diagnostic split.

Why not just measure the model's confidence on unlabeled target inputs? This is the real threat, because it is per-language and costs nothing. Its known weakness is that confidence can be high and wrong. A target input shifted along the task direction may be classified confidently into the wrong class. The refusal paper's Yoruba case is a version of this: the model confidently complies with harmful prompts. We expect confidence to be miscalibrated exactly where $S_{\text{shift}}$ is large. If confidence matches our score on regret everywhere, we will say so and recommend the simpler method. The diagnostic decomposition would then be the only remaining contribution.

Why not just translate the dev set? The XNLI paper (XNLI: Evaluating Cross-lingual Sentence Representations) and XTREME both find that translation baselines are strong but depend on MT quality, which degrades for low-resource languages. A translated dev set may therefore select well for French and badly for Swahili. Our experiment reports regret broken down by language resource level. We expect the translated dev set to win on high-resource languages, and we will report that if it happens.

Why not just fix the geometry with middle-layer alignment instead of predicting it? Middle-Layer Representation Alignment for Cross-Lingual Transfer in Fine-Tuned LLMs improves transfer, by +1.5 F1 overall and +3.8 on the lowest-resource MASSIVE languages, but it needs parallel sentences and still leaves seed variance and a selection problem. Prediction and mitigation therefore complement each other. We will also include its aligned models in the population. If our score tracks the gains that alignment produces, that serves as a further validity check.

Proposed Experiments

The encoder experiments cover XNLI (15 languages) and PAWS-X (7 languages) with mBERT and XLM-R, plus UD POS on the 19 typologically varied languages from the morphology-typology study. We expect a different pattern on POS: since transfer for structured prediction degrades more than for semantic classification (XTREME), larger and more varied $S_{\text{shift}}$ values should appear there. The decoder experiments use MASSIVE intent classification and slot filling with Llama 3 and Qwen 2.5, where no margin-based competitor exists. PolyRefuse serves as a sanity check. The task subspace there should essentially recover the refusal direction, and Yoruba should land in the collapsed regime that the paper's 82.9% compliance figure implies.

The metrics are within-language Kendall tau, pooled Pearson correlation, and per-language selection regret with bootstrap intervals over seeds.

Three checks are decisive. The first is whether task-subspace $S_{\text{shift}}$ beats both margin and target confidence on within-language tau and regret for low-resource XNLI languages. If it does not, the core claim fails. The second is whether global Gromov-Hausdorff distance is nearly flat across seeds while $S_{\text{shift}}$ varies. That result would confirm that the task subspace, not isomorphism in general, carries the signal. The third is whether the displaced-versus-collapsed split predicts which languages gain from a post-hoc rotation of target activations at inference time. Displaced languages should gain and collapsed ones should not. This last check turns the diagnostic into a falsifiable prediction about an intervention.