Improving Domain-Specific Translation from English into Ukrainian with Retrieval-Augmented Generation

· Source: Paper Index on ACL Anthology · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, quick

Summary

A study explores retrieval-augmented generation (RAG) to enhance English-Ukrainian machine translation within a private legal/military corpus. The approach feeds semantically similar translation units, found via vector embeddings, as in-context examples to large language models. Researchers evaluated three open-weight Gemma 3 models (4B, 12B, 27B) against Gemini 3 Flash, testing five augmentation conditions with k values of 0, 3, 5, 10, and 25 on a 2,581-pair index and a 258-pair test set. Findings indicate that context augmentation significantly improves both ChrF++ and COMET scores across all models. Notably, the 4B model's COMET score increased by 0.076 at k=3. However, smaller models like the 4B Gemma 3 exhibited context saturation, peaking at k=10 and degrading with further context, losing 9.72 ChrF++ points and 0.007 COMET between k=10 and k=25, while larger models continued to benefit from increased context.

Key takeaway

For NLP Engineers developing domain-specific translation systems, you should integrate retrieval-augmented generation (RAG) to significantly boost quality, especially for lower-resourced languages like Ukrainian. When implementing RAG, carefully tune the number of retrieved examples (k) for your chosen LLM. Be aware that smaller models, such as Gemma 3 4B, can experience context saturation, degrading performance if k is too high. Larger models, like Gemma 3 27B, generally benefit from more context.

Key insights

Retrieval-augmented generation significantly improves domain-specific English-Ukrainian translation, but smaller LLMs can suffer from context saturation.

Principles

Method

Semantically similar translation units, retrieved via vector embeddings, are provided as in-context examples to a large language model for domain-specific translation.

In practice

Topics

Best for: Research Scientist, AI Scientist, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Paper Index on ACL Anthology.