轻量化翻译模型助力非洲语言高效部署
AfriNLLB: Efficient Translation Models for African Languages
- 基于NLLB-200压缩并优化,采用层剪枝与量化技术
- 15语言对30方向翻译,性能接近基线但推理更快
- 适合资源受限场景,支持微调与高效推理
本文提出AfriNLLB,一系列用于非洲语言高效翻译的轻量级模型。支持15个语言对(30个翻译方向),涵盖斯瓦希里语、豪萨语、约鲁巴语、阿姆哈拉语、索马里语、祖鲁语、林加拉语、南非荷兰语、沃洛夫语及埃及阿拉伯语等非洲联盟官方语言,包括现代标准阿拉伯语、法语、葡萄牙语和西班牙语。训练数据涵盖英语与13种语言、法语与两种语言(林加拉语、沃洛夫语)之间的双向翻译。模型基于NLLB-200 600M,通过迭代层剪枝与量化压缩,并在自建平行语料上用大模型知识蒸馏进行微调。评估表明,其性能接近基线,但推理速度显著提升。我们发布两个版本:支持进一步微调的Transformers版,以及用于高效推理的CTranslate2版。同时开放所有微调训练数据,以促进后续研究。
原文摘要 · Abstract (English)
In this work, we present AfriNLLB, a series of lightweight models for efficient translation from and into African languages. AfriNLLB supports 15 language pairs (30 translation directions), including Swahili, Hausa, Yoruba, Amharic, Somali, Zulu, Lingala, Afrikaans, Wolof, and Egyptian Arabic, as well as other African Union official languages such as Arabic (MSA), French, Portuguese, and Spanish. Our training data covers bidirectional translation between English and 13 languages, and between French and two languages (Lingala and Wolof). AfriNLLB models are based on NLLB-200 600M, which we compress using iterative layer pruning and quantization. We fine-tune the pruned models on parallel corpora we curated for African languages, employing knowledge distillation from a larger teacher model. Our work aims at enabling efficient deployment of translation models for African languages in resource-constrained settings. Our evaluation results demonstrate that AfriNLLB models achieve performance comparable to the baseline while being significantly faster. We release two versions of the AfriNLLB models, a Transformers version that allows further fine-tuning and a CTranslate2 version for efficient inference. Moreover, we release all the training data that we used for fine-tuning the baseline and pruned models to facilitate further research.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。