Online Language Adaptive Sampling for Better Distributed Cross-lingual Gains

Quang Phuoc Nguyen, Félix Gaschi, David Anugraha, Santiago Martínez Novoa, En-Shiun Annie Lee
9/14/2026
cs.CLcs.AI

Official code: felixgaschi/multilingual-alignment-and-transfer (0 stars, MIT, last commit 2026-05-23).

Abstract

Realignment is a promising approach for improving the cross-lingual transfer ability of multilingual language models, particularly for extremely low-resource languages (LRLs). However, existing realignment methods rely on uniform and random sampling of parallel sentences across languages, which may be suboptimal under limited batch sizes. In practice, models may benefit from seeing certain languages more frequently, especially those that are poorly aligned, and the optimal distribution can evolve throughout training. In this work, we propose a simple yet effective adaptive sampling strategy that assigns trainable sampling probabilities to each language. Languages that contribute more to the realignment loss are sampled more frequently in subsequent batches, and the optimal distribution can evolve throughout training. Our method employs an inner-outer optimization loop with a small overhead, leading to consistent performance improvements and, more importantly, distributing the gains across languages. We observed a $+0.67$ average performance increase on all tasks with XLM-R, and $+0.60$ with Gemma 2 9B compared with uniform realignment. Furthermore, our method is robust across different models. Code available at https://github.com/felixgaschi/multilingual-alignment-and-transfer.

View on arXivView PDF

Code Implementations(1)

MIT
00Shell, PythonNov 8, 20255 months agoMIT

Similar Papers

Cite this paper

@article{nguyen2026online,
  title  = {Online Language Adaptive Sampling for Better Distributed Cross-lingual Gains},
  author = {Quang Phuoc Nguyen and Félix Gaschi and David Anugraha and Santiago Martínez Novoa and En-Shiun Annie Lee},
  year   = {2026},
  eprint = {2609.14969},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.14969v1}
}

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/2609.14969.svg)](https://codeofpaper.com/paper/2609.14969)

Discussion