CLUES: Collaborative High-Quality Data Selection for LLMs via Training Dynamics

Wanru Zhao, Hongxiang Fan, Shell Xu Hu, Wangchunshu Zhou, Bofan Chen, Nicholas D. LanearXiv 2025 · OpenReview

Abstract

Recent research has highlighted the importance of data quality in scaling large language models (LLMs). However, automated data quality control faces unique challenges in collaborative settings where sharing is not allowed directly between data silos. To tackle this issue, this paper proposes a novel data quality control technique based on the notion of data influence on the training dynamics of LLMs, that high quality data are more likely to have similar training dynamics to the anchor dataset. We then leverage the influence of the training dynamics to select high-quality data from different private domains, with centralized model updates on the server side in a collaborative training fashion by either model merging or federated learning. As for the data quality indicator, we compute the per-sample gradients with respect to the private data and the anchor dataset, and use the trace of the accumulated inner products as a measurement of data quality. In addition, we develop a quality control evaluation tailored for collaborative settings with heterogeneous domain data. Experiments show that training on the high-quality data selected by our method can often outperform other data selection methods for collaborative fine-tuning of LLMs, across diverse private domain datasets, in medical, multilingual and financial settings.

The Challenge: Selecting Data You Cannot See

In the era of Large Language Models (LLMs), the mantra has shifted from "more data" to "better data." However, high-quality data is often trapped in private silos—hospitals, financial institutions, or regional databases—that cannot be shared due to strict privacy regulations like GDPR. While collaborative training methods like Federated Learning or Model Merging allow models to learn from distributed data, they face a critical hurdle: Quality Heterogeneity.

If a participant contributes "noisy" or low-quality data, it can poison the global model. Traditional filters, such as text perplexity, often fail to distinguish between high-quality specialized knowledge and well-formatted noise. This research introduces CLUES (Collaborative Learning Under Exemplar Scoring), a framework designed to identify and select the best data across private silos without ever accessing the raw data itself.

Figure 6: Performance degradation of Mistral-7b and Llama2-7b when trained on low-quality data compared to raw data across GPT-4 scoring and knowledge benchmarks.

Methodology: Training Dynamics as a Proxy for Quality

The core innovation of CLUES is using training dynamics—how a specific data point influences the model's internal state—as a proxy for quality. The framework operates on the principle that high-quality data will push the model in a similar direction (gradient) as a small, trusted "anchor" dataset.

Local Scoring and Global Thresholding

  1. Influence Scoring: Each client calculates a quality score for their private samples by computing the gradient of a sample and comparing it (via an inner product) to the gradient of the public anchor set.
  2. The First-Layer Trick: To maintain efficiency, the authors found that calculating these scores using only the first layer of the model is most effective. This layer captures unique input features more cleanly than deeper layers, which often suffer from signal cancellation.
  3. Unified Standards: Instead of local filtering, the server sets a global threshold based on the anchor data. This ensures that a "high-quality" sample in one silo meets the same rigorous standard as a sample in another.

Experimental Results

The researchers evaluated CLUES across medical (PMC-LLama), multilingual (MMedBench), and financial (FiQA) domains using Llama2-7b and Mistral-7b backbones.

Figure 4: Validation loss curves demonstrating that models trained on higher proportions of high-quality data achieve significantly lower loss and faster convergence.

Key findings include:

  • Near-Oracle Performance: CLUES achieved over 96% of the performance of an "Oracle" model trained on perfectly clean data, even when initial datasets were heavily polluted.
  • Superior Filtering: It consistently outperformed standard baselines like Perplexity (PPL) and Instruction Following Difficulty (IFD). In specialized QA tasks, CLUES improved performance by up to 67.3% compared to training on unfiltered data.
  • High Precision: In financial tests, the method maintained a selection accuracy of over 99%, successfully discarding noise while retaining valuable knowledge.

Conclusion and Future Directions

CLUES demonstrates that training dynamics offer a powerful, privacy-preserving lens for data selection. By aligning private data with the learning trajectory of a gold-standard anchor set, we can unlock the potential of distributed data silos. Future work will explore extending CLUES to heterogeneous architectures where different clients use different model structures and investigating its role in continual learning environments.

Summary updated

BibTeX
@misc{zhao2025clues,
  author = {Wanru Zhao and Hongxiang Fan and Shell Xu Hu and Wangchunshu Zhou and Bofan Chen and Nicholas D. Lane},
  title = {{CLUES: Collaborative High-Quality Data Selection for LLMs via Training Dynamics}},
  year = {2025},
  eprint = {2507.03004},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.03004},
}
Figure