Languages are Modalities: Cross-Lingual Alignment via Encoder Injection

Rajan Agarwal, Aarush Gupta
10/31/2025
cs.CLcs.AIcs.LG

No official code found. Best implementation: rajansagarwal/llink (9 stars, last commit 2025-10-31).

Abstract

Instruction-tuned Large Language Models (LLMs) underperform on low resource, non-Latin scripts due to tokenizer fragmentation and weak cross-lingual coupling. We present LLINK (Latent Language Injection for Non-English Knowledge), a compute efficient language-as-modality method that conditions an instruction-tuned decoder without changing the tokenizer or retraining the decoder. First, we align sentence embeddings from a frozen multilingual encoder to the decoder's latent embedding space at a reserved position via a lightweight contrastive projector. Second, the vector is expanded into K soft slots and trained with minimal adapters so the frozen decoder consumes the signal. LLINK substantially improves bilingual retrieval and achieves 81.3% preference over the base model and 63.6% over direct fine-tuning in LLM-judged Q&A evaluations. We further find that improvements can be attributed to reduced tokenization inflation and a stronger cross lingual alignment, despite the model having residual weaknesses in numeric fidelity. Treating low resource languages as a modality offers a practical path to stronger cross-lingual alignment in lightweight LLMs.

View on arXivView PDF

Code Implementations(1)

Training and Inference for "Languages are Modalities: Cross-Lingual Alignment via Encoder Injection"

90Python, JavaScriptSep 26, 202511 months ago

Similar Papers

Cite this paper

@article{agarwal2025languages,
  title  = {Languages are Modalities: Cross-Lingual Alignment via Encoder Injection},
  author = {Rajan Agarwal and Aarush Gupta},
  year   = {2025},
  eprint = {2510.27254},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.27254v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.27254.svg)](https://codeofpaper.com/paper/2510.27254)

Discussion