Phantom Embeddings: Using Embeddings Space for Model Regularization in Deep Neural Networks

Mofassir ul Islam Arif, Mohsan Jameel, Josif Grabocka, Lars Schmidt-Thieme

Introduction

Deep neural networks (DNNs) are highly effective but prone to overfitting, often memorizing training data rather than learning generalizable features. This is particularly prevalent in complex architectures like ResNets when training data is limited. While standard techniques such as Dropout or weight decay help, they often require extensive hyperparameter tuning and fail to address the geometric proximity of different classes in the latent embedding space. This paper introduces Phantom Embeddings, a novel, hyperparameter-free regularization technique designed to pull data points away from decision boundaries and toward their respective class centers.

The Phantom Embedding Method

Phantom Embeddings operates directly within the model's latent space during training. Instead of processing a single image, the method samples a "micro-cluster" of $K$ instances belonging to the same class.

  1. Feature Extraction: The network generates $K$ latent embeddings for the micro-cluster.
  2. Aggregation: These embeddings are averaged to create a single "Phantom Embedding."
  3. Joint Optimization: The final loss is a combination of the prediction from the original instance and the prediction from the Phantom Embedding.

To ensure the method remains hyperparameter-free, the weight used to combine these losses ($\alpha$) is drawn randomly from a Beta distribution. This stochasticity acts as an additional layer of regularization, preventing the model from over-relying on specific micro-cluster geometries.

The Phantom Embedding architecture, illustrating the flow from micro-cluster feature extraction to joint loss calculation.

Geometric Intuition: Latent Space Gravity

The core insight of Phantom Embeddings is the creation of "Latent Space Gravity." By averaging same-class embeddings, the resulting Phantom Embedding acts as a gravitational center or anchor. During optimization, this anchor pulls individual samples away from the decision boundary, where inter-class confusion is highest, and toward the center of the class distribution. This inherently boosts the model's robustness against samples that might otherwise sit in "geometric blindspots" near the boundary.

Conceptual visualization of how Phantom Embeddings (c) regularize the latent space by anchoring samples away from decision boundaries compared to standard training.

Experimental Results

The authors evaluated Phantom Embeddings on the CIFAR-10 and FashionMNIST benchmarks using various ResNet architectures. The method consistently outperformed vanilla baselines and traditional regularizers like Dropout:

  • CIFAR-10: ResNet-18 accuracy improved from 93.50% (baseline) to 94.91%. Similar gains were observed for ResNet-34 and ResNet-50.
  • FashionMNIST: ResNet-18 achieved 95.07% accuracy compared to the 94.78% baseline.
  • Training Stability: Qualitative analysis shows that Phantom Embeddings lead to more "deliberative" learning. The model avoids rapid memorization and maintains a lower final test loss, resisting overfitting even when trained well past convergence.

Limitations and Future Work

While Phantom Embeddings provide significant accuracy gains without manual tuning, they introduce computational overhead. Generating the embeddings requires $K$ forward passes through the feature extractor for every training step (with $K=2$ typically offering the best balance). Future research is needed to evaluate the method's performance on larger-scale datasets like ImageNet and its applicability to non-image domains such as Natural Language Processing or tabular data.

Summary updated

BibTeX
@inproceedings{arif2020phantom,
  author = {Mofassir ul Islam Arif and Mohsan Jameel and Josif Grabocka and Lars Schmidt-Thieme},
  title = {{Phantom Embeddings: Using Embeddings Space for Model Regularization in Deep Neural Networks}},
  booktitle = {LWDA},
  year = {2020},
}
Figure