GradientSpace: Unsupervised Data Clustering for Improved Instruction Tuning
Not on the map. Why?
Abstract (arXiv)
Instruction tuning is one of the key steps required for adapting large language models (LLMs) to a broad spectrum of downstream applications. However, this procedure is difficult because real-world datasets are rarely homogeneous; they consist of a mixture of diverse information, causing gradient interference, where conflicting gradients pull the model in opposing directions, degrading performance. A common strategy to mitigate this issue is to group data based on semantic or embedding similarity. However, this fails to capture how data influences model parameters during learning. While recent works have attempted to cluster gradients directly, they randomly project gradients into lower dimensions to manage memory, which leads to accuracy loss. Moreover, these methods rely on expert ensembles which necessitates multiple inference passes and expensive on-the-fly gradient computations during inference. To address these limitations, we propose GradientSpace, a framework that clusters samples directly in full-dimensional gradient space. We introduce an online SVD-based algorithm that operates on LoRA gradients to identify latent skills without the infeasible cost of storing all sample gradients. Each cluster is used to train a specialized LoRA expert along with a lightweight router trained to select the best expert during inference. We show that routing to a single, appropriate expert outperforms expert ensembles used in prior work, while significantly reducing inference latency. Our experiments across mathematical reasoning, code generation, finance, and creative writing tasks demonstrate that GradientSpace leads to coherent expert specialization and consistent accuracy gains over state-of-the-art clustering methods and finetuning techniques.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 24 of its 33 references that are in the map. First posted on arXiv 7 Dec 2025.
Builds on
24 of 33 references.
References · 24
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
- 2020Gradient Surgery for Multi-Task Learningcited by 1,256
- 2013Stochastic First- and Zeroth-order Methods for Nonconvex Stochastic Programmingcited by 724
- 2023Instruction Tuning for Large Language Models: A Surveycited by 623
- 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 532
- 2021Conflict-Averse Gradient Descent for Multi-task Learningcited by 459
- 2024Mixture of LoRA Expertscited by 181
- 2023DataInf: Efficiently Estimating Data Influence in LoRA-tuned LLMs and Diffusion Modelscited by 123
- 2024A Closer Look at the Limitations of Instruction Tuningcited by 77
12 more
- 2023Data Diversity Matters for Robust Instruction Tuningcited by 76
- 2024Clustering and Ranking: Diversity-preserved Instruction Selection through Expert-aligned Quality Estimationcited by 53
- 2024TAGCOS: Task-agnostic Gradient Clustered Coreset Selection for Instruction Tuning Datacited by 30
- 2024Mixture-of-Skills: Learning to Optimize Data Usage for Fine-Tuning Large Language Modelscited by 16
- 2024CommonIT: Commonality-Aware Instruction Tuning for Large Language Models via Data Partitionscited by 14
- 2024Solving Token Gradient Conflict in Mixture-of-Experts for Large Vision-Language Modelcited by 11
- 2025Ensembles of Low-Rank Expert Adapterscited by 9
- 2025MoRE: A Mixture of Low-Rank Experts for Adaptive Multi-Task Learningcited by 9
- 2025Towards Alignment-Centric Paradigm: A Survey of Instruction Tuning in Large Language Modelscited by 5
- 2024Scalable Multi-Domain Adaptation of Language Models using Modular Expertscited by 3
- 2025Coresets from Trajectories: Selecting Data via Correlation of Loss Differencescited by 3
- 2025ClusterUCB: Efficient Gradient-Based Data Selection for Targeted Fine-Tuning of LLMscited by 2
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2023Self-Evolved Diverse Data Sampling for Efficient Instruction Tuning
- 2024Diversify and Conquer: Diversity-Centric Data Selection with Iterative Refinement
- 2025How Instruction and Reasoning Data shape Post-Training: Data Quality through the Lens of Layer-wise Gradients
- 2024LLaVA-MoLE: Sparse Mixture of LoRA Experts for Mitigating Data Conflicts in Instruction Finetuning MLLMs
- 2024Dynamic Gradient Alignment for Online Data Mixing
- 2025LoRA-One: One-Step Full Gradient Could Suffice for Fine-Tuning Large Language Models, Provably and Efficiently
- 2024Initialization using Update Approximation is a Silver Bullet for Extremely Efficient Low-Rank Fine-Tuning
- 2026Less is Enough: Synthesizing Diverse Data in LLM Feature Space with Sparse Autoencoders