Partial Shared Spaces for Aligning Independently Trained Language Models

Recent evidence suggests that language models trained separately on different languages end up with internal geometries similar enough that a single rotation can map one onto another. The rotation is fit on a set of parallel sentences, and once found it lets you retrieve translations or even transplant a "fact" from an English model into a German one. This opens a modular route to cross-lingual transfer: keep strong monolingual specialists and connect them after training, rather than squeezing hundreds of languages into one model. Today's connection step has two weaknesses. It is pairwise, so every language pair needs its own parallel data, and pairs routed through English inherit English-pivot losses. It is also global: every example is assumed to have a counterpart, and every direction of activation space is assumed to be shared. That assumption is known to break for distant languages and for concepts that one language simply does not encode the same way.

3D shape matching solved a closely analogous problem. When matching incomplete scans of deformable bodies, methods that assume the whole shape is present produce distorted matches. The methods that work do two things at once. They estimate which parts of each shape actually overlap while fitting the map, and they map every shape into a shared latent reference ("virtual universe") that each scan only partly covers. Pairwise maps are then composed through that reference, which makes them consistent around every cycle. We propose to carry this combination into language model alignment. We will learn one shared latent space for a collection of monolingual models. Each model maps into only a subspace of it, each training example carries a learned weight for whether it truly overlaps, and any language pair is aligned by composing through the shared space, including pairs with no direct parallel data.

Core Claim

The claim has two parts. First, a partially covered shared space fit jointly over many monolingual models will align language pairs that share no direct parallel data. It should match directly fitted pairwise rotations on such pairs and beat English-hub composition on non-English pairs. Second, modelling partiality, meaning joint estimation of per-example overlap weights and a rank-limited shared subspace, is what keeps this robust when anchors are noisy or languages are distant. A plain multi-way average without partiality should degrade under exactly those conditions.

The method borrows three pieces from 3D matching. Isometric Multi-Shape Matching maps each shape to a latent universe through its own correspondence. Pairwise maps are then compositions, so cycle consistency holds by construction; the paper reports 0 cycle error against 0.16 to 0.68 for pairwise baselines on TOSCA. Disjoint fragments can still be related because each covers part of the universe. DPFM: Deep Partial Functional Maps shows that overlap must be predicted jointly with the map, because non-overlapping regions corrupt a globally fitted solution. Fast Sinkhorn Filters shows that forcing all mass to be matched spreads small fragments across the whole target and produces non-physical matches. We do not use spectral bases or mesh machinery. What transfers is the structure of the solution: a shared reference, partial coverage, and jointly estimated overlap.

Research Program

We work with the five independently developed monolingual models of about 1B parameters used in Cross-Lingual Alignment Without Joint Training: Pythia-1.4B (English), Zh-Pythia-1.4B (Chinese), Tucano-1B (Portuguese), Bielik-1.5B (Polish) and Minerva-1B (Italian). The Goldfish monolingual family serves as an extension for scaling the number of languages. That paper supplies the measurement protocol we reuse: centered kernel alignment (a similarity score between two sets of activations), Procrustes retrieval (fitting the best rotation between two point sets), and cross-model activation patching. It also motivates the proposal. It fits one global rotation per pair from parallel data and reports weaker alignment for distant pairs such as English and Chinese.

For each model $i$, let $x_{i,a} \in \mathbb{R}^{d_i}$ be the mean-pooled middle-layer activation for anchor sentence $a$. We choose middle layers because Can you map it to English? finds that middle-layer alignment causally drives cross-lingual task success. We learn three things jointly:

  • a universe code $u_a \in \mathbb{R}^r$ for each anchor concept;
  • a projection $Q_i \in \mathbb{R}^{d_i \times r}$ for each model, with orthonormal columns ($Q_i^\top Q_i = I$), so that each model's geometry is preserved on the shared part and discarded elsewhere;
  • an overlap weight $w_{i,a} \in [0,1]$ for each model and anchor.

The objective is

$$ \min_{\{Q_i\},\{u_a\},\{w_{i,a}\}} \; \sum_{i}\sum_{a \in A_i} w_{i,a}\, \lVert Q_i^\top x_{i,a} - u_a \rVert^2 \;+\; \lambda \sum_{i}\sum_{a \in A_i} (1 - w_{i,a}), $$

where $A_i$ is the set of anchors available for model $i$ and $\lambda$ is the residual level above which an anchor is treated as non-overlapping.

The sets $A_i$ need not coincide. Polish and Chinese may never share an anchor, as long as the graph of shared anchors across languages is connected. This is the language analogue of torso and leg scans that meet only through the universe. The pairwise map from model $j$ to model $i$ is $Q_i Q_j^\top$, which is cycle-consistent by construction.

Optimization alternates three closed-form steps: an SVD for each $Q_i$ given the codes, a weighted mean for each $u_a$, and a threshold for each $w$. This mirrors the alternating spatial and spectral updates of ISOMUSH. The rank $r$ is below every $d_i$, so directions a model uses for language-specific distinctions are left out of the shared space rather than forced into correspondence. We will select $r$ by held-out retrieval and report how the chosen value varies with typological distance.

A second component handles unlabeled text in a target language, where it is unknown which universe concept a new sentence corresponds to. For this we assign sentences to universe codes with partial optimal transport, in which only a fraction $s<1$ of mass must be matched. This is a direct response to the tension between two results. On a Novel Application of Wasserstein-Procrustes uses full one-to-one matching, via the Hungarian algorithm, to suppress hubness, the tendency of a few points to become everyone's nearest neighbour. The shape literature shows full matching fails under partiality. The partial-mass variant keeps the hubness benefit of transport-based matching while letting unmatched sentences stay unmatched.

Baselines

The naive reference is no alignment: nearest-neighbour retrieval directly between the raw activation spaces. Cross-Lingual Alignment Without Joint Training reports near 0% precision-at-1 for this. It only confirms the task is non-trivial.

The strongest existing method is direct pairwise orthogonal Procrustes fit on the parallel data of each pair, as in the same paper. It reports 88.7% precision-at-1 averaged over 36 language pairs. For English-to-German factual patching it reports an 85% flip rate, against a 98% within-model ceiling. We rerun it ourselves on identical FLORES-200 anchor sets, layers and pooling. When direct parallel data is available, beating it is not required. Matching it within about two points of precision-at-1 counts as parity. Beating it means exceeding it on distant pairs or under corrupted anchors. On pairs where it cannot be fit because no direct anchors exist, it serves as an oracle ceiling computed with the withheld data.

The English-hub baseline fits Procrustes from each language to English and composes the two rotations. This is the pivot structure that Can you map it to English? finds LLMs use internally. FLORES-101 shows that pivot structures cost translation quality: direct translation beat English pivoting in 80% of Indic directions, by more than 3 spBLEU. Beating this baseline means higher precision-at-1 and patching flip rate on non-English pairs, with the same total number of anchors.

Two ablations isolate the key ingredients, and they are also the strongest simple competitors. The first is generalized Procrustes analysis, a shared universe with $w \equiv 1$ and $r = \min_i d_i$. It keeps the shared space and removes partiality. The second is trimmed pairwise Procrustes, which iteratively refits after discarding the highest-residual anchors. It keeps partiality and removes the shared space. For the unsupervised component, the comparison is Iterative Hungarian Wasserstein-Procrustes. No per-language numbers are reported for it in the file ("no reported result found on Lacuna for IH precision on MUSE pairs"), so we rerun it. All methods get the same anchors, layers, and a hyperparameter search of equal size (rank, threshold or trim fraction, transport mass) on the same held-out split.

Why not just…?

Why not just use generalized Procrustes, averaging all languages into one mean space? This is the main threat. If anchors are clean and all five languages are fairly close, it may do as well as our method. The universe is its idea too; partiality is the addition. We therefore design the experiments so the two predictions diverge: corrupted anchors, distant pairs, and anchor graphs where languages cover different concepts. If generalized Procrustes matches us there, we will report that partiality is unnecessary for language model alignment.

Why not just trim high-residual anchors in pairwise Procrustes? Trimming handles outlier examples. It cannot align a pair that lacks direct anchors, and it gives no cycle consistency: Polish-to-Italian-to-Chinese need not agree with Polish-to-Chinese. The sparse-anchor-graph experiment settles this. Trimmed pairwise Procrustes has nothing to fit there, and trimmed English-hub composition is its best form. If that composition matches the universe on non-English pairs, the shared-space component adds nothing.

Why not just train one multilingual model? WikiBERT reports capacity dilution for low-resource languages in massively multilingual models. Role of Language Relatedness finds negative interference from unrelated languages, while related-language fine-tuning lifted Oriya NER F1 from 0.3882 to 0.8848. Joint training also discards existing monolingual specialists. Our question is conditional: given independently trained models, how best to connect them.

Why not just fit a nonlinear network between activation spaces? Cross-Lingual Alignment Without Joint Training found that small neural networks and affine maps reached lower reconstruction error but much worse retrieval than rotations. That is why we keep projections with orthonormal columns and put the extra flexibility into overlap weights and rank rather than nonlinearity.

Proposed Experiments

The first decisive check is a sparse anchor graph, modelled on the simulated-occlusion protocol of Beyond Complete Shapes. That paper shows accuracy collapsing from about 85 AUC on partial-to-full matching to 38.11 on partial-to-partial. We partition FLORES-200 anchor sentences so that each non-English pair shares zero or few direct anchors, while the overall graph stays connected. We then measure precision-at-1 on held-out FLORES-200 and Tatoeba sentences for every pair, plus a cycle error: the fraction of sentences whose retrieval disagrees around language triangles. The prediction is that the universe comes within a few points of the oracle direct Procrustes and beats English-hub composition on non-English pairs, with zero cycle error by construction against nonzero error for pairwise methods.

The second check is controlled partiality. Using the full five-language multi-parallel set, we replace 10% to 40% of one language's anchors with mismatched sentences, drawn from shuffled pairs and from other FLORES domains. We track retrieval, and we track detection of the corrupted anchors via the learned weights, measured by area under the ROC curve (a threshold-free score for how well the weights separate corrupted from clean anchors), analogous to overlap prediction in DPFM. Our method and trimmed Procrustes should hold up, and generalized Procrustes should degrade. On distant pairs (English–Chinese, Chinese–Polish), we test whether a rank-limited shared subspace improves held-out retrieval over full rank. We also check whether the discarded directions carry language-specific signal, using centered kernel alignment computed separately on the kept and discarded parts.

The third check is causal. We repeat cross-model activation patching with the country-to-capital probe of Cross-Lingual Alignment Without Joint Training, extended to more facts because 30 items give wide confidence intervals. Maps come from the universe, from direct Procrustes, and from the English hub, and we patch into non-English targets reached only through the universe. The result is judged against that paper's 85% flip rate and 98% ceiling.

Finally, the unsupervised component is tested with fastText embeddings on MUSE pairs, English to Spanish, French, Italian, German and Russian. We compare partial-mass transport against Iterative Hungarian while shrinking one vocabulary to a skewed subset, so that full one-to-one matching is forced to be wrong. The project fails informatively under two outcomes: generalized Procrustes matches the universe under corruption, or English-hub composition matches it on non-English pairs. Either outcome would bound how much of the shape-matching toolkit language model alignment actually needs.