Aligning Large Language Models to Low-Resource Languages through LLM-Based Selective Translation: A Systematic Study

Rakesh Paul, Anusha Kamath, Kanishk Singla, Raviraj Joshi, Utkarsh Vaidya, Sanjay Singh Chauhan, Niranjan WartikararXiv 2025 · DOI

Introduction

Large Language Models (LLMs) demonstrate remarkable capabilities in English, yet their performance often degrades significantly in low-resource languages like Hindi. This disparity is primarily driven by the scarcity of high-quality alignment data in non-English languages. While standard practice involves translating English datasets using Machine Translation (MT) services, these tools often fail to preserve the technical structure of prompts—such as code, mathematical notation, and structured data formats—leading to corrupted training samples.

The Challenge of Structural Integrity

Standard MT services are typically "structure-blind." When tasked with translating a technical prompt, they may attempt to translate Python keywords, variable names, or JSON keys into the target language. This results in non-functional code and broken logic, which limits the model's ability to follow complex instructions or solve technical problems in the target language. The researchers identify that for effective alignment, preserving the structure of a prompt is often more critical than the literal translation of every word.

Figure 1: Comparison between standard Translate API and Selective Translation. Standard MT often corrupts code and technical structure, whereas Selective Translation preserves these elements.

Methodology: Selective Translation and Filtering

To address these limitations, this study introduces a systematic pipeline for multilingual alignment centered on LLM-based selective translation.

1. Selective Translation

Instead of traditional line-by-line translation, the researchers utilize a high-capacity model (Llama-3.1-405B) guided by a "Selective Translation Prompt." This approach instructs the model to translate only the natural language prose while maintaining the exact original format for code snippets, URLs, file paths, and mathematical symbols. This prevents the "hallucinated" code translations that plague vanilla MT.

2. The FAITH Quality Filter

To ensure the integrity of the generated data, the authors implemented the FAITH filter. A separate LLM judge evaluates translations based on five key dimensions: Fluency, Accuracy, Idiomaticity, Terminology, and Handling of Format. Only samples achieving perfect scores across all metrics are retained for training. Filtering out nearly 50% of the translated data using this metric did not hurt performance, proving that quality is more impactful than sheer volume.

3. Hybrid Safety Routing

Recognizing that high-end LLMs often refuse to translate potentially "unsafe" content, the pipeline includes a safety guardrail. Queries identified as unsafe are routed to standard GCP translation. This ensures the model still learns appropriate refusal behaviors in the target language without compromising the overall quality of the alignment set.

Key Findings

The experimental results demonstrate that selective translation significantly enhances model performance across a variety of benchmarks, particularly in technical domains.

Figure 5: Comparative performance of LLM-based vs. GCP-based translation across various task categories. Blue indicates cases where only the LLM-based method was successful.

Superior Reasoning and Instruction Following

Models aligned using the selective translation method consistently outperformed those using standard GCP translations. Notably, the LLM-based approach showed marked improvements in benchmarks requiring strict adherence to constraints, such as IFEval-Hi. This is attributed to the preservation of "verifiable constraints" (e.g., specific formatting requirements) that are often lost in vanilla MT. In mathematical reasoning (GSM8K-Hi), the LLM-based approach achieved an accuracy of 43.44%, significantly outperforming GCP in specific configurations.

The Importance of Data Mixing

A critical insight from the study is that training exclusively on Hindi data is insufficient. Maintaining the original English data alongside the translated Hindi samples is essential for preserving the model's underlying reasoning capabilities and general intelligence.

Conclusion

LLM-based selective translation provides a robust framework for bridging the performance gap in low-resource languages. By prioritizing structural integrity and high-fidelity translation, this method allows for the creation of effective multilingual models even with modest amounts of translated data. Future work will explore the scalability of this approach to even lower-resource languages and the potential for using smaller, specialized models for the selective translation task.

Summary updated

BibTeX
@misc{paul2025aligning,
  author = {Rakesh Paul and Anusha Kamath and Kanishk Singla and Raviraj Joshi and Utkarsh Vaidya and Sanjay Singh Chauhan and Niranjan Wartikar},
  title = {{Aligning Large Language Models to Low-Resource Languages through LLM-Based Selective Translation: A Systematic Study}},
  year = {2025},
  eprint = {2507.14304},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.14304},
}
Figure