Read it in Two Steps: Translating Extremely Low-Resource Languages with Code-Augmented Grammar Books
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 4 papers in the map (data through 13 Oct 2026). Builds on 20 of its 42 references that are in the map. First posted on arXiv 2 Jun 2025.
Builds on
20 of 42 references.
References · 20
- 2024The Llama 3 Herd of Modelscited by 14,486
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,197
- 2018A Call for Clarity in Reporting BLEU Scorescited by 1,793
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,066
- 2020Multilingual Denoising Pre-training for Neural Machine Translationcited by 1,033
- 2020The State and Fate of Linguistic Diversity and Inclusion in the NLP Worldcited by 792
- 2022Language Models of Code are Few-Shot Commonsense Learnerscited by 160
- 2022BLOOM+1: Adding Language Support to BLOOM for Zero-Shot Promptingcited by 90
- 2023Do Multilingual Language Models Think Better in English?cited by 87
- 2023Dictionary-based Phrase-level Prompting of Large Language Models for Machine Translationcited by 74
- 2023A Benchmark for Learning to Translate a New Language from One Grammar Bookcited by 74
- 2024Can LLMs Really Learn to Translate a Low-Resource Language from One Grammar Book?cited by 23
8 more
- 2024Code Prompting Elicits Conditional Reasoning Abilities in Text+Code LLMscited by 20
- 2024Shortcomings of LLMs for Low-Resource Translation: Retrieval and Understanding are Both the Problemcited by 17
- 2024Can we teach language models to gloss endangered languages?cited by 14
- 2024GlossLM: A Massively Multilingual Corpus and Pretrained Model for Interlinear Glossed Textcited by 12
- 2024Back to School: Translation Using Grammar Bookscited by 11
- 2023Leveraging Code to Improve In-context Learning for Semantic Parsingcited by 10
- 2024Eliciting Better Multilingual Structured Reasoning from LLMs through Codecited by 9
- 2024GrammaMT: Improving Machine Translation with Grammar-Informed In-Context Learningcited by 5
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Syntax as a Rosetta Stone: Universal Dependencies for In-Context Coptic Translationcited by 1
- 2026Rashid: A Cipher-Based Framework for Exploring In-Context Language Learningcited by 0
- 2026Efficient Low-Resource Language Adaptation via Multi-Source Dynamic Logit Fusioncited by 0
- 2026A Factorial Study of Synthetic Data Generation for Low-Resource Machine Translation using Grammar Bookscited by 0
- 2026A Factorial Study of Synthetic Data Generation for Low-Resource Machine Translation using Grammar Books24 Jul 2026
- 2026Syntax as a Rosetta Stone: Universal Dependencies for In-Context Coptic Translation20 Apr 2026
- 2026Efficient Low-Resource Language Adaptation via Multi-Source Dynamic Logit Fusion20 Apr 2026
- 2026Rashid: A Cipher-Based Framework for Exploring In-Context Language Learning23 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2025Do Large Language Models Grasp The Grammar? Evidence from Grammar-Book-Guided Probing in Luxembourgish
- 2026Reasoning over Grammar: Can Synthetic Linguistic Reasoning Traces Enhance Low-Resource Machine Translation?
- 2025Enhancing Low-Resource Minority Language Translation with LLMs and Retrieval-Augmented Generation for Cultural Nuances
- 2024From MTEB to MTOB: Retrieval-Augmented Classification for Descriptive Grammars
- 2024Enhancing Code Translation in Language Models with Few-Shot Learning via Retrieval-Augmented Generation
- 2025Exposing the Cracks: Vulnerabilities of Retrieval-Augmented LLM-based Machine Translation
- 2024Low-Resource Machine Translation through Retrieval-Augmented LLM Prompting: A Study on the Mambai Language
- 2025Aligning Large Language Models to Low-Resource Languages through LLM-Based Selective Translation: A Systematic Study