Abstract
The strength of machine learning models stems from their ability to learn complex function approximations from data; however, this strength also makes training deep neural networks challenging. Notably, the complex models tend to memorize the training data, which results in poor regularization performance on test data. The regularization techniques such as L1, L2, dropout, etc. are proposed to reduce the overfitting effect; however, they bring in additional hyperparameters tuning complexity. These methods also fall short when the inter-class similarity is high due to the underlying data distribution, leading to a less accurate model. In this paper, we present a novel approach to regularize the models by leveraging the information-rich latent embeddings and their high intra-class correlation. We create phantom embeddings from a subset of homogenous samples and use these phantom embeddings to decrease the inter-class similarity of instances in their latent embedding space. The resulting models generalize better as a combination of their embedding and regularize them without requiring an expensive hyperparameter search. We evaluate our method on two popular and challenging image classification datasets (CIFAR and FashionMNIST) and show how our approach outperforms the standard baselines while displaying better training behavior.
Introduction
Deep neural networks (DNNs) are highly effective at learning complex patterns, but this capacity often leads to overfitting, where the model memorizes training noise rather than generalizable features. Standard regularization methods like weight decay, Dropout, and data augmentation are widely used but often require extensive hyperparameter tuning. Furthermore, these methods frequently struggle when inter-class similarity is high—situations where different classes appear nearly identical in the input space.
The "Phantom Embeddings" approach addresses these limitations by utilizing the model's internal latent space. Instead of merely modifying input data, this method leverages the high intra-class correlation of embeddings to guide the learning process toward more distinct class clusters, effectively widening the margins between different categories.
The Phantom Embedding Approach
The core innovation of this work is the creation of an aggregate representation, or "phantom embedding," from a small group of same-class samples during training.
Methodology
The process follows a structured sequence within each training step:
- Micro-clustering: A small cluster of $K$ instances belonging to the same class is sampled.
- Embedding Generation: Each instance is processed through the network's feature extractor to generate a high-dimensional latent embedding.
- Aggregation: A "Phantom Embedding" is calculated as the mean of these $K$ embeddings, serving as a stable class centroid.
- Dual-Target Loss: The loss function is modified to pull the primary instance's embedding toward the phantom embedding.
- Stochastic Weighting: To eliminate the need for manual hyperparameter tuning, the weight ($\alpha$) for this regularization term is drawn from a Beta distribution, introducing beneficial stochasticity.
By forcing individual instances toward a class-average point, the model naturally pushes them away from ambiguous decision boundaries shared with other classes. This creates "wider" margins in the latent space, leading to more robust classification.
Experimental Evaluation
The authors evaluated the Phantom Embedding method on two benchmark datasets: CIFAR-10 (color images across 10 classes) and FashionMNIST (grayscale clothing items with high intra-class variation).
Key Results
Using ResNet architectures (18, 34, and 50), the researchers compared Phantom Embeddings against standard baselines and existing regularization techniques like Dropout and DisturbLabel.
- Performance Gains: On CIFAR-10, Phantom ResNet-18 achieved an accuracy of 94.91%, significantly higher than the vanilla baseline (93.5%) and Dropout (94.11%).
- Stability and Convergence: The method demonstrated more stable convergence with lower variance in the final epochs. Even when models were run past the typical point of convergence, Phantom Embedding models maintained lower test loss, indicating superior resistance to overfitting.
- Scalability: The performance benefits remained consistent as model depth increased, with ResNet-34 achieving 95.38% accuracy on FashionMNIST.
Discussion and Insights
Phantom Embeddings provide intrinsic regularization. Unlike Dropout, which randomly deactivates neurons, or Data Augmentation, which alters inputs, this method uses the model’s own "understanding" of the data to self-correct. The authors observed a "deliberative" learning behavior: while baseline models might show rapid initial accuracy gains, Phantom Embedding models learn more robust representations that yield higher final performance and better generalization.
The choice of $K=2$ for the micro-cluster size was found to be the optimal balance between performance gains and memory overhead. While larger $K$ values provided marginal improvements, they increased computational costs.
Conclusion
Phantom Embeddings offer a novel, hyperparameter-free way to regularize deep neural networks by leveraging latent space dynamics. By encouraging intra-class compactness and inter-class separation through "phantom" targets, the method improves generalization on challenging image classification tasks. Future work may explore applying this technique to other domains, such as natural language processing or metric learning, where latent embeddings play a critical role.
Summary updated