[Paper Review] Towards Testing of Deep Learning Systems with Training Set Reduction
This paper proposes training set reduction (TSR) techniques—distance-based, loss-based, and random selection—to accelerate deep learning model training for continuous integration testing. It demonstrates that systematic approaches (distance- and loss-based) closely mimic full training loss curves using only 10–50% of the original CIFAR-10 data, significantly reducing runtime while preserving training behavior fidelity.
Testing the implementation of deep learning systems and their training routines is crucial to maintain a reliable code base. Modern software development employs processes, such as Continuous Integration, in which changes to the software are frequently integrated and tested. However, testing the training routines requires running them and fully training a deep learning model can be resource-intensive, when using the full data set. Using only a subset of the training data can improve test run time, but can also reduce its effectiveness. We evaluate different ways for training set reduction and their ability to mimic the characteristics of model training with the original full data set. Our results underline the usefulness of training set reduction, especially in resource-constrained environments.
Motivation & Objective
- To address the high computational cost of full training runs in continuous integration (CI) for deep learning systems.
- To evaluate whether reduced training sets can preserve the training behavior of full-sized models, particularly in terms of loss curve dynamics.
- To compare the effectiveness of three training set reduction strategies: distance-based, loss-based, and random selection.
- To determine if systematic reduction methods can enable faster, reliable testing without sacrificing fidelity to full training behavior.
- To support resource-constrained testing environments by enabling representative, lightweight training runs.
Proposed method
- Applies k-means clustering to select diverse, representative samples from the input space for distance-based reduction.
- Uses initial model predictions to identify high-loss samples for loss-based reduction, focusing on hard-to-learn instances.
- Employs random sampling as a baseline for comparison, commonly used in practice.
- Trains two deep neural networks—SimpleCNN and ResNet—on reduced and full CIFAR-10 datasets to compare training dynamics.
- Measures similarity between reduced and full training loss curves using normalized root mean squared error (NRMSE).
- Repeats all experiments 40 times to mitigate stochastic effects from random initialization and sampling.
Experimental results
Research questions
- RQ1Can training set reduction techniques preserve the training behavior of deep learning models, particularly in terms of loss curve evolution?
- RQ2How do distance-based, loss-based, and random training set reduction strategies compare in mimicking full training loss curves?
- RQ3What is the minimum training set size required for a reduced set to maintain sufficient similarity to the full training process?
- RQ4Does the effectiveness of training set reduction vary across different neural network architectures?
- RQ5Can systematic reduction strategies (distance- and loss-based) outperform random sampling in maintaining training fidelity?
Key findings
- Distance-based and loss-based training set reduction strategies produced loss curves that were significantly more similar to the full training set than random sampling, especially at smaller data sizes.
- With only 10% of the original CIFAR-10 training data, both systematic methods achieved NRMSE values below 0.03 for validation loss curves on ResNet, indicating high fidelity.
- The loss-based method showed the strongest performance on ResNet, achieving an NRMSE of 0.003 for validation loss at 70% data size, outperforming distance-based and random sampling.
- Even at 50% data size, systematic methods produced loss curves with NRMSE values below 0.02 for both architectures, demonstrating strong similarity to full training.
- Random sampling consistently produced higher NRMSE values, indicating poorer mimicry of full training behavior across all data sizes and models.
- The study confirms that systematic training set reduction is a viable and effective approach for accelerating deep learning testing in CI pipelines.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.