Abstract
The use of unsupervised data in addition to supervised data in training discriminative neural networks has improved the performance of this classification scheme. However, the best results were achieved with a training process that is divided in two parts: first an unsupervised pre-training step is done for initializing the weights of the network and after these weights are refined with the use of supervised data. On the other hand adversarial noise has improved the results of classical supervised learning. Recently, a new neural network topology called Ladder Network, where the key idea is based in some properties of hierarchical latent variable models, has been proposed as a technique to train a neural network using supervised and unsupervised data at the same time with what is called semi-supervised learning. This technique has reached state of the art classification. In this work we add adversarial noise to the ladder network and get state of the art classification, with several important conclusions on how adversarial noise can help in addition with new possible lines of investigation. We also propose an alternative to add adversarial noise to unsupervised data.
Introduction
Deep learning typically thrives on massive amounts of labeled data, which is expensive and time-consuming to produce. Semi-supervised learning (SSL) aims to bridge this gap by using a small amount of labeled data alongside a large pool of unlabeled data. The Ladder Network is a leading SSL architecture that uses a "denoising" task at every layer to learn the underlying structure of data. However, like most neural networks, Ladder Networks are susceptible to adversarial examples: tiny, intentional perturbations that are invisible to humans but cause models to fail. This research explores whether generating adversarial noise can serve as a training tool to make Ladder Networks more robust and accurate.
Methods
The proposed architecture builds upon the standard Ladder Network, which consists of an encoder-decoder stack with lateral connections. The primary innovation is the type of noise injected into the system:
- Supervised Adversarial Noise: Using the Fast Gradient Sign Method (FGSM), the gradient of the classification cost is calculated with respect to the input. The input is then perturbed in the direction that increases error, forcing the model to learn robustness.
- Norm vs. Sign: The research compares the standard "Sign" method with a "Norm" method (normalizing the gradient vector to unit length). The "Norm" method is argued to preserve better directional information, which is crucial for minimizing Mean Squared Error (MSE) in reconstruction layers.
- Unsupervised Adversarial Noise (UA): For unlabeled data, the model’s own current prediction is used as a "pseudo-label." Adversarial noise is then generated based on this guess to push unlabeled samples toward decision boundaries during the denoising process.
- Multilayer Injection: The study explores injecting adversarial noise at every level of the network hierarchy, rather than just the input layer.
Experimental Results
The study focuses on the MNIST dataset, evaluating the model under different "label budgets" (50, 100, 1000, and 60,000 labels) across both Fully Connected (MLP) and Convolutional (CNN) architectures.
The "Adversarial Ladder" consistently outperformed the standard Ladder Network across almost all tests. As shown in the table below, for the 50-label budget on a fully connected network, the error rate improved from 1.750% to 1.417%. Similar gains were observed in the convolutional setting, where the 100-label error rate dropped from 0.938% to 0.884%.
Discussion and Conclusion
Adversarial noise acts as a "super-regularizer" by pushing features specifically toward decision boundaries where the model is most uncertain. This forces the network to extract more robust, invariant features. Interestingly, the best results often came from mixing both Gaussian and adversarial noise, suggesting a synergy between random and targeted perturbations.
While the approach yields state-of-the-art results, it introduces computational complexity, as generating adversarial noise requires an extra backpropagation step for every forward pass. Additionally, the magnitude of adversarial noise is a sensitive hyperparameter. Future work will involve testing these methods on more complex datasets like CIFAR-10 to verify if these gains generalize beyond the MNIST benchmark.
Summary updated