G-DIG: Towards Gradient-based Diverse and High-quality Instruction Data Selection for Machine Translation
Xingyuan Pan, Luyang Huang, Liyan Kang, Zhicheng Liu, Yu Lu, Shanbo Cheng
TL;DR
G-DIG tackles the data quality and diversity bottleneck in instruction finetuning for machine translation by proposing a gradient-based data selection framework. It combines Influence Function-based high-quality data selection with gradient-distance clustering to maximize data diversity, using a seed dataset to guide selection. Empirical results on Zh→En and De→En show robust translation gains across data budgets, with strong performance relative to baselines and competitiveness with SOTA models, plus favorable human judgments. The work also discusses computational costs and practical considerations, highlighting data-efficiency benefits and avenues for future cost reductions.
Abstract
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.
