Abstract: Modern ML systems ingest data aggregated from diverse sources, such as synthetic, human-annotated, and live customer traffic. Understanding which examples are important to the performance of a learning algorithm is crucial for efficient model training. Recently, a growing body of literature has given rise to various “influence scores,” which use training artifacts such as model confidence or checkpointed gradients to identify important subsets of data. However, these methods have primarily been developed in computer vision settings, and it remains unclear how well they generalize to language-based tasks using pretrained models.
In this paper, we explore the applicability of influence scores in language classification tasks. We evaluate a diverse subset of these scores on the SNLI dataset by quantifying accuracy changes in response to pruning training data through random and influence-score-based sampling. We then stress-test one of the scores – "variance of gradients" (VoG) – in an NLU model stack that was exposed to dynamic user speech patterns in a voice assistant setting. Our experiments demonstrate that in many cases, encoder-based language models can be fine-tuned on roughly 50% of the original data without degradation in performance metrics.
Introduction
Training massive language models is computationally expensive and data-intensive. However, not all training examples contribute equally to a model's final performance. Much of the data in modern datasets is redundant or "easy," providing minimal learning signal. While the computer vision community has developed various "influence scores" to rank image importance, their applicability to transformer-based language models has remained under-explored. This study addresses the challenge of efficient data sampling: identifying the most informative subsets of language data to reduce training costs and privacy risks without compromising model accuracy.
Methods
We benchmarked five distinct influence scores to predict an example's "difficulty" or "influence" on the learning process. These scores utilize different training artifacts, ranging from model confidence to gradient fluctuations.
Among these, Variance of Gradients (VoG) proved particularly effective due to its "one-shot" scalability; it can be calculated from a single training run using standard artifacts. To address class imbalances common in production Natural Language Understanding (NLU) systems, we introduced a dataset-normalization scheme for VoG. This ensures that "hard" examples are retained across all domains, preventing smaller classes from being disproportionately pruned.
Results
Our experiments on the SNLI dataset and a large-scale production NLU stack demonstrate that a significant portion of training data is indeed redundant.
Key findings include:
- High Pruning Tolerance: On the SNLI dataset, we maintained baseline accuracy while pruning 45% of the training data using VoG-easy sampling. In a production-grade NLU environment, pruning approximately 50% of the data resulted in no statistically significant regressions in key performance metrics.
- Regularization Benefits: Interestingly, the pruned production model showed a 1.18% improvement in the Unrecoverable Error Rate (UER). This suggests that intelligent pruning may act as a form of regularization by removing noisy or confusing "easy" samples.
- The Role of Normalization: In multi-domain systems (e.g., voice assistants handling Music, Shopping, and Weather), dataset-wide normalization is essential. It allows the model to maintain a representative balance of difficult examples from every domain, ensuring robust performance across the entire system.
Conclusion
This research provides a compelling case for "frugal" AI. By leveraging influence scores like VoG, researchers can achieve baseline-level performance with half the training data. While this study focused on encoder-based models like BERT, future work should investigate the applicability of these scores to decoder-only architectures and their potential for optimizing example selection in few-shot or in-context learning scenarios.
Summary updated