Abstract
Training modern deep learning models requires significant computational resources and time. Online batch selection has emerged as a strategy to accelerate this process by selecting a subset of informative samples for weight updates. However, existing methods either rely on computationally expensive reference models or select samples independently, leading to high redundancy. This paper introduces Diversified Batch Selection (DivBS), a reference-model-free approach that selects a subset of samples by maximizing a novel objective: group-wise orthogonalized representativeness. By ensuring that selected samples are both representative of the full batch and internally diverse, DivBS achieves up to a 70% reduction in training iterations with negligible loss in accuracy across various domains, including image classification, semantic segmentation, and language model fine-tuning.
1. Introduction
The scale of deep learning models and datasets continues to grow, making training a massive resource sink. To mitigate this, researchers use online batch selection, where the model performs forward passes on a large batch but only executes the more expensive backpropagation on a smaller, high-value subset. The primary challenge in this field is defining what makes a sample "valuable."
Existing techniques generally fall into two categories: reference-based methods and sample-wise methods. Reference-based methods use a secondary, pre-trained model to score samples, which is often impractical for large-scale pre-training. Sample-wise methods, while reference-free, typically select samples based on individual metrics like high loss or large gradient norms. These methods often fail because they ignore redundancy; a batch might contain many similar "hard" samples, and selecting all of them provides diminishing returns for the model's learning.
2. Diversified Batch Selection (DivBS)
DivBS addresses the "diversity challenge" by evaluating the selected subset as a collective rather than a collection of independent individuals. The goal is to select a subset that is representative of the entire batch's information while minimizing internal redundancy.
2.1 Group-wise Orthogonalized Representativeness
The core innovation of DivBS is the objective of "group-wise orthogonalized representativeness." The algorithm treats the features of each sample—specifically the gradients at the final layer—as vectors in a high-dimensional space. When selecting a new sample for the training subset, DivBS performs an orthogonalization step: it subtracts the components of the candidate sample's vector that are already represented by the samples previously selected. This ensures that every added sample provides novel information to the model.
2.2 Submodular Optimization
Finding the absolute optimal subset is an NP-hard problem. However, the authors demonstrate that their objective function is submodular. This mathematical property is crucial because it allows a simple "greedy" algorithm to find a solution that is theoretically guaranteed to be close to the optimum. To maintain training speed, the authors utilize an optimized approximation that avoids complex matrix operations, ensuring the selection process does not become a bottleneck.
2.3 Universal Features
DivBS uses final-layer gradients as the features for selection. These gradients are computationally cheap to obtain during the initial forward pass but are highly indicative of how a sample will influence the model's weights. This makes DivBS task-agnostic, allowing it to function effectively across different data modalities without specialized tuning.
3. Experimental Evaluation
The effectiveness of DivBS was validated across a diverse range of tasks and architectures:
- Image Classification: CIFAR-10, CIFAR-100, and Tiny ImageNet.
- Class Imbalance: CIFAR-100-LT (Long-Tailed), testing the model's ability to handle minority classes.
- Semantic Segmentation: PASCAL VOC 2012 using DeepLabV3.
- Cross-modal Retrieval: Wikipedia image-to-text matching.
- Language Modeling: Fine-tuning GPT-2 Medium using LoRA on the E2E NLG Challenge.
4. Key Results and Insights
4.1 Acceleration and Accuracy
On the CIFAR-10 dataset, DivBS reached a target accuracy of 94.65% using only 30% of the data per batch. This translates to a 70% reduction in training iterations compared to standard full-batch training, with less than a 1% drop in final accuracy. DivBS consistently outperformed other reference-free baselines, such as Grad Norm or Train Loss selection, across all tested data budgets (10%, 20%, and 30%).
4.2 Efficiency and Diversity
A critical finding of the study is that "diversity" often outweighs "difficulty." While loss-based methods frequently over-focus on noisy outliers or redundant hard samples, DivBS's orthogonalization naturally selects samples that cover the entire gradient space. This is particularly evident in imbalanced datasets; DivBS naturally identifies and includes samples from rare "tail" classes because they are mathematically distinct from the common "head" classes.
4.3 Wall-clock Performance
Despite the additional step of subset selection, DivBS provides a net gain in training speed. The selection overhead is less than 5% of the total training time, meaning the reduction in backpropagation updates leads to significant real-world time savings.
5. Conclusion and Future Work
DivBS represents a significant step forward in reference-free training acceleration. By prioritizing diversity through submodular optimization of gradient vectors, it bridges the performance gap between simple loss-based selection and expensive reference-model methods.
Future research may address the remaining "forward pass requirement," as DivBS still requires a forward pass for the full batch to compute selection scores. Potential solutions include using historical training data from previous epochs to skip forward passes for certain samples or implementing hardware-level parallelization to further reduce the selection overhead.
Summary updated