Read it in Two Steps: Translating Extremely Low-Resource Languages with Code-Augmented Grammar Books
Chen Zhang, Jiuheng Lin, Xiao Liu, Zekai Zhang, Yansong Feng
Abstract
While large language models (LLMs) have shown promise in translating extremely lowresource 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 grammarbased 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 to represent grammar rules as code functions, motivated by their similarities in structures 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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
2 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- A Benchmark for Learning to Translate a New Language from One Grammar Book cites The State and Fate of Linguistic Diversity and Inclusion in the NLP World
- A Benchmark for Learning to Translate a New Language from One Grammar Book cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- RefTool: Reference-Guided Tool Creation for Knowledge-Intensive Reasoning cites A Benchmark for Learning to Translate a New Language from One Grammar Book
- RefTool: Reference-Guided Tool Creation for Knowledge-Intensive Reasoning cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Language models are multilingual chain-of-thought reasoners cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Efficient Low-Resource Language Adaptation via Multi-Source Dynamic Logit Fusion cites A Benchmark for Learning to Translate a New Language from One Grammar Book
- Efficient Low-Resource Language Adaptation via Multi-Source Dynamic Logit Fusion cites The State and Fate of Linguistic Diversity and Inclusion in the NLP World
Cited by top-tier papers2
Builds on18
- Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
- Language Models of Code are Few-Shot Commonsense LearnersAman Madaan, Shuyan Zhou, Uri Alon, Yiming Yang et al.EMNLP 2022 · 103 citations
- A Benchmark for Learning to Translate a New Language from One Grammar BookGarrett Tanzer, Mirac Suzgun, Eline Visser, Dan Jurafsky et al.ICLR 2024 · 97 citations
- Language models are multilingual chain-of-thought reasonersFreda Shi, Mirac Suzgun, Markus Freitag, Xuezhi Wang et al.ICLR 2023 · 52 citations
- The State and Fate of Linguistic Diversity and Inclusion in the NLP WorldPratik Joshi, Sebastin Santy, Amar Budhiraja, Kalika Bali et al.ACL 2020 · 40 citations
Related papers
- Can LLMs Really Learn to Translate a Low-Resource Language from One Grammar Book?Seth Aycock, David Stap, Di Wu, Christof Monz et al.ICLR 2025
- Teaching Large Language Models an Unseen Language on the FlyChen Zhang, Xiao Liu, Jiuheng Lin, Yansong FengACL Findings 2024 · 8 citations
- Understanding In-Context Machine Translation for Low-Resource Languages: A Case Study on ManchuRenhao Pei, Yihong Liu, Peiqin Lin, François Yvon et al.ACL 2025 · 11 citations
- Explicit Learning and the LLM in Machine TranslationMalik Marmonier, Rachel Bawden, Benoît SagotEMNLP 2025
- Self-Correction Makes LLMs Better ParsersZiyan Zhang, Yang Hou, Chen Gong, Zhenghua LiEMNLP Findings 2025 · 5 citations
