Winning the Pruning Gamble: A Unified Approach to Joint Sample and Token Pruning for Efficient Supervised Fine-Tuning
Shaobo Wang, Jiaming Wang, Jiajun Zhang, Cong Wang, Yue Min, Zichen Wen, Xingzhang Ren, Fei Huang, Huiqiang Jiang, Junyang Lin, Dayiheng Liu, Linfeng Zhang
TL;DR
This work tackles the data-efficiency challenges of supervised fine-tuning for large language models by diagnosing data utility with the Error–Uncertainty (EU) Plane, which maps samples by perplexity (error) and entropy (uncertainty) into four quadrants. It introduces Generalized Dynamic Data Pruning as a bilevel framework and Quadrant-based Tuning (Q-Tuning) as a two-stage, context-aware approach that jointly prunes samples and tokens: Stage 1 remove harmful/noisy or redundant samples, Stage 2 selectively prune tokens within valuable misconception samples while preserving calibration data in full. The method yields state-of-the-art results across multiple models and benchmarks, achieving remarkable data efficiency (e.g., strong gains with as little as a few percent of data) and robust scalability from 8B to 32B parameter families. Empirically, Q-Tuning demonstrates consistent improvements over full-data SFT and independent pruning baselines, with favorable latency/memory trade-offs and clear interpretations of which tokens are pruned. Overall, the work provides a principled, scalable blueprint for maximizing data utility in budget-constrained LLM fine-tuning through integrated, dynamic data pruning.
Abstract
As supervised fine-tuning (SFT) evolves from a lightweight post-training step into a compute-intensive phase rivaling mid-training in scale, data efficiency has become critical for aligning large language models (LLMs) under tight budgets. Existing data pruning methods suffer from a fragmented design: they operate either at the sample level or the token level in isolation, failing to jointly optimize both dimensions. This disconnect leads to significant inefficiencies--high-value samples may still contain redundant tokens, while token-level pruning often discards crucial instructional or corrective signals embedded in individual examples. To address this bottleneck, we introduce the Error-Uncertainty (EU) Plane, a diagnostic framework that jointly characterizes the heterogeneous utility of training data across samples and tokens. Guided by this insight, we propose Quadrant-based Tuning (Q-Tuning), a unified framework that strategically coordinates sample pruning and token pruning. Q-Tuning employs a two-stage strategy: first, it performs sample-level triage to retain examples rich in informative misconceptions or calibration signals; second, it applies an asymmetric token-pruning policy, using a context-aware scoring mechanism to trim less salient tokens exclusively from misconception samples while preserving calibration samples in their entirety. Our method sets a new state of the art across five diverse benchmarks. Remarkably, on SmolLM2-1.7B, Q-Tuning achieves a +38\% average improvement over the full-data SFT baseline using only 12.5\% of the original training data. As the first dynamic pruning approach to consistently outperform full-data training, Q-Tuning provides a practical and scalable blueprint for maximizing data utilization in budget-constrained LLM SFT.
