Semi-supervised Deep Learning with Memory

Yanbei Chen, Xiatian Zhu, Shaogang Gong

Abstract

Semi-supervised learning (SSL) leverages unlabeled data to enhance model performance when labeled data is scarce. However, standard SSL methods often suffer from error propagation due to noisy pseudo-labels generated by "immature" networks. This paper introduces the Memory-Assisted Deep Neural Network (MA-DNN), which incorporates an external memory module to store class-level features and historical predictions. By employing a mechanism inspired by cognitive development—Assimilation and Accommodation—MA-DNN provides stable guidance for unlabeled samples. Experimental results on CIFAR and SVHN benchmarks demonstrate that MA-DNN significantly outperforms existing state-of-the-art methods, particularly in fine-grained classification tasks.

Introduction

In deep learning, the acquisition of labeled data is often a bottleneck due to high costs and time requirements. Semi-supervised learning (SSL) addresses this by utilizing a small labeled dataset alongside a larger unlabeled pool. Most modern SSL techniques rely on the current state of the network to generate pseudo-labels or enforce consistency. However, early in the training process, a network's predictions are inherently noisy. Relying solely on these "up-to-date" states can lead to error propagation, where the model reinforces its own incorrect guesses.

Conceptual overview of the MA-DNN framework showing the interaction between the Deep CNN and the external Memory module through Assimilation and Accommodation.

While methods like Temporal Ensembling attempt to mitigate this by averaging predictions over time, they are computationally expensive and do not scale well, as they require storing predictions for every training sample. The Memory-Assisted Deep Neural Network (MA-DNN) proposes a more efficient alternative: a class-level memory that captures the "wisdom" of the training process to guide the learning of unlabeled data.

Methodology: The MA-DNN Framework

The core of the MA-DNN is an external key-value memory module inspired by Piaget’s theory of cognitive development. The learning process is divided into two primary phases: Assimilation and Accommodation.

The Memory Module

Unlike sample-based memory, MA-DNN maintains class-level representations:

  • Keys: Store the "centroids" or average feature representations for each class.
  • Values: Store the historical probabilistic predictions (uncertainty) associated with those classes.

Assimilation and Accommodation

  1. Assimilation: When presented with an unlabeled image, the network extracts its features and queries the memory. It identifies similar "keys" and retrieves the corresponding "values" to generate a stable memory prediction.
  2. Accommodation: The network adjusts its weights using a dual-component Memory Loss ($L_m$):
  3. Model Entropy (ME): Encourages confident, distinct predictions to reduce class overlap in the feature space.
  4. Memory-Network Divergence (MND): Ensures the current network's predictions remain consistent with the long-term knowledge stored in the memory.
Detailed architecture of MA-DNN and the evolution of assimilated predictions for an unlabeled 'Cat' sample over 100 epochs.

This memory is updated whenever labeled data is processed, allowing the "keys" to evolve as the model's understanding of each class matures. Crucially, the memory module is only required during training; it is discarded at test time, ensuring zero overhead during deployment.

Experimental Results

The authors evaluated MA-DNN on standard benchmarks including SVHN, CIFAR-10, and CIFAR-100 under sparse labeling conditions.

Performance and Robustness

  • CIFAR-100: MA-DNN showed its greatest strength in fine-grained classification, achieving an error rate of 34.51%, significantly outperforming Temporal Ensembling (37.34%).
  • SVHN: The model demonstrated remarkable robustness to label scarcity. With only 250 labeled images, a standard supervised CNN reached a 61.18% error rate, while MA-DNN maintained a low 8.83% error rate.
  • Efficiency: By avoiding multiple stochastic passes per sample, MA-DNN remains computationally leaner than many contemporary SSL methods like Mean Teacher or VAT.

Conclusion

The Memory-Assisted Deep Neural Network provides a scalable and efficient solution to the problem of noisy pseudo-labeling in semi-supervised learning. By shifting from sample-level to class-level memory and utilizing the principles of Assimilation and Accommodation, the model achieves state-of-the-art performance on complex datasets. Future work may explore the application of this memory framework to more complex domains such as object detection and video analysis.

Summary updated

BibTeX
@inproceedings{chen2018semi,
  author = {Yanbei Chen and Xiatian Zhu and Shaogang Gong},
  title = {{Semi-supervised Deep Learning with Memory}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01246-5\_17},
}
Figure