[Paper Review] Fine-tuning Large Language Models for Domain-specific Machine Translation
The paper introduces LlamaIT, a prompt-oriented fine-tuning method using LoRA to adapt a general-purpose LLM (Llama2-7B) for domain-specific machine translation, enhanced with domain vocabulary prompts and mix-domain data to preserve zero-shot MT abilities.
Large language models (LLMs) have shown great potential in domain-specific machine translation (MT). However, one major issue is that LLMs pre-trained on general domain corpus might not generalize well to specific domains due to the lack of domain-specific knowledge. To address this issue, this paper focuses on enhancing the domain-specific MT capability of LLMs, by providing high-quality training datasets and proposing a novel fine-tuning framework denoted by DragFT. DragFT augments LLMs via three techniques: (i) Dictionary-enhanced prompting integrates dictionary information into prompts to improve the translation of domain-specific terminology.; (ii) RAG-based few-shot example selection provides high-quality examples that simulate both the domain and style characteristics; (iii) Fine-tuning with few-shot examples further enhances performance when using in-domain examples. We deploy DragFT on three well-known LLM backbones with 13B training parameters to validate its effectiveness. The results on three domain-specific datasets show that DragFT achieves a significant performance boost and shows superior performance compared to advanced models such as GPT-3.5 and GPT-4o. The drastic performance improvement of DragFT over existing LLMs can be attributed to incorporating relevant knowledge while mitigating noise.
Motivation & Objective
- Motivate improved domain-specific MT by addressing inefficiencies of in-context learning and over-specialization from fine-tuning.
- Propose a lightweight fine-tuning approach (LoRA) guided by natural-language translation instructions.
- Leverage a self-constructed IT domain dataset and domain vocabulary to boost rare-word translation.
- Demonstrate that mix-domain training preserves zero-shot MT abilities while enhancing domain-specific MT.
- Show that dictionary-based prompting outperforms chain-of-dictionary prompting for domain terms.
Proposed method
- Create a domain-specific bilingual dataset (IT domain) by aligning Chinese-English IT documentation and validating with a zero-shot translator.
- Generate instruction-descriptions of translation tasks in English and fine-tune with LoRA on this dataset to enable zero-shot translation in inference.
- Augment training with domain vocabulary (a large IT bilingual dictionary) via dictionary-based prompting (Dictionary-Rephrasing and Chain-of-Dictionary variants).
- Construct a final mix-domain dataset combining domain-specific and general-domain data to restore zero-shot MT capabilities and prevent over-specialization.
- Evaluate prompting templates to identify the most effective English instruction style for MT prompts.
- Compare parameter-efficient fine-tuning (LoRA) against full fine-tuning to assess training efficiency.
Experimental results
Research questions
- RQ1Can prompt-oriented fine-tuning with LoRA improve domain-specific MT while avoiding post-processing and reliance on in-context examples?
- RQ2Does incorporating domain-specific vocabulary through dictionary-based prompting improve translation of rare domain terms?
- RQ3Does training on a mix of domain-specific and general-domain data preserve zero-shot MT capabilities while enhancing domain MT?
- RQ4What is the impact of translation instruction templates on MT performance?
Key findings
- Prompt-oriented fine-tuning (LlamaIT) substantially improves domain-specific MT over base LLMs on IT-domain translation tasks.
- Dictionary-based prompting (Dictionary-Rephrasing) outperforms chain-of-dictionary prompting for handling domain terms.
- Fine-tuning with LoRA achieves large gains in domain MT with far fewer trainable parameters and reduced training time compared to full fine-tuning.
- Mix-domain training helps repair zero-shot MT capabilities for general domains, while maintaining strong domain MT performance.
- Zero-shot prompting with English instruction templates yields the best average MT performance among tested templates.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.