GrammaMT: Improving Machine Translation with Grammar-Informed In-Context Learning
Rita Ramos, Everlyn Asiko Chimoto, Maartje ter Hoeve, Natalie Schluter
Abstract
We introduce GRAMMAMT, a grammaticallyaware prompting approach for machine translation that uses Interlinear Glossed Text (IGT), a common form of linguistic description providing morphological and lexical annotations for source sentences. GRAMMAMT proposes three prompting strategies: gloss-shot, chaingloss and model-gloss. All are training-free, requiring only a few examples that involve minimal effort to collect, and making them wellsuited for low-resource setups. Experiments show that GRAMMAMT enhances translation performance on open-source instruction-tuned LLMs for various low-to high-resource languages across three benchmarks: (1) the largest IGT corpus, (2) the challenging 2023 SIGMOR-PHON Shared Task data over endangered languages, and (3) even in an out-of-domain setting with FLORES. Moreover, ablation studies reveal that leveraging gloss resources could substantially boost MT performance (by over 17 BLEU points) if LLMs accurately generate or access input sentence glosses. Gloss-shot Here are some examples of Swahili sentences and their corresponding English translations: Swahili sentence: (yeye) alimwona (yeye). Gloss: 3SG -PST --see-FV 3SG English sentence: S/he saw him/her. Swahili sentence: Juma alimpiga risasi tembo jana usiku. Gloss: Juma SM.PST.0M.hit bullet elephant yesterday night English sentence: Juma shot an/the elephant last night.
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.
5 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
- Read it in Two Steps: Translating Extremely Low-Resource Languages with Code-Augmented Grammar Books cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Massively Multilingual Joint Segmentation and Glossing cites Can LLMs Really Learn to Translate a Low-Resource Language from One Grammar Book?
- Massively Multilingual Joint Segmentation and Glossing cites LingGym: How Far Are LLMs from Thinking Like Field Linguists?
- Can LLMs Really Learn to Translate a Low-Resource Language from One Grammar Book? cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- Self-Rewarding Language Models cites Measuring Massive Multitask Language Understanding
- Prompting Large Language Model for Machine Translation: A Case Study cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
- LingGym: How Far Are LLMs from Thinking Like Field Linguists? cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
Cited by top-tier papers5
- Read it in Two Steps: Translating Extremely Low-Resource Languages with Code-Augmented Grammar BooksChen Zhang, Jiuheng Lin, Xiao Liu, Zekai Zhang et al.ACL 2025 · 5 citations
- Massively Multilingual Joint Segmentation and GlossingMichael Ginn, Lindia Tjuatja, Enora Rice, Ali Marashian et al.ACL 2026 · 2 citations
- Extracting Linguistic Information from Large Language Models: Syntactic Relations and Derivational KnowledgeTsedeniya Kinfe Temesgen, Marion Di Marco, Alexander FraserEMNLP 2025 · 2 citations
- 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
- LingGym: How Far Are LLMs from Thinking Like Field Linguists?Changbing Yang, Franklin Ma, Freda Shi, Jian ZhuEMNLP 2025
Builds on8
- Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
- Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou et al.ICLR 2021 · 7,905 citations
- Self-Rewarding Language ModelsWeizhe Yuan, Richard Yuanzhe Pang, Kyunghyun Cho, Xian Li et al.ICML 2024 · 569 citations
- Prompting Large Language Model for Machine Translation: A Case StudyBiao Zhang, Barry Haddow, Alexandra BirchICML 2023 · 402 citations
- The Unreasonable Effectiveness of Few-shot Learning for Machine TranslationXavier Garcia, Yamini Bansal, Colin Cherry, George F. Foster et al.ICML 2023 · 133 citations
Related papers
- Can we teach language models to gloss endangered languages?Michael Ginn, Mans Hulden, Alexis PalmerEMNLP Findings 2024 · 2 citations
- BridG MT: Enhancing LLMs' Machine Translation Capabilities with Sentence Bridging and Gradual MTSeungwoo Choi, Gahyun Yoo, Jay-Yoon LeeACL Findings 2025
- Compositional Translation: A Novel LLM-based Approach for Low-resource Machine TranslationArmel Randy Zebaze, Benoît Sagot, Rachel BawdenEMNLP Findings 2025 · 4 citations
- In-context Mixing (ICM): Code-mixed Prompts for Multilingual LLMsBhavani Shankar, Preethi Jyothi, Pushpak BhattacharyyaACL 2024
- Chain-of-Dictionary Prompting Elicits Translation in Large Language ModelsHongyuan Lu, Haoran Yang, Haoyang Huang, Dongdong Zhang et al.EMNLP 2024 · 9 citations
