Kernel-convoluted Deep Neural Networks with Data Augmentation

Minjin Kim, Young-geun Kim, Dongha Kim, Yongdai Kim, Myunghee Cho Paik

Abstract

The Mixup method, which uses linearly interpolated data, has emerged as an effective data augmentation tool to improve generalization performance and the robustness to adversarial examples. The motivation is to curtail undesirable oscillations by its implicit model constraint to behave linearly at in-between observed data points and promote smoothness. In this work, we formally investigate this premise, propose a way to impose smoothness constraints explicitly, and extend it to incorporate implicit model constraints. First, we derive a new function class composed of kernel-convoluted models (KCM) where the smoothness constraint is directly imposed by locally averaging the original functions with a kernel function. Second, we propose to incorporate the Mixup method into KCM to expand the domains of smoothness. In both cases of the KCM and the KCM adapted with the Mixup, we provide risk analysis, respectively, under mild conditions on kernel functions. As a result, we show that the upper bound of the excess risk over a new function class is not slower than that of the excess risk over the original function class. Using CIFAR-10 and CIFAR-100 datasets, our experiments demonstrate that the KCM with the Mixup outperforms the Mixup method in terms of generalization and robustness to adversarial examples.

Introduction

Deep neural networks are notorious for "memorizing" training data, a phenomenon that often leads to overfitting. While these models may achieve near-zero error on training sets, they frequently struggle with out-of-distribution data or fall victim to adversarial examples—tiny, imperceptible perturbations designed to deceive the model.

A common mitigation strategy is Mixup, a data augmentation technique where the model is trained on linear interpolations of image pairs. The underlying hypothesis is that Mixup forces the model to behave linearly between data points, thereby reducing unnecessary oscillations in the decision boundary. However, this constraint is implicit. This research explores whether this smoothness constraint can be made explicit and theoretically sound through the introduction of Kernel-convoluted Models (KCM).

Methodology

The core contribution of this work is the shift from hoping for implicit smoothness to defining it explicitly within the model architecture. The authors propose two primary advancements:

  1. Kernel-convoluted Models (KCM): Instead of training a standard function $f(x)$, the authors define a function class where the output is a weighted average of the function’s values in a local neighborhood. This is achieved via convolution with a kernel (e.g., a Gaussian kernel), which directly imposes a smoothness constraint.
  2. Synergy with Mixup: By integrating Mixup into the KCM framework, the model achieves a broader domain of smoothness. While KCM stabilizes the area immediately surrounding specific data points, Mixup handles the transitions between different classes.
Conceptual comparison of Mixup (left), KCM (middle), and the combined KCM + Mixup approach (right).

To implement this efficiently, the authors utilize a Monte Carlo approximation. During training, they sample a noise vector $u$ from a kernel distribution to calculate $f(x - u)$. Empirical results show that even a single sample ($N=1$) provides an unbiased estimator that outperforms standard Mixup.

Experiments and Results

The approach was evaluated using the synthetic Two-moon dataset for visualization, as well as the CIFAR-10 and CIFAR-100 image classification benchmarks.

Generalization and Robustness

The KCM + Mixup combination consistently outperformed both standard Empirical Risk Minimization (ERM) and standard Mixup:

  • Accuracy: On CIFAR-100, KCM + Mixup achieved 79.12% accuracy, surpassing standard Mixup (78.47%) and ERM (74.44%).
  • Adversarial Robustness: The method showed significant gains against adversarial attacks. Under White-box (FGSM) attacks on CIFAR-10, accuracy improved from 75.63% (Mixup) to 78.24% (KCM + Mixup). In iterative attacks (I-FGSM), the improvement was even more pronounced, rising from 51.82% to 56.07%.

Visual Smoothness

Visualizations of the Two-moon dataset demonstrate that KCM produces decision boundaries that are notably more natural and less jagged than those of ERM or Mixup alone.

Decision boundaries on the two-moon dataset showing the smoothing effect of the proposed methods.

Conclusion

By explicitly baking smoothness into deep neural networks through kernel convolution, KCM provides a theoretically grounded method for improving model stability. While the performance is sensitive to the kernel's "bandwidth" hyperparameter and introduces a slight computational overhead due to Monte Carlo sampling, the gains in generalization and adversarial robustness are substantial. Future work may explore adaptive kernels that adjust based on local data density to further optimize performance.

Summary updated

BibTeX
@inproceedings{kim2021kernel,
  author = {Minjin Kim and Young-geun Kim and Dongha Kim and Yongdai Kim and Myunghee Cho Paik},
  title = {{Kernel-convoluted Deep Neural Networks with Data Augmentation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  url = {https://openreview.net/forum?id=K6jbM2sr50J},
}
Figure