Abstract
Dataset condensation has emerged as a promising technique to improve data efficiency under limited data budgets. However, when applied to the text level, existing methods struggle to compress more information into samples through optimization. Thus, these methods provide no obvious advantage over simpler coreset selection despite their high computational cost. In this paper, we introduce CondenseLM, a novel paradigm for both effective and efficient text-level dataset condensation. Our framework employs an LLMs-driven approach to sidestep the inherent limitations of existing methods, successfully generating more informative and less biased samples. In addition, it incorporates reward matching to align the LLMs-condensed dataset with the original dataset, maximizing representability and coverage. We conducted extensive experiments on SST-2, MNLI, AG News, and IMDB. Our approach outperforms both coreset selection and existing dataset condensation methods by large margins while also substantially reducing the computational cost.
Introduction
Dataset Condensation (DC) aims to create a minimal synthetic dataset that allows models to reach performance comparable to training on the full original dataset. While DC has seen significant success in computer vision, it has struggled with text due to the discrete nature of tokens, which prevents the use of standard gradient-based optimization. Current text-level DC methods, such as DiLM, rely on expensive bi-level optimization that can take over 24 hours to run, yet often barely outperform simple coreset selection. We identify this as a "cost-benefit imbalance" and propose CondenseLM to address these limitations.
Methodology
CondenseLM treats dataset condensation as a generative task rather than a mathematical optimization problem. The framework consists of two main components:
LLMs-driven Subset Condensation (LDSC)
Instead of merely selecting existing samples, the LLM acts as an encoder-decoder. It analyzes a subset of real data to identify "discriminative features" (patterns defining a class) and "universal features" (neutral patterns like length or genre). It then generates new, information-dense samples that combine multiple discriminative features while balancing universal ones to reduce training bias.
Reward Matching
To ensure the generated samples represent the entire dataset, we use an iterative pipeline guided by two reward models:
- Representability Reward ($M_{rep}$): A model trained with heavy regularization to identify common, generalizable patterns.
- Coverage Reward ($M_{cov}$): A model trained on the already condensed data to identify what information is still missing.
The process uses Best-of-N sampling, where the LLM generates several candidate subsets, and the one with the highest combined reward score is retained.
Experimental Results
We evaluated CondenseLM on four diverse benchmarks: SST-2, MNLI, AG News, and IMDB.
Superior Performance and Efficiency
On SST-2 with a 10-data-per-class (DPC) budget, CondenseLM achieved 79.9% accuracy, significantly outperforming the previous state-of-the-art DiLM (76.3%) and K-Center selection (75.9%). Beyond accuracy, the efficiency gains are substantial: while DiLM requires over 24 hours to condense SST-2, CondenseLM completes the task in under 15 minutes.
Model Agnosticism and Generalization
Because the LLM generates natural language based on general semantic patterns rather than a specific model's gradients, the resulting datasets generalize exceptionally well. A dataset condensed using CondenseLM can be used to train various architectures, such as BERT, RoBERTa, or XLNet, without loss of effectiveness.
Conclusion
CondenseLM represents a paradigm shift in text dataset condensation. By bypassing discrete optimization in favor of LLM-driven generation and reward matching, we achieve state-of-the-art performance with unprecedented efficiency. This approach makes high-quality dataset condensation accessible even for researchers with limited computational resources.
Summary updated