arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.12915cs.CL
收藏

G-DIG:面向机器翻译的基于梯度的多样且高质量指令数据选择

G-DIG: Towards Gradient-based Diverse and High-quality Instruction Data Selection for Machine Translation

ByteDance Research(字节跳动研究院)

Xingyuan Pan, Luyang Huang, Liyan Kang, Zhicheng Liu, Yu Lu, Shanbo Cheng

AI总结:

本文提出G-DIG方法,利用影响函数和梯度聚类自动选择高质量且多样的机器翻译指令微调数据,并在WMT22和FLORES上验证了其有效性。

摘要:

大型语言模型(LLMs)在通用场景中展现了卓越的能力。指令微调使它们能够在各种任务中与人类对齐。然而,指令数据的多样性(Diversity)和质量(Quality)仍然是指令微调面临的两个主要挑战。针对这一问题,本文提出了一种新颖的基于梯度的方法,用于自动选择机器翻译的高质量和多样化指令微调数据。我们的核心创新在于分析单个训练样本在训练过程中如何影响模型。具体而言,我们借助影响函数(Influence Function)以及一个小规模高质量种子数据集,选择对模型产生有益影响的训练样本作为高质量数据。此外,为了增强训练数据的多样性,我们通过对样本梯度进行聚类和重采样,最大化它们对模型影响的多样性。在WMT22和FLORES翻译任务上的大量实验证明了我们方法的优越性,深入分析进一步验证了其有效性和泛化能力。

英文摘要:

Large Language Models (LLMs) have demonstrated remarkable abilities in general scenarios. Instruction finetuning empowers them to align with humans in various tasks. Nevertheless, the Diversity and Quality of the instruction data remain two main challenges for instruction finetuning. With regard to this, in this paper, we propose a novel gradient-based method to automatically select high-quality and diverse instruction finetuning data for machine translation. Our key innovation centers around analyzing how individual training examples influence the model during training. Specifically, we select training examples that exert beneficial influences on the model as high-quality ones by means of Influence Function plus a small high-quality seed dataset. Moreover, to enhance the diversity of the training data we maximize the variety of influences they have on the model by clustering on their gradients and resampling. Extensive experiments on WMT22 and FLORES translation tasks demonstrate the superiority of our methods, and in-depth analysis further validates their effectiveness and generalization.

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

↑