微调大语言模型以实现翻译:少量错配语言的噪声数据是否足够?
Fine-Tuning Large Language Models to Translate: Will a Touch of Noisy Data in Misaligned Languages Suffice?
AI总结:
本研究重新审视大语言模型翻译微调中数据量、方向、质量三因素的作用,发现少量平行句即可实现多方向翻译,但需注意翻译方向选择与噪声数据影响,避免模型利用非预期数据偏差。
摘要:
传统上,多语言机器翻译的成功可归因于训练数据的三个关键因素:数据量大、翻译方向多样以及质量高。在当前微调大语言模型(LLMs)用于翻译的实践中,我们重新审视了这些因素的重要性。我们发现,LLMs 仅在少至32个平行句上微调后就展现出强大的翻译能力,且仅在单个翻译方向上微调就能实现多方向翻译。然而,方向的选择至关重要:仅用目标端为英语的数据微调 LLMs 会导致任务误解,阻碍向非英语语言的翻译。当噪声合成数据被置于目标端时也会出现问题,尤其是当目标语言在 LLM 预训练中占比很高时。但有趣的是,用占比不足的语言生成的合成数据影响则没那么显著。我们的研究结果表明,在让 LLMs 适配翻译任务时,对数据量的要求可以降低,但仍需审慎考量以防止 LLM 利用非预期的数据偏差。
英文摘要:
Traditionally, success in multilingual machine translation can be attributed to three key factors in training data: large volume, diverse translation directions, and high quality. In the current practice of fine-tuning large language models (LLMs) for translation, we revisit the importance of these factors. We find that LLMs display strong translation capability after being fine-tuned on as few as 32 parallel sentences and that fine-tuning on a single translation direction enables translation in multiple directions. However, the choice of direction is critical: fine-tuning LLMs with only English on the target side can lead to task misinterpretation, which hinders translation into non-English languages. Problems also arise when noisy synthetic data is placed on the target side, especially when the target language is well-represented in LLM pre-training. Yet interestingly, synthesized data in an under-represented language has a less pronounced effect. Our findings suggest that when adapting LLMs to translation, the requirement on data quantity can be eased but careful considerations are still crucial to prevent an LLM from exploiting unintended data biases.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。