QLESS: A Quantized Approach for Data Valuation and Selection in Large Language Model Fine-Tuning
Moses Ananta, Muhammad Farid Adilazuarda, Zayd Muhammad Kawakibi Zuhri, Ayu Purwarianti, Alham Fikri Aji
TL;DR
QLESS tackles the memory bottleneck in gradient-based data valuation for fine-tuning large language models by integrating a quantization stage into LESS. It first derives low-dimensional gradient representations via a LoRA-based random projection, then quantizes these gradients with an absmax-based scheme to dramatically reduce storage, while normalizing the quantized vectors during influence computation. The approach preserves the ability to identify influential training samples through cosine similarities across checkpoints, achieving comparable data-selection performance to LESS under much smaller memory footprints, with surprising robustness even at 1-bit precision. Across multiple models and benchmarks, QLESS demonstrates substantial memory savings (often >2x to >8x) and practical viability for resource-constrained settings, highlighting its potential for scalable instruction tuning and data curation.
Abstract
Fine-tuning large language models (LLMs) is often constrained by the computational costs of processing massive datasets. We propose \textbf{QLESS} (Quantized Low-rank Gradient Similarity Search), which integrates gradient quantization with the LESS framework to enable memory-efficient data valuation and selection. QLESS employs a two-step compression process: first, it obtains low-dimensional gradient representations through LoRA-based random projection; then, it quantizes these gradients to low-bitwidth representations. Experiments on multiple LLM architectures (LLaMA, Mistral, Qwen) and benchmarks (MMLU, BBH, TyDiQA) show that QLESS achieves comparable data selection performance to LESS while reducing memory usage by up to 16x. Even 1-bit gradient quantization preserves data valuation quality. These findings underscore QLESS as a practical, scalable approach to identifying informative examples within strict memory constraints.
