58
0

Read it in Two Steps: Translating Extremely Low-Resource Languages with Code-Augmented Grammar Books

Main:8 Pages
7 Figures
Bibliography:3 Pages
16 Tables
Appendix:10 Pages
Abstract

While large language models (LLMs) have shown promise in translating extremely low-resource languages using resources like dictionaries, the effectiveness of grammar books remains debated. This paper investigates the role of grammar books in translating extremely low-resource languages by decomposing it into two key steps: grammar rule retrieval and application. To facilitate the study, we introduce ZhuangRules, a modularized dataset of grammar rules and their corresponding test sentences. Our analysis reveals that rule retrieval constitutes a primary bottleneck in grammar-based translation. Moreover, although LLMs can apply simple rules for translation when explicitly provided, they encounter difficulties in handling more complex rules. To address these challenges, we propose representing grammar rules as code functions, considering their similarities in structure and the benefit of code in facilitating LLM reasoning. Our experiments show that using code rules significantly boosts both rule retrieval and application, ultimately resulting in a 13.1% BLEU improvement in translation.

View on arXiv
@article{zhang2025_2506.01796,
  title={ Read it in Two Steps: Translating Extremely Low-Resource Languages with Code-Augmented Grammar Books },
  author={ Chen Zhang and Jiuheng Lin and Xiao Liu and Zekai Zhang and Yansong Feng },
  journal={arXiv preprint arXiv:2506.01796},
  year={ 2025 }
}
Comments on this paper