atlas

Research map / Large language models / Instruction and fine-tuning

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

ICML 2025 · Large language models › Instruction and fine-tuning · approach: Efficient LLM fine-tuning systems · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes GraphFilter, a set-cover-style data selection method that builds a sentence–n-gram bipartite graph and greedily selects instructions by the product of SuperFilter quality and TF-IDF n-gram diversity, outperforming nine baselines for SFT on Magpie.

Problem

Selecting a subset of SFT data that balances quality and diversity, since existing methods tend to optimize one at the expense of the other.

Approach

Model the dataset as a bipartite graph between instructions and their n-grams, and iteratively pick the instruction maximizing quality×diversity (TF-IDF over covered n-grams), removing covered n-gram nodes and recomputing priorities after each pick.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
select training data with GraphFilter instead of the strongest overall baselineGemma-2-2b · Overall benchmarksavgall: 34.36 -> 35.06Helped
select training data with GraphFilter instead of the strongest overall baselineMistral-7B-v0.3 · Overall benchmarksavgall: 38.40 -> 39.38Helped
select training data with GraphFilter instead of the strongest overall baselineLlama-3-8B · Overall benchmarksavgall: 47.19 -> 47.97Helped
add the combined unigram, bigram, and trigram features (ablation)GraphFilter · Llama-3-8B overall benchmarksavgall: 46.48 -> 47.97Helped
add SuperFilter as the quality metric (ablation)GraphFilter with TF-IDF diversity · Llama-3-8B overall benchmarksavgall: 46.58 -> 47.97Helped
add TF-IDF as the diversity metric (ablation)GraphFilter with SuperFilter quality · Llama-3-8B overall benchmarksavgall: 46.78 -> 47.97Helped
replace SuperFilter with Perplexity as the quality metric (ablation)GraphFilter with TF-IDF diversity · Llama-3-8B overall benchmarksavgall: 47.97 -> 46.43Hurt
use 3-grams instead of 1-grams (ablation)GraphFilter · Llama-3-8B overall benchmarksavgall: 46.48 -> 47.97Helped
use 4-grams instead of 3-grams (ablation)GraphFilter · Llama-3-8B overall benchmarksavgall: 47.97 -> 47.43Hurt
apply GraphFilter to instructions rather than responses (ablation)Llama-3-8B · Overall benchmarksavgall: 44.68 -> 47.97Helped
remove the priority function (ablation)GraphFilter · 10K subset selectionruntime (hrs): 2.48 -> 0.53Helped
use a quality-only SuperFilter selection instead of GraphFilterdata selection · Smaller budgets (1K and 5K instances)model performanceHelped

Surprising findings

Limitations

Experimental setup

Datasets: Magpie-Pro-300K-Filtered MMLU ARC HellaSwag GSM8K AlpacaEval-2.0 MT-Bench

Benchmarks: MMLU ARC HellaSwag GSM8K AlpacaEval-2.0 MT-Bench

Metrics: accuracy length-controlled win rate win rate MT-Bench score MTLD runtime

Baselines: Random Longest Perplexity ArmoRM AlpaGasus Deita SuperFilter Kmeans InsTag

Builds on: SuperFilter set cover greedy algorithm Magpie

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy