arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.03454cs.CLcs.AI
收藏

多少数据才算足够?面向内部翻译微调大型语言模型:跨多种数据集规模的性能评估

How Much Data is Enough Data? Fine-Tuning Large Language Models for In-House Translation: Performance Evaluation Across Multiple Dataset Sizes

Dublin City University(都柏林城市大学);Alpha CRC(阿尔法CRC);Munster Technological University(芒斯特理工大学);ADAPT Centre(ADAPT中心);SALIS

Inacio Vieira, Will Allred, Séamus Lankford, Sheila Castilho, Andy Way

AI总结:

本文评估用企业翻译记忆库微调Llama 3 8B Instruct的内部翻译效果,发现数据量增至207k句段可显著提升多语种指标,但1k至2k样本反而降低性能。

摘要:

仅解码器大型语言模型(LLM)凭借从大规模数据集中学习并生成高质量译文的能力,已在机器翻译(MT)中展现出令人瞩目的性能。然而,LLM往往难以把握组织特定翻译所需的细微差别与风格。在本研究中,我们探索了利用翻译记忆库(TM)微调大型语言模型(LLM),尤其是Llama 3 8B Instruct的有效性,并将TM作为提升准确性和效率的宝贵资源。我们研究了使用来自软件行业某一特定组织的TM微调Llama 3模型所产生的影响。实验涵盖五种翻译方向,涉及资源水平各不相同的语言(英语译为巴西葡萄牙语、捷克语、德语、芬兰语和韩语)。我们分析了不同规模的训练数据集(1k至207k个句段),以评估其对翻译质量的影响。我们为每个训练集分别微调模型,并基于自动指标BLEU、chrF++、TER和COMET评估其性能。研究结果表明,在所有指标上,数据集越大,翻译性能越好。平均而言,与基线模型相比,使用最大训练集时BLEU和COMET分数分别提高13分和25分。值得注意的是,仅使用1k和2k个样本进行微调时,性能相较基线模型出现下降;但随着训练数据集规模增大,我们观察到显著改善。本研究强调了将TM与LLM相结合、创建适配企业特定需求的定制翻译模型的潜力,从而提高翻译质量并缩短周转时间。该方法为希望利用TM和LLM获得最佳翻译效果的组织提供了宝贵洞见,尤其是在较窄领域中。

英文摘要:

Decoder-only LLMs have shown impressive performance in MT due to their ability to learn from extensive datasets and generate high-quality translations. However, LLMs often struggle with the nuances and style required for organisation-specific translation. In this study, we explore the effectiveness of fine-tuning Large Language Models (LLMs), particularly Llama 3 8B Instruct, leveraging translation memories (TMs), as a valuable resource to enhance accuracy and efficiency. We investigate the impact of fine-tuning the Llama 3 model using TMs from a specific organisation in the software sector. Our experiments cover five translation directions across languages of varying resource levels (English to Brazilian Portuguese, Czech, German, Finnish, and Korean). We analyse diverse sizes of training datasets (1k to 207k segments) to evaluate their influence on translation quality. We fine-tune separate models for each training set and evaluate their performance based on automatic metrics, BLEU, chrF++, TER, and COMET. Our findings reveal improvement in translation performance with larger datasets across all metrics. On average, BLEU and COMET scores increase by 13 and 25 points, respectively, on the largest training set against the baseline model. Notably, there is a performance deterioration in comparison with the baseline model when fine-tuning on only 1k and 2k examples; however, we observe a substantial improvement as the training dataset size increases. The study highlights the potential of integrating TMs with LLMs to create bespoke translation models tailored to the specific needs of businesses, thus enhancing translation quality and reducing turn-around times. This approach offers a valuable insight for organisations seeking to leverage TMs and LLMs for optimal translation outcomes, especially in narrower domains.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑