Domain-Specific Text Generation for Machine Translation

Yasmin Moslem, Rejwanul Haque, John D. Kelleher, Andy Way
8/11/2022
30 citations
cs.CL

Official code: ymoslem/MT-Preparation (38 stars, Jupyter Notebook, last commit 2025-05-25). 1 more implementation below.

Abstract

Preservation of domain knowledge from the source to target is crucial in any translation workflow. It is common in the translation industry to receive highly specialized projects, where there is hardly any parallel in-domain data.

Show full abstract

In such scenarios where there is insufficient in-domain data to fine-tune Machine Translation (MT) models, producing translations that are consistent with the relevant context is challenging. In this work, we propose a novel approach to domain adaptation leveraging state-of-the-art pretrained language models (LMs) for domain-specific data augmentation for MT, simulating the domain characteristics of either (a) a small bilingual dataset, or (b) the monolingual source text to be translated. Combining this idea with back-translation, we can generate huge amounts of synthetic bilingual in-domain data for both use cases. For our investigation, we use the state-of-the-art Transformer architecture. We employ mixed fine-tuning to train models that significantly improve translation of in-domain texts. More specifically, in both scenarios, our proposed methods achieve improvements of approximately 5-6 BLEU and 2-3 BLEU, respectively, on the Arabic-to-English and English-to-Arabic language pairs. Furthermore, the outcome of human evaluation corroborates the automatic evaluation results.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
ymoslem/MT-PreparationOfficial38Jupyter Notebook–2025-05-25
ymoslem/MT-LMOfficial18Python–2023-08-19

Machine Translation (MT) Preparation Scripts

3819Jupyter Notebook, PythonNov 9, 20201 years ago
neural-machine-translation
ymoslem/MT-LMOfficial100%

Domain-Specific Text Generation for Machine Translation (with LLMs) - scripts and config files for the paper

182PythonAug 6, 20223 years ago
language-modelingmachine-translationnmttext-generation

Similar Papers

Cite this paper

@article{moslem2022domainspecific,
  title  = {Domain-Specific Text Generation for Machine Translation},
  author = {Yasmin Moslem and Rejwanul Haque and John D. Kelleher and Andy Way},
  year   = {2022},
  eprint = {2208.05909},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.05909}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2208.05909.svg)](https://codeofpaper.com/paper/2208.05909)

Discussion