GrammaMT: Improving Machine Translation with Grammar-Informed In-Context Learning
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-shotHere are some examples of {Swahili} sentences and their corresponding {English} translations
Authors
- Maartje ter Hoeve
- Natalie Schluter (ORCID: https://orcid.org/0000-0001-8215-4801)
- Everlyn Asiko Chimoto
- Rita Ramos (ORCID: https://orcid.org/0000-0002-8741-8164)
Publication Details
- Published
- 2025-01-01
- DOI
- https://doi.org/10.18653/v1/2025.acl-long.1447
- Citations
- 1
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 2.48