Abstract
Developing state-of-the-art (SOTA) machine translation (MT) models typically requires massive computational resources. This paper presents "lite" training strategies that enable high-quality Portuguese-English translation using consumer-grade hardware. By performing a targeted adaptation of the T5 tokenizer to include Portuguese-specific characters and utilizing hardware-efficient training techniques like batch accumulation, the researchers achieved a 4.8 BLEU point improvement. The results demonstrate that competitive MT performance can be reached on a single 8GB GPU, significantly lowering the barrier to entry for MT research.
Introduction
The current landscape of machine translation is dominated by large-scale models requiring dozens of high-end industrial GPUs. Furthermore, many powerful pre-trained models, such as T5, are inherently English-centric. When applied to languages like Portuguese, these models often struggle with diacritics and special characters (e.g., ã, ç). Standard tokenizers frequently lack these characters in their vocabulary, leading to word fragmentation and "unknown" tokens that degrade translation quality. This research addresses these challenges by proposing efficient transfer learning and vocabulary adaptation methods.
Tokenizer Adaptation and Training Strategy
The core of the "lite" approach involves a "surgical" update to the existing T5 tokenizer rather than retraining from scratch. The researchers added 14 Portuguese accented characters and the common word "no" to the vocabulary.
As shown in the figure above, the original tokenizer often fails to correctly decode Portuguese words containing special characters, resulting in fragments or placeholder symbols. By completing the token set and implementing a post-processing algorithm to merge these characters back into their parent words, the model maintains the integrity of the target language.
To overcome the memory constraints of an 8GB NVIDIA RTX 2070 GPU, the team utilized batch accumulation. This technique allows the simulation of a large batch size (256) by accumulating gradients over multiple smaller physical passes, enabling the training of larger models on limited VRAM.
Datasets
The study leveraged several parallel corpora:
- ParaCrawl: A 5-million sentence subset was used for general-domain training.
- ParaCrawl 99k: A new, high-quality deduplicated test set released by the authors to provide a robust benchmark.
- Biomedical Corpora: Domain-specific data from sources like EMEA, CAPES, and Scielo were used for specialized translation tasks.
Key Results
The impact of tokenizer adaptation was immediate and significant. On the ParaCrawl 99k English-to-Portuguese test set, the simple addition of Portuguese characters led to a substantial performance boost.
Beyond the +4.8 BLEU point jump shown above, the "lite" models proved highly competitive in specialized domains. In the WMT19 Biomedical task (Portuguese-to-English), the model achieved 48.16 BLEU, nearly matching the SOTA winning system (48.18) which was trained on hardware ten times more expensive. Remarkably, the model even slightly outperformed Google Translate on specific English-to-Portuguese benchmarks (45.44 vs. 45.17).
Conclusion
This work demonstrates that meaningful machine translation research is not exclusive to large organizations with massive compute clusters. By focusing on efficient vocabulary adaptation and smart training techniques, researchers can achieve SOTA-level performance on consumer hardware. Future work will explore scaling these strategies to larger T5 variants and investigating multilingual pre-training to further enhance cross-lingual transfer efficiency.
Summary updated