Cross-Lingual Representation Alignment by Token-Level Optimal Transport in a Language-Agnostic Space

Taisei Yamamoto, Ryoma Kumon, Danushka Bollegala, Hitomi YanakaarXiv 2026

TL;DR

Multilingual Large Language Models (LLMs) often perform poorly in low-resource languages due to a lack of training data. This paper introduces CAROT, a method that improves cross-lingual transfer by separating language-specific syntax from core semantic content and aligning the semantics at the token level using optimal transport. CAROT boosts multilingual task accuracy by up to 11.2 points during inference-time steering and serves as an effective training target without causing the model to output the wrong language.

What Problem Does This Paper Address?

While modern LLMs are technically multilingual, their capabilities are highly uneven. They perform exceptionally well in dominant languages like English but struggle with low-resource languages. To fix this, researchers use Cross-Lingual Alignment (CLA) to make the model's internal representations of different languages look more like its dominant language.

However, existing CLA methods suffer from two major flaws:

  1. Sentence-Level Blindness: They typically align representations at the sentence level, ignoring the fact that languages have completely different word orders and grammatical structures (e.g., English vs. Japanese).
  2. Information Erasure: They blindly minimize the distance between parallel sentences, which risks destroying the language-specific features (like script, syntax, and markers) that the model needs to actually generate text in the target language. This often leads to "language mismatch," where a model prompted in French suddenly starts responding in English.

Methods

The authors propose CAROT (Cross-Lingual Alignment of Representations in a Language-Agnostic Space via Optimal Transport), a two-stage framework designed to align semantics while protecting language identity.

Figure 1: Overview of CAROT. Stage 1 (Decomposition): LEACE decomposes the hidden states of each token into language-agnostic components (Asrc and Atgt) and a language-specific component (Stgt). Stage 2 (Alignment): Unbalanced optimal transport aligns Asrc with Atgt at the token level, producing ideal language- agnostic representations ˆAtgt. Application: The aligned representations are recombined with the preserved language-specific component to form ˆHtgt, which is used for inference-time steering or as a training signal.

Stage 1: Decomposition

CAROT uses a concept erasure method called LEACE (Linear Concept Erasure) to analyze token hidden states. It strips away linearly encoded language-specific information, isolating a "language-agnostic" semantic representation ($A$) while preserving the language-specific component ($S_{tgt}$) on the side.

Stage 2: Token-Level Alignment via Optimal Transport

Instead of forcing a rough sentence-level match, CAROT aligns the language-agnostic representations at the token level. Because parallel sentences vary in length and structure, the authors formulate this as an unbalanced optimal transport (OT) problem solved via the Sinkhorn algorithm. It maps tokens from the target language to the source language (English) based on Mahalanobis distance, which accounts for the anisotropic nature of LLM embeddings.

A perplexity-based filtering step is applied to eliminate noisy, diffuse alignments. Finally, the newly aligned target semantic tokens are recombined with the preserved language-specific components ($\hat{H}_{tgt} = \hat{A}_{tgt} + S_{tgt}$).

Applications

CAROT's aligned representations can be used in two ways:

  • Inference-Time Steering: Intervening mid-forward pass to swap the model's natural hidden states with CAROT's optimized targets.
  • Post-Training Target: Using the CAROT representations as a distillation target during fine-tuning, forcing the model to internalize these aligned spaces naturally.

Datasets

  • Alignment & LEACE Training: Parallel sentences from WMT24++ and NTREX across 12 in-distribution (ID) languages.
  • Instruction Tuning: The multilingual Aya Dataset was used for the training experiments.
  • Evaluation Benchmarks:
  • GMMLU: Evaluates knowledge and reasoning.
  • KLAR (Continent category): Evaluates knowledge retrieval.
  • BELEBELE: Evaluates reading comprehension.
  • XQuAD: Evaluates open-ended question answering.
  • FLORES+: Used to analyze internal representations and evaluate out-of-distribution (OOD) language generalization.

Key Insights and Ideas

  • Disentanglement is Mandatory: As shown via PCA and t-SNE visualizations, raw LLM representations cluster heavily by language. Applying LEACE successfully mixes the semantic content across languages while isolating the language identity into a distinct subspace.
PCA and t-SNE plots showing how LEACE successfully separates language-specific and language-agnostic components.
  • Token-Level Granularity Matters: Swapping only sentence-level representations or last-token representations fails to capture structural shifts. Optimal transport provides a mathematically rigorous way to softly align words across different grammatical structures (e.g., aligning English adjectives with French nouns properly).
  • The "Representation Drift" Dilemma: While CAROT steering works incredibly well, training an LLM to match CAROT targets yields smaller gains. The authors discovered that as the model learns, its internal representation space drifts, making the precomputed LEACE erasers and covariance matrices less accurate over time.

Key Results

  • Inference Steering Superiority: In steering experiments across three models (Llama3.1-8B, gemma3-4b, Qwen3-4B), CAROT consistently outperformed baselines like Language Vectors and MLRS. It achieved accuracy improvements of up to 11.2 points over unsteered models while maintaining high language fidelity (not outputting the wrong language).
  • Robust Post-Training: When integrated into instruction tuning, CAROT-trained models outperformed standard Supervised Fine-Tuning (SFT) and MidAlign in 11 out of 18 evaluation settings across various tasks and languages.
  • OOD Generalization: LEACE-based erasure demonstrated an ability to capture language-specific features that generalize even to out-of-distribution languages not seen during the LEACE training phase.

Limitations and Future Work

  • Model Scale: The study was limited to 4B–8B parameter models due to compute constraints; behavior on 70B+ models remains untested.
  • Linearity Assumption: LEACE operates under the assumption that language features are linearly encoded. Since LLMs utilize highly non-linear transformations, CAROT might be missing non-linear language traits.
  • Static Parameters during Training: To fix the "representation drift" during training, future work will need to explore periodically updating the LEACE erasers and covariance matrices dynamically.
  • Alignment vs. Culture: The authors note that aggressive cross-lingual alignment can sometimes erase culturally specific knowledge, an area CAROT aims to mitigate but requires deeper evaluation.

Summary updated

BibTeX
@misc{yamamoto2026cross,
  author = {Taisei Yamamoto and Ryoma Kumon and Danushka Bollegala and Hitomi Yanaka},
  title = {{Cross-Lingual Representation Alignment by Token-Level Optimal Transport in a Language-Agnostic Space}},
  year = {2026},
  eprint = {2609.06381},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.06381},
}
Figure