Stochastic Batch Augmentation with An Effective Distilled Dynamic Soft Label Regularizer

Qian Li, Qingyuan Hu, Yong Qi, Saiyu Qi, Jie Ma, Jian Zhang

Abstract

Data augmentation have been intensively used in training deep neural network to improve the generalization, whether in original space (e.g., image space) or representation space. Although being successful, the connection between the synthesized data and the original data is largely ignored in training, without considering the distribution information that the synthesized samples are surrounding the original sample in training. Hence, the behavior of the network is not optimized for this. However, that behavior is crucially important for generalization, even in the adversarial setting, for the safety of the deep learning system. In this work, we propose a framework called Stochastic Batch Augmentation (SBA) to address these problems. SBA stochastically decides whether to augment at iterations controlled by the batch scheduler and in which a ''distilled'' dynamic soft label regularization is introduced by incorporating the similarity in the vicinity distribution respect to raw samples. The proposed regularization provides direct supervision by the KL-Divergence between the output soft-max distributions of original and virtual data. Our experiments on CIFAR-10, CIFAR-100, and ImageNet show that SBA can improve the generalization of the neural networks and speed up the convergence of network training.

Introduction

Deep neural networks often suffer from overconfidence, where they make highly certain but incorrect predictions when faced with slight data shifts or adversarial perturbations. To mitigate this, data augmentation is widely employed to create modified training samples (e.g., cropping, noise) that help the model generalize. A common technique is Batch Augmentation (BA), which replicates instances within a batch and applies different augmentations.

However, standard BA has two significant drawbacks. First, it is computationally expensive, as augmenting data at every iteration adds substantial overhead. Second, it often ignores the "vicinity distribution"—the relationship between an original sample and its augmented counterparts. Standard methods treat these as independent samples sharing a hard label, failing to teach the network that they should yield similar prediction confidences.

Stochastic Batch Augmentation (SBA)

To address these issues, we propose Stochastic Batch Augmentation (SBA), which integrates two core components: a Stochastic Batch Scheduler and Dynamic Soft Label Regularization.

The SBA framework architecture, featuring the Stochastic Batch Scheduler and the Dynamic Soft Label Regularization module.

Stochastic Batch Scheduler

Instead of performing augmentation at every training step, SBA utilizes a Bernoulli process—a weighted random choice—to decide whether to apply augmentation at a given iteration. This stochasticity reduces redundant computations and acts as a form of regularization, accelerating convergence.

Dynamic Soft Label Regularization

When the scheduler triggers augmentation, "virtual points" are generated by injecting noise and Dropout into the network's latent space. To ensure the model recognizes the relationship between these virtual points and the original data, SBA uses the network's own prediction on the original sample as a "soft label" for the augmented sample. By minimizing the KL-Divergence between the output distributions of the original and augmented data, the model is explicitly trained to map the local neighborhood (vicinity) of a data point to consistent outputs. This self-distillation approach provides a richer gradient signal than simple one-hot labels.

Experimental Results

We evaluated SBA on standard benchmarks including CIFAR-10, CIFAR-100, and ImageNet across various architectures like ResNet44, VGGNet-16, and AlexNet.

Comparison of training time ratios (t1/t2) and classification accuracy between standard Batch Augmentation (BA) and Stochastic Batch Augmentation (SBA).

Performance Gains

SBA consistently outperformed baseline methods, including standard training and Cutout. On CIFAR-10, SBA with ResNet44 reduced the error rate from 6.92% to 3.23%, a 53.32% relative improvement. On CIFAR-100, VGGNet-16 saw an error drop from 38.67% to 22.19%. Significant gains were also observed on ImageNet, where VGGNet-16 error decreased from 23.78% to 19.37%.

Efficiency and Convergence

As shown in the performance analysis, SBA achieves superior classification accuracy compared to standard BA while maintaining a lower computational cost. The stochastic scheduler effectively eliminates unnecessary processing, allowing the model to reach high validation accuracy faster than traditional methods.

Discussion and Conclusion

SBA demonstrates that explicit vicinity modeling and stochasticity are powerful tools for improving neural network generalization and training efficiency. By forcing output distributions to match within a data point's neighborhood, the model avoids overfitting to sharp decision boundaries.

A key consideration for SBA is the hyperparameter $\eta$, which balances standard classification loss with the KL-divergence term. Empirical results suggest values between 0.01 and 0.1 are generally effective. While the current implementation assumes the predictions of original and augmented samples are relatively close, future work could explore adaptive batch scheduling based on model uncertainty or extending this framework to non-vision domains like NLP and audio.

Summary updated

BibTeX
@inproceedings{li2020stochastic,
  author = {Qian Li and Qingyuan Hu and Yong Qi and Saiyu Qi and Jie Ma and Jian Zhang},
  title = {{Stochastic Batch Augmentation with An Effective Distilled Dynamic Soft Label Regularizer}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  url = {https://openreview.net/forum?id=NDyu55TE6s},
}
Figure