LangGPS: Language Separability Guided Data Pre-Selection for Joint Multilingual Instruction Tuning

Yangfan Ye, Xiaocheng Feng, Xiachong Feng, Lei Huang, Weitao Ma, Qichen Hong, Yunfei Lu, Duyu Tang, Dandan Tu, Bing Qin

TL;DR

LangGPS is a lightweight data selection framework that uses "language separability"—a metric quantifying how distinctly a model represents different languages—to curate training sets for multilingual instruction tuning. By prioritizing samples that help the model establish clear linguistic boundaries, LangGPS consistently improves performance across 22 languages, particularly benefiting low-resource languages and understanding-heavy tasks.

What Problem Does This Paper Address?

Joint multilingual instruction tuning (SFT) is the standard approach for teaching Large Language Models (LLMs) to follow instructions across diverse languages. However, the resulting performance is notoriously sensitive to the composition of the training data.

Existing data selection methods typically focus on general features like text quality, diversity, or task relevance. The authors argue that these methods overlook a critical factor: the intrinsic linguistic structure of multilingual data. In a multilingual latent space, if a model cannot clearly distinguish between languages, it risks conflating linguistic patterns. This "entanglement" is especially damaging for low-resource languages, where the model lacks sufficient signal to maintain distinct boundaries. The challenge is identifying which data samples help the model "organize" its multilingual knowledge most effectively.

Methods

The authors introduce the concept of Language Separability, measured using the Silhouette Score.

  1. Representation Extraction: They feed instruction-response pairs into the model and extract the hidden state of the last token.
  2. Scoring: For every sample, they calculate a Silhouette Score based on its distance to other samples in the same language (intra-cluster) versus samples in the nearest different language (inter-cluster). A high score means the sample is "well-separated" and distinctly belongs to its language.
  3. The LangGPS Framework: This is a two-stage process:
  4. Stage 1 (Pre-selection): Filter the raw dataset to keep only the top $\rho\%$ of samples with the highest language separability.
  5. Stage 2 (Fine-selection): Apply existing data selection algorithms (like Random, K-Means, or gradient-based methods like LESS) on this filtered subset.

This approach is "model-aware," meaning it selects data based on how a specific model currently perceives those languages.

Datasets

  • Training: The Aya dataset, from which they sampled ~98k instruction-response pairs covering 31 languages.
  • Evaluation: Six diverse benchmarks covering 22 languages:
  • Understanding: XNLI (Inference), XStoryCloze (Commonsense), and MMMLU (General knowledge).
  • Generation: MKQA (Question Answering), XQuAD (Reading Comprehension), and XLSum (Summarization).
  • Models Tested: LLaMA-3.1-8B and Qwen2.5-7B.

Key Insights and Ideas

  • Anchors vs. Bridges: The paper reveals a fascinating duality in data utility. Highly separable samples act as "anchors" that help the model form clear linguistic boundaries and adapt quickly. Conversely, low-separability samples act as "bridges" that facilitate cross-lingual alignment and information sharing, but they can cause "cold-start" issues if used alone.
  • Linguistic Boundary Formation: Using t-SNE visualizations, the authors show that training with LangGPS-selected data leads to more compact and distinct language clusters in the model's representation space compared to standard methods.
  • Balanced Curriculum is Best: When ordering data during training, the authors found that a "Balanced" curriculum—interleaving samples with high, medium, and low separability—outperformed strictly "Ascending" or "Descending" orders. This suggests that the model needs a mix of "anchors" and "bridges" throughout the learning process.
  • Efficiency Gains: Because LangGPS acts as a lightweight pre-filter, it significantly reduces the computational overhead of expensive downstream selectors like LESS (which requires calculating gradients). In their tests, it reduced the total selection time from 8 hours to 5.2 hours.

Key Results

  • Consistent Performance Boost: Applying LangGPS on top of existing selectors (like LESS or Random) consistently improved results. For LLaMA-3.1-8B, LangGPS+LESS achieved a +6.37% relative gain over the full dataset baseline.
  • Closing the Resource Gap: The gains were most pronounced in low-resource languages. For example, on MMMLU, the performance lead of high-separability data over low-separability data was as high as 27.8% at small data scales.
  • Task Sensitivity: LangGPS is particularly effective for multilingual understanding tasks, where maintaining clear linguistic distinctions is paramount for reasoning.

Limitations and Future Work

  • Model Dependency: Because the separability score is derived from a specific model's hidden states, the "best" data for LLaMA might not be the "best" for Qwen. This lacks the simplicity of a model-agnostic, static dataset.
  • Translation Nuance: The authors noted that while low-separability samples are bad for general instruction following, they might actually be beneficial for translation tasks. Future work could explore task-specific separability thresholds.
  • Scaling Laws: The study focused on the SFT stage with relatively small data scales (<100k). How language separability interacts with massive-scale pre-training remains an open question.

Summary updated

BibTeX
@inproceedings{ye2026langgps,
  author = {Yangfan Ye and Xiaocheng Feng and Xiachong Feng and Lei Huang and Weitao Ma and Qichen Hong and Yunfei Lu and Duyu Tang and Dandan Tu and Bing Qin},
  title = {{LangGPS: Language Separability Guided Data Pre-Selection for Joint Multilingual Instruction Tuning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i40.40743},
}
Figure