Embedding Space Interpolation Beyond Mini-Batch, Beyond Pairs and Beyond Examples

Shashanka Venkataramanan, Ewa Kijak, laurent amsaleg, Yannis Avrithis

Abstract

Data augmentation techniques like Mixup have become essential for training robust deep neural networks. However, traditional Mixup is often restricted to linear interpolations between pairs of examples within a single mini-batch. This paper introduces MultiMix and Dense MultiMix, which transcend these limitations by sampling from the convex hull of an entire mini-batch in the deep embedding space. By leveraging the Dirichlet distribution and spatial attention maps, these methods allow for the generation of thousands of synthetic examples per iteration with minimal computational overhead. Experimental results demonstrate state-of-the-art performance on ImageNet, improved adversarial robustness, and superior transfer learning capabilities.

1. Introduction

The success of deep learning models is heavily dependent on the diversity and volume of training data. Data augmentation, specifically interpolation-based methods like Mixup, regularizes models by encouraging linear behavior between training samples. Despite its efficacy, standard Mixup is limited in three dimensions: it typically operates on pairs of examples, is constrained by the mini-batch size, and often occurs in the raw input space.

The proposed MultiMix framework addresses these constraints by shifting the interpolation process to the deep embedding space—the layer immediately preceding the classifier. This shift enables the sampling of points from the entire convex hull of the mini-batch, providing a much richer vicinal distribution for the model to learn from.

2. Methodology

The authors introduce two primary variants: MultiMix and Dense MultiMix.

2.1 MultiMix: Sampling the Convex Hull

Unlike traditional Mixup, which selects two points and interpolates along the line connecting them, MultiMix utilizes a Dirichlet distribution to interpolate across all examples in a mini-batch simultaneously. This allows the creation of synthetic embeddings that are composite representations of multiple classes (e.g., a mixture of dog, car, and tree features).

Because this interpolation occurs at the final embedding layer, the computational cost is decoupled from the complexity of the backbone network. This allows the researchers to generate an arbitrarily large number of synthetic examples ($n \gg b$)—often up to 1,000 or 10,000 per mini-batch—without significant slowdown.

2.2 Dense MultiMix: Spatial Awareness

For tasks involving spatial data like images, Dense MultiMix introduces a localized interpolation strategy. Rather than applying a single interpolation factor to an entire embedding, Dense MultiMix interpolates at every spatial location (pixel or patch level). To ensure semantic consistency, the method employs attention-weighted maps derived from Global Average Pooling. This ensures that the loss function prioritizes semantically relevant regions, effectively acting as a weak supervisor for the interpolation process.

3. Experimental Results

The effectiveness of MultiMix was evaluated across various benchmarks, including CIFAR-10/100, Tiny ImageNet, and ImageNet-1K.

3.1 Classification Performance

On the ImageNet-1K dataset using a ResNet-50 architecture, MultiMix achieved a top-1 accuracy of 79.42%. This outperforms the baseline (76.32%) and surpasses other advanced mixup variants such as AlignMixup (79.32%) and PuzzleMix (78.76%).

3.2 Robustness and Generalization

The methods showed significant improvements in adversarial robustness. Under PGD attacks on CIFAR-100, Dense MultiMix substantially reduced error rates compared to standard augmentation techniques. Furthermore, the features learned via Dense MultiMix proved highly effective for downstream tasks; pre-trained models showed a gain of 0.8 mAP on the Pascal VOC object detection task.

3.3 Computational Efficiency

A key advantage of performing interpolation in the embedding space is efficiency. Despite increasing the number of training examples by orders of magnitude, the training overhead for a ResNet-50 on ImageNet was less than 3%. This demonstrates that "Beyond Mini-Batch" augmentation is practically viable for large-scale training.

4. Discussion: The Geometry of Embeddings

The paper provides insights into why MultiMix works. By analyzing the embedding space, the authors found that MultiMix promotes better alignment (tighter class clusters) and uniformity (even distribution of classes across the feature space). By significantly increasing the number of loss terms per mini-batch, the model is forced to navigate a smoother decision surface, preventing overconfidence and reducing the memorization of noise.

5. Conclusion and Future Work

MultiMix and Dense MultiMix represent a significant evolution in data augmentation. By moving beyond pairs and mini-batch constraints, these methods provide a more comprehensive sampling of the data's underlying manifold. While the current approach relies on linear interpolation and weak supervision via attention maps, future work may explore non-linear manifold interpolation and the application of these principles to self-supervised learning frameworks.

Summary updated

BibTeX
@inproceedings{venkataramanan2023embedding,
  author = {Shashanka Venkataramanan and Ewa Kijak and laurent amsaleg and Yannis Avrithis},
  title = {{Embedding Space Interpolation Beyond Mini-Batch, Beyond Pairs and Beyond Examples}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=HKueO74ZTB},
}
Figure