Difficulty–Diversity Collaborative Filtering for Data-Efficient LLM Fine-Tuning

Long P. Hoang, Wenxuan Zhang, Wei LuICLR 2026

TL;DR

Fine-tuning Large Language Models (LLMs) traditionally requires massive, expensive datasets. However, the "Less-is-More" hypothesis suggests that a small, high-quality subset is often sufficient. This paper introduces Difficulty-Diversity Collaborative Filtering (DDCF), an automated method that treats data selection like a recommendation system. By finding the most challenging and diverse questions tailored to a specific model, DDCF cuts annotation costs by 100-200x while matching the performance of full-corpus fine-tuning.

The Problem: Finding the Premium Data

Supervised fine-tuning (SFT) is the standard method for adapting pre-trained LLMs to downstream tasks. Unfortunately, fine-tuning on hundreds of thousands of examples is computationally expensive, risks catastrophic forgetting, and often over-represents common, easy patterns while ignoring rare edge cases.

Recent research supports the Less-is-More hypothesis: incredible fine-tuning results can be achieved using just a few carefully selected, high-quality examples. The core challenge is how to find these premium examples. Existing methods usually require human experts, rely on expensive feedback from closed-source models (like GPT-4), or require annotating an entire massive corpus just to figure out which examples are worth keeping. The authors sought a way to automatically sift through a massive, unannotated dataset to find a tiny subset of data that is both highly diverse and perfectly calibrated to a specific model's weaknesses.

Methods: Data Selection as Collaborative Filtering

The authors re-imagine data selection as a recommendation system problem (similar to Netflix recommending movies), where models act as "users" and questions act as "items."

DDCF Matrix Factorization
  1. The Correctness Predictor (Difficulty): The authors start with a small "seed" dataset of questions and evaluate how a diverse roster of 23 open-source LLMs performs on them. This creates a binary matrix of who got what right. They train an encoder to map both the models and the questions into a shared embedding space. This allows them to predict the probability that a specific target model will get a new, unseen question wrong. Lower predicted correctness equals higher personalized difficulty.
  2. Semantic Similarity (Diversity): To prevent selecting 1,000 slightly different versions of the same hard math problem, they use sentence-transformer embeddings to measure the cosine similarity between questions.
  3. DDCF ($k$-greedy selection): Finding the mathematically perfect subset that balances difficulty and diversity is an NP-hard combinatorial problem. Instead, DDCF uses a highly efficient "$k$-greedy" heuristic. It starts with an empty dataset and iteratively adds the next question that maximizes difficulty for the target model while minimizing similarity to the questions already selected, until it reaches the budget $k$.

Key Insights and Ideas

  • Difficulty is subjective: A question that is hard for a Llama model might be easy for a Qwen model. DDCF works because it personalizes data selection to the specific architecture and pre-training quirks of the target model, rather than relying on a universal "difficulty" score.
  • The Goldilocks Zone of Difficulty: If you only select the absolute hardest questions, the model actually forgets how to do basic tasks (performance on elementary math benchmarks drops). Balancing difficulty with diversity is essential to maintain broad competence.
  • Filter First, Annotate Later: Because DDCF predicts difficulty based on the question text alone, it can filter a massive corpus before you generate the expensive reasoning traces (annotations). This flips the standard pipeline and saves massive amounts of compute.
  • Model Kinship: Datasets curated for one model work best for that specific model. However, they transfer reasonably well to other models in the same family (e.g., a dataset curated for Qwen2.5-32B works well for Qwen2.5-7B, but less well for Mistral).

Key Results and Performance

By filtering unannotated corpora down to just 1,000 examples before generating reasoning annotations, DDCF reduces annotation costs by $100-200\times$.

Effect of DDCF Data Size on Performance
  • High Data Efficiency: Fine-tuning Qwen2.5-Math-7B on just 1,000 DDCF-selected examples from a 225K corpus achieved an average in-distribution score of 70.2—incredibly close to the 75.8 achieved by training on the entire 225K dataset.
  • Beats Baselines: Given the same 1,000-example budget, DDCF consistently outperformed other data selection methods (like Perplexity, Cartography, and S2L) across multiple model backbones.
  • Boosts Hard Reasoning: On the highly challenging AIME24 math benchmark, DDCF boosted the 7B model's performance by +14.4 points over the base model, proving it successfully captures complex reasoning signals.

Limitations and Future Work

  • Small Model Learnability Gap: As seen in the performance chart, very small/weak models (like a 1.5B parameter model) actually degrade when fine-tuned on tiny, highly complex datasets. They require slightly larger subsets (e.g., 8,000+ examples) to recover and improve, whereas 7B models peak much earlier.
  • Cold Start Requirement: The method requires an initial "seed" dataset with ground-truth answers and a roster of participating models to train the correctness predictor initially.
  • Future Directions: Because DDCF is lightweight and doesn't require SFT loss trajectories, the authors suggest it could easily be extended to select few-shot prompts for In-Context Learning, or be applied to Active Learning and Curriculum Learning.

Summary updated

BibTeX
@inproceedings{hoang2026difficultydiversity,
  author = {Long P. Hoang and Wenxuan Zhang and Wei Lu},
  title = {{Difficulty–Diversity Collaborative Filtering for Data-Efficient LLM Fine-Tuning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=n9mXlqD2SJ},
}
Figure