Flipover outperforms dropout in deep learning

Yuxuan Liang, Chuang Niu, Pingkun Yan, Ge WangVisual 2024

Abstract

Flipover, an enhanced dropout technique, is introduced to improve the robustness of artificial neural networks. In contrast to dropout, which involves randomly removing certain neurons and their connections, flipover randomly selects neurons and reverts their outputs using a negative multiplier during training. This approach offers stronger regularization than conventional dropout, refining model performance by (1) mitigating overfitting, matching or even exceeding the efficacy of dropout; (2) amplifying robustness to noise; and (3) enhancing resilience against adversarial attacks. Extensive experiments across various neural networks affirm the effectiveness of flipover in deep learning.

Introduction

Deep neural networks (DNNs) are powerful tools but remain susceptible to overfitting and lack robustness against noise or adversarial perturbations. While Dropout has been the industry standard for regularization since 2012, its effectiveness in defending against intentional attacks is limited. Flipover is proposed as a "bolder" alternative that provides stronger regularization and enhanced defensive capabilities without significant computational overhead.

Methodology

The fundamental difference between Dropout and Flipover lies in how they perturb the network during the training phase. While standard Dropout randomly sets a fraction of neuron outputs to zero—effectively removing those features—Flipover multiplies these outputs by a negative factor (typically -1).

Comparison of (a) standard neural network, (b) dropout, and (c) flipover.

By introducing "opposite features" rather than simply removing them, Flipover creates a more challenging training environment. Mathematically, this acts as a regularization term that is approximately twice as strong as Dropout for the same probability rate. The technique is governed by two primary hyperparameters: the flipover rate ($p$) and the flipping amplitude ($\alpha$).

Key Insights

  • Stronger Regularization: The negative multiplier forces the model to learn representations that are resilient to "wrong" information, leading to more stable generalization compared to just missing information.
  • Training-Only Defense: Unlike many defense mechanisms, Flipover provides significant adversarial protection even when disabled during inference, preserving high accuracy on clean data.
  • Layer Sensitivity: Empirical evidence suggests that Flipover is most effective when applied to deeper layers, as early application can lead to excessive initial information loss.

Experimental Evaluation

The efficacy of Flipover was tested across multiple benchmarks using standard architectures like ResNet18 and Vision Transformers (ViT).

  • MNIST: Evaluated using a 4-layer CNN for basic accuracy and overfitting.
  • CIFAR-10: Tested with ResNet18 and ViT architectures to measure noise suppression.
  • Robustness Tests: Custom datasets were generated using Gaussian, Poisson, and Salt-and-Pepper noise.
  • Adversarial Attacks: Models were subjected to the Fast Gradient Sign Method (FGSM) to measure defensive strength.

Results

Flipover consistently outperformed standard Dropout and vanilla models across all metrics:

  • Accuracy: On MNIST, Flipover reached 99.18% accuracy, slightly higher than Dropout's 99.07%.
  • Noise Resilience: In Salt-and-Pepper noise scenarios on CIFAR-10, Flipover achieved 53.49% accuracy, significantly higher than Dropout (48.00%) and vanilla models (46.71%).
  • Adversarial Defense: Under FGSM attack ($\epsilon = 0.25$), Flipover maintained 40.99% accuracy on ResNet18, nearly doubling the performance of Dropout (23.14%).

Conclusion

Flipover represents a simple yet powerful advancement in neural network regularization. By flipping rather than dropping neuron outputs, it forces models to develop superior robustness against both random noise and targeted adversarial attacks. Future work will focus on optimizing hyperparameter selection and exploring the application of Flipover to the attention mechanisms within Transformer architectures.

Summary updated

BibTeX
@inproceedings{liang2024flipover,
  author = {Yuxuan Liang and Chuang Niu and Pingkun Yan and Ge Wang},
  title = {{Flipover outperforms dropout in deep learning}},
  booktitle = {Visual},
  year = {2024},
  doi = {10.1186/s42492-024-00153-y},
}
Figure