Introduction
In many real-world AI applications, misclassifications carry unequal weights. For instance, in autonomous driving, failing to detect a "Stop" sign is significantly more dangerous than misidentifying a "No Parking" sign. High recall for critical classes is essential. Traditional "cost-sensitive learning" methods, such as Weighted Cross-Entropy (WCE), typically penalize misses on important classes more heavily. However, these methods often act as a blunt instrument, shifting decision boundaries in a way that improves recall at the expense of overall model accuracy. The authors of CAMRI Loss identify that these existing methods fail to improve the actual separation of features in latent space; they merely move the "fence" between classes.
The CAMRI Approach
The proposed CAMRI Loss (Class-sensitive additive Angular MaRgIn Loss) addresses this by building on angular margin losses like ArcFace. While standard classifiers use the dot product between feature vectors and class weights, ArcFace introduces an angular margin ($m$) to force the model to learn more discriminative features.
The core innovation of CAMRI is its surgical application: the angular margin is applied only when the ground-truth label is the designated "important" class. This forces the model to push features of the target class into a much tighter, more compact angular space around its weight vector, while other classes are trained normally. This approach achieves better intra-class compactness for the priority category without unnecessarily distorting the rest of the feature space.
Key Insights: Boundary Shifting vs. Feature Shaping
A fundamental insight of this work is the distinction between changing the decision boundary (the "fence") and changing the distribution of the features themselves (the "clusters"). Traditional cost-sensitive losses only perform the former. By adding a margin specifically to the target class, CAMRI reduces the variance of the angles for that class, making the model more "certain" and less prone to pollution from similar-looking objects in other classes.
Experimental Results
The researchers evaluated CAMRI Loss across three diverse datasets: CIFAR-10, the German Traffic Sign Recognition Benchmark (GTSRB), and Animals with Attributes 2 (AwA2). Across these tasks, CAMRI consistently outperformed standard Cross-Entropy and traditional cost-sensitive methods.
- Recall Boost: CAMRI improved target class recall by up to 9% compared to standard cross-entropy.
- Accuracy Preservation: Unlike WCE, which often causes accuracy drops, CAMRI maintained or slightly improved overall performance.
- Superiority over Global Margins: In 8 out of 9 experimental setups, CAMRI achieved higher recall for the important class than standard "global" ArcFace.
Conclusion and Future Directions
CAMRI Loss provides a precise mechanism for prioritizing specific classes in classification tasks. While highly effective for single-class prioritization, future work remains to extend this to multiple "must-not-miss" categories and to further automate hyperparameter tuning for the margin ($m$) and temperature scale ($s$).
Summary updated