Introduction
Deep Neural Networks (DNNs) often struggle with "long-tailed" or imbalanced datasets, where majority classes significantly outnumber minority classes. This imbalance is prevalent in critical domains such as fraud detection, medical diagnosis, and anomaly detection. The primary challenges are two-fold: "imposter neighbors," where minority examples are lost in the feature space among majority examples, and "hard examples," where the sheer volume of easy majority instances overwhelms the loss function.
Methodology: Focused Anchors Loss (FAL)
The proposed Focused Anchors Loss (FAL) addresses these issues through a two-stage approach:
- Discriminative Clustering: The model learns "anchors" (centroids) for each class in the embedding space. By minimizing Euclidean distance between feature vectors and their respective anchors, the network is forced to learn tight, well-separated clusters. This directly mitigates the imposter neighbor problem by creating a large margin between classes.
- Cost-Sensitive Weighting: After converting distances to probabilities, Focal Loss is applied. This adds a modulating factor that down-weights the loss from "easy" examples, focusing the gradient updates on "hard" examples typically found in the minority class.
A variant, Focused Anchor Mean Loss (FAML), updates anchors using a moving average of feature vectors rather than backpropagation, often leading to more stable convergence and better discriminative features.
Experimental Evaluation
The authors evaluated FAL/FAML across three domains:
- Fraud Detection: Six datasets (e.g., Credit Card, PaySim) with imbalance ratios up to 1:737.
- Image Classification: A long-tailed version of CIFAR-10 with exponential class decay.
- Extreme Imbalance: A proprietary Suspicious Activity Reporting (SAR) dataset with a 1:2222 ratio.
Key Results
FAL/FAML consistently outperformed standard Cross-Entropy and traditional re-sampling methods like SMOTE. On the Credit Card dataset, FAML improved the F1-score by 0.04. In the extreme 1:2222 bank dataset, FAL achieved an AUC-ROC of 0.977, a 0.1 gain over Decision Tree + SMOTE baselines. Notably, FAL proved more computationally efficient than GAN-based or oversampling methods as it does not require synthetic data generation.
Discussion and Limitations
The study highlights that feature space representation is as critical as loss weighting. By explicitly constraining embeddings, FAL prevents minority samples from being subsumed by the majority. However, the method introduces new hyperparameters (e.g., likelihood penalty $\beta$) and underperformed specific state-of-the-art weighting schemes on CIFAR-10, suggesting potential for hybrid approaches.
Conclusion
Focused Anchors Loss provides a robust framework for imbalanced classification by combining geometric constraints in the feature space with cost-sensitive optimization. Its efficiency and performance on extreme imbalance make it a viable candidate for real-world financial and diagnostic applications.
Summary updated