arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.12458cs.CL
收藏

两全其美:用二分图在数据选择中兼顾质量与多样性

The Best of Both Worlds: Bridging Quality and Diversity in Data Selection with Bipartite Graph

Monash University(墨尔本大学)

Minghao Wu, Thuy-Trang Vu, Lizhen Qu, Gholamreza Haffari

AI总结:

针对微调数据选择中质量与多样性难以兼顾的问题,提出基于二分图和集合覆盖的GraphFilter方法,通过乘性优先级迭代选句,在六个基准上超越九个基线,兼顾性能与效率。

摘要:

大型语言模型(LLM)的性能受监督微调(SFT)所用数据的质量与多样性的强烈影响。然而,当前的数据选择方法往往优先考虑其中一方面而忽视另一方面,导致训练效果欠佳。为解决这一问题,我们将数据选择表述为一个集合覆盖问题,并提出了GraphFilter,一种在数据选择中平衡质量与多样性的新方法。GraphFilter将数据集建模为一个二分图,连接句子与其组成的n-gram,然后采用一个将质量与多样性指标相乘组合的优先级函数。GraphFilter迭代地选择优先级最高的句子,从二分图中移除已覆盖的n-gram,并重新计算优先级以反映不断变化的数据格局。我们使用三个模型骨干在六个广泛使用的基准上验证了GraphFilter,证明其在模型性能和计算效率方面均优于九个现有基线。进一步的分析表明,我们的设计选择带来了更有效的子集选择,凸显了指令多样性的价值,并提供了关于质量与多样性如何在不同子集大小下相互作用的见解。

英文摘要:

The performance of large language models (LLMs) is strongly influenced by the quality and diversity of data used during supervised fine-tuning (SFT). However, current data selection methods often prioritize one aspect over the other, resulting in suboptimal training outcomes. To address this, we formulate data selection as a set cover problem and present GraphFilter, a novel approach that balances both quality and diversity in data selection. GraphFilter models the dataset as a bipartite graph connecting sentences to their constituent n-grams, then employs a priority function that combines quality and diversity metrics multiplicatively. GraphFilter iteratively selects sentences with the highest priority, removes covered n-grams from the bipartite graph, and recomputes priorities to reflect the changing data landscape. We validate GraphFilter using three model backbones across six widely-used benchmarks, demonstrating that it outperforms nine existing baselines in both model performance and computational efficiency. Further analysis shows that our design choices lead to more effective subset selection, underscores the value of instruction diversity, and provides insights into how quality and diversity interact with different subset sizes.

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

↑