Beyond Similarity: A Gradient-based Graph Method for Instruction Tuning Data Selection

Yang Zhao, Li Du, Xiao Ding, Yangou Ouyang, Hepeng Wang +8 more
2/16/2025
cs.CL

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) have shown great potential across various industries due to their remarkable ability to generalize through instruction tuning. However, the limited availability of domain-specific data significantly hampers their performance on specialized tasks. While existing methods primarily focus on selecting training data from general datasets that are similar to the target domain, they often fail to consider the joint distribution of instructions, resulting in inefficient learning and suboptimal knowledge transfer. To address these challenges, we introduce G2IS (Gradient-based Graph Instruction Selection), a novel method that constructs a mixed gradient-based instruction graph to capture the joint distribution and interdependencies between instructions. By accounting for the relationships between instructions, G2IS improves domain adaptation efficiency. Additionally, we propose a gradient walk algorithm to refine the data selection process, enhancing both training effectiveness and efficiency. Our experiments demonstrate that G2IS outperforms traditional methods across various domain adaptation tasks, yielding significant performance gains, particularly in complex, data-scarce scenarios. These results underscore the potential of G2IS in advancing the development of large, domain-specific models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhao2025beyond,
  title  = {Beyond Similarity: A Gradient-based Graph Method for Instruction Tuning Data Selection},
  author = {Yang Zhao and Li Du and Xiao Ding and Yangou Ouyang and Hepeng Wang and Kai Xiong and Jinglong Gao and Zhouhao Sun and Dongliang Xu and Yang Qing and Dongchen Li and Bing Qin and Ting Liu},
  year   = {2025},
  eprint = {2502.11062},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.11062v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.11062.svg)](https://codeofpaper.com/paper/2502.11062)

Discussion