Abstract
Standard softmax classifiers are inherently biased toward "head" classes because their weight norms grow with the amount of training data. This paper proposes replacing the dot-product classifier with a Prototype Classifier (PC) that uses learnable Euclidean distances. By decoupling class frequency from classifier magnitude, the proposed method achieves state-of-the-art results on long-tailed benchmarks like ImageNet-LT and iNaturalist18.
Introduction: The Softmax Bias
In real-world scenarios, data often follows a "long-tail" distribution where a few "head" classes dominate the sample count, while many "tail" classes have very few examples. Standard deep learning models using Softmax classifiers struggle in this setting. The authors identify that the $L_2$ norm of a classifier's weight vectors correlates strongly with class size; essentially, the model learns to prefer head classes because their weights are "larger" in magnitude.
While previous strategies like data resampling or post-hoc normalization attempt to mitigate this, this paper argues the issue is structural: the dot-product operation itself. They propose a classification model where decision boundaries are determined by geometry and distance rather than weight magnitude.
Methodology: Prototype Classifiers
The authors introduce a Prototype Classifier (PC) framework that operates in two stages: training a feature extractor followed by learning class "prototypes" in the representation space.
- Distance-Based Classification: Instead of a dot product ($W^T f(x)$), the model calculates the Euclidean distance between a feature vector and a learnable prototype $c_y$ for each class.
- Euclidean Distance Stability: The authors prove that using Euclidean distance (rather than squared Euclidean distance) leads to more stable gradients. The gradient norm is bounded by the misclassification probability, making optimization robust to outliers.
- Channel-Dependent Temperatures (CDT): Learnable, per-channel temperature parameters ($T_i$) allow the model to perform feature scaling, effectively learning a Mahalanobis distance with a diagonal covariance matrix.
- Logit Adjustment (LA): An additive offset is incorporated into the logits during training based on class priors to push decision boundaries further from head classes.
Key Insights: Geometry and Separation
A core advantage of the Prototype Classifier is the Equinorm Property. Unlike softmax weights, learned prototypes tend to have very similar norms, preventing structural bias toward frequent classes. Furthermore, learning these prototypes—rather than just calculating class means (centroids)—allows the model to maximize class separation.
The theoretical analysis of the gradient is a highlight: standard Euclidean distance keeps the gradient magnitude tied strictly to the probability of error, ensuring stable updates even for tail classes that might have noisy feature representations.
Experimental Results
The Prototype Classifier consistently outperforms state-of-the-art (SOTA) methods across multiple benchmarks:
- CIFAR100-LT: Achieved 53.41% accuracy (Ratio 100), a significant improvement over the Softmax baseline (46.12%).
- ImageNet-LT: Reached 54.9% overall accuracy, surpassing complex models like DisAlign.
- iNaturalist18: Achieved 70.6% accuracy, performing comparably to ensemble-based methods like RIDE without the added computational cost.
Conclusion
By replacing the biased dot-product classifier with a distance-based prototype approach, this work provides a simple yet effective solution for long-tailed recognition. The method is backbone-agnostic and achieves superior performance by focusing on the underlying geometry of the representation space. Future work may explore end-to-end training or non-Euclidean geometries to further enhance these results.
Summary updated