Manuscript Offprint

arXiv:2611.07797

Dataset Collection and Fine-Tuning of NLLB for German--English Translation

SK Deeraj, Yash Ingle, Pruthwik Mishra

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

This paper describes the curation of a high-quality parallel corpus from OPUS Books and the fine-tuning of Meta's NLLB-200 models for German–English translation. We detail a dataset extraction pipeline that filters 45k raw OPUS sentence pairs to 25k high-quality examples through encoding validation, length filtering, language identification, deduplication, and quality scoring. We present a reproducible fine-tuning methodology optimized for consumer GPUs using mixed precision, gradient accumulation, and gradient checkpointing. Our fine-tuned NLLB-600M model achieves statistically significant improvements (+3.4 BLEU, +2.6 chrF++, -3.2 TER) over the base model on literary and technical German-English translation. We demonstrate practical deployment by integrating the fine-tuned model into LinguaHaru, an existing open-source document translation system, achieving format-preserving translation across PDF and Office documents. All dataset preparation scripts, training code, and evaluation tools are provided for reproducibility at GitHub ¹. The fine-tuned model is available at HuggingFace ².

Index Terms: neural machine translation, NLLB, dataset preparation, fine-tuning, OPUS

1. Introduction

Neural machine translation (NMT) has achieved remarkable progress through large-scale multilingual models like NLLB-200 [1], M2M-100 [2], and mBART [3]. However, these general-purpose models often underperform on specific domains or language pairs due to limited exposure to domain-specific vocabulary, style, and discourse patterns during pre-training. Fine-tuning on targeted parallel corpora has emerged as an effective approach to domain adaptation [4, 5].

This paper addresses the practical challenge of fine-tuning NLLB models for German–English literary and technical translation using freely available OPUS parallel corpora [6]. We focus on three key aspects: (1) systematic dataset curation from noisy web-scale corpora, (2) memory-efficient fine-tuning on consumer hardware, and (3) practical deployment in a document translation pipeline.

References (25)

  • No Language Left Behind: Scaling Human-Centered Machine Translation
  • Beyond English-Centric Multilingual Machine Translation
  • Multilingual Denoising Pre-training for Neural Machine Translation
  • An Empirical Comparison of Domain Adaptation Methods for Neural Machine Translation
  • Multi-Domain Neural Machine Translation through Unsupervised Adaptation
  • OPUS – Parallel Corpora for Everyone
  • Six Challenges for Neural Machine Translation
  • Neural Machine Translation of Rare Words with Subword Units
  • Improving Neural Machine Translation Models with Monolingual Data
  • Distilling the Knowledge in a Neural Network
  • Stanford Neural Machine Translation Systems for Spoken Language Domains
  • Instance Weighting for Neural Machine Translation Domain Adaptation
  • Simple, Scalable Adaptation for Neural Machine Translation
  • LoRA: Low-Rank Adaptation of Large Language Models
  • Catastrophic Forgetting in Connectionist Networks
  • Europarl: A Parallel Corpus for Statistical Machine Translation
  • ParaCrawl: Web-Scale Acquisition of Parallel Corpora
  • On the Impact of Various Types of Noise on Neural Machine Translation
  • Bag of Tricks for Efficient Text Classification
  • WikiMatrix: Mining 135M Parallel Sentences in 1620 Language Pairs from Wikipedia
  • Attention is All You Need
  • Transformers: State-of-the-Art Natural Language Processing
  • BLEU: A Method for Automatic Evaluation of Machine Translation
  • Training Neural Machine Translation to Apply Terminology Constraints
  • LinguaHaru: Format-preserving document translation pipeline