Abstract
This paper considers deep visual recognition on long-tailed data. To make our method general, we tackle two applied scenarios, i.e., deep classification and deep metric learning. Under the long-tailed data distribution, the most classes (i.e., tail classes) only occupy relatively few samples and are prone to lack of within-class diversity. A radical solution is to augment the tail classes with higher diversity. To this end, we introduce a simple and reliable method named Memory-based Jitter (MBJ). We observe that during training, the deep model constantly changes its parameters after every iteration, yielding the phenomenon of weight jitters. Consequentially, given a same image as the input, two historical editions of the model generate two different features in the deeply-embedded space, resulting in feature jitters. Using a memory bank, we collect these (model or feature) jitters across multiple training iterations and get the so-called Memory-based Jitter. The accumulated jitters enhance the within-class diversity for the tail classes and consequentially improves long-tailed visual recognition. With slight modifications, MBJ is applicable for two fundamental visual recognition tasks, i.e., deep image classification and deep metric learning (on long-tailed data). Extensive experiments on five long-tailed classification benchmarks and two deep metric learning benchmarks demonstrate significant improvement. Moreover, the achieved performance are on par with the state of the art on both tasks.
Introduction
In real-world scenarios, visual data rarely follows a uniform distribution. Instead, it typically exhibits a "long-tailed" distribution where a small number of "head" classes possess the majority of samples, while a large number of "tail" classes are represented by very few examples. This imbalance poses a significant challenge for deep learning models, which tend to overfit the head classes and fail to generalize for the tail.
The core issue identified in this research is the lack of within-class diversity for tail categories. In the deeply-embedded feature space, tail classes often collapse into narrow, sparse clusters. Standard data augmentation or over-sampling of raw images can lead to overfitting or distortion of the feature manifold. Memory-Based Jitter (MBJ) addresses this by leveraging the inherent fluctuations of the training process itself to generate "free" feature-level diversity.
The MBJ Framework
MBJ is built on the observation that a neural network's weights and resulting feature outputs are never static during training. As the model optimizes, it undergoes "jitters":
- Weight Jitter: The constant shifting of model parameters (specifically classifier prototypes) across iterations.
- Feature Jitter: The variation in feature representations produced when the same image is passed through different historical versions of the model.
To exploit these jitters, the framework employs a memory bank and a reversed sampling strategy. While the input mini-batch is sampled randomly (favoring head classes), the memory bank prioritizes storing and retrieving jitters from tail classes. This ensures that during optimization, the model sees a balanced and diverse set of representations for under-represented categories, effectively "filling out" their feature space without requiring additional raw data.
Visualizing Diversity and Generalization
The impact of MBJ is most evident when visualizing the feature space. When a class is treated as a "head" class, it naturally forms a dense, diverse cluster. However, as a "tail" class, its representation becomes extremely sparse, leading to poor classification accuracy (e.g., 50.6% in the provided examples).
By augmenting the tail class with historical "jitters" (represented by triangles in the visualization), MBJ restores the cluster's diversity. This allows the model to learn more robust decision boundaries, significantly boosting the top-1 accuracy for tail classes (e.g., from 50.6% to 88.6%).
Experimental Results
The authors validated MBJ across multiple benchmarks for both image classification and deep metric learning:
- Image Classification: On CIFAR-10 with an imbalance ratio of 100, MBJ improved accuracy by +10.6% over the baseline. On the large-scale iNaturalist18 dataset, it achieved competitive results while remaining significantly more memory-efficient than previous state-of-the-art memory-based methods.
- Deep Metric Learning: In Person Re-ID tasks (Market-1501), MBJ reached 72.6% mAP, outperforming the previous "Feature Cloud" state-of-the-art (68.7%).
- Plug-and-Play Compatibility: MBJ can be easily integrated into existing architectures. For instance, combining MBJ with the RIDE ensemble method on Places-LT pushed accuracy to 42.5%.
Conclusion
Memory-Based Jitter provides a simple yet powerful mechanism for addressing the long-tail problem in visual recognition. By treating training instability as a source of diversity rather than noise, MBJ offers a computationally efficient way to augment tail classes. Future work may involve more sophisticated memory management strategies to further refine which historical jitters are most informative for the model's generalization.
Summary updated