[Paper Review] Learning to Re-weight Examples with Optimal Transport for Imbalanced Classification
This paper proposes a novel optimal transport-based re-weighting method for imbalanced classification that formulates class re-weighting as a distribution approximation problem, minimizing OT distance between imbalanced and balanced data distributions. Unlike existing methods, it decouples weight learning from the classifier, achieving state-of-the-art performance across image, text, and point cloud datasets with improved robustness to class imbalance and number of classes.
Imbalanced data pose challenges for deep learning based classification models. One of the most widely-used approaches for tackling imbalanced data is re-weighting, where training samples are associated with different weights in the loss function. Most of existing re-weighting approaches treat the example weights as the learnable parameter and optimize the weights on the meta set, entailing expensive bilevel optimization. In this paper, we propose a novel re-weighting method based on optimal transport (OT) from a distributional point of view. Specifically, we view the training set as an imbalanced distribution over its samples, which is transported by OT to a balanced distribution obtained from the meta set. The weights of the training samples are the probability mass of the imbalanced distribution and learned by minimizing the OT distance between the two distributions. Compared with existing methods, our proposed one disengages the dependence of the weight learning on the concerned classifier at each iteration. Experiments on image, text and point cloud datasets demonstrate that our proposed re-weighting method has excellent performance, achieving state-of-the-art results in many cases and providing a promising tool for addressing the imbalanced classification issue.
Motivation & Objective
- To address the challenge of class imbalance in deep learning, where models are dominated by majority classes and underperform on minority classes.
- To overcome the limitation of existing re-weighting methods that couple weight learning with the classifier's gradients, leading to inaccurate weight optimization.
- To propose a method that formulates re-weighting as a distribution approximation problem using optimal transport to align imbalanced training data with a balanced meta distribution.
- To develop a robust, flexible, and memory-efficient approach suitable for datasets with many classes by using prototype-based distributions.
Proposed method
- The method represents the imbalanced training set as a discrete empirical distribution P, where each sample is assigned a learnable weight as its probability mass.
- The balanced meta set is modeled as a discrete empirical distribution Q with uniform probability mass, representing a balanced target distribution.
- The weights are learned by minimizing the optimal transport (OT) distance between P and Q, using a cost function based on features and ground-truth labels.
- The OT loss is used to train a weight network directly, decoupling weight optimization from the classifier's gradients, enabling stable and independent learning.
- To reduce memory cost, a prototype-oriented OT loss is introduced, constructing Q from class prototypes instead of individual samples.
- The method supports both end-to-end training with a learnable weight network and direct OT-based weight assignment, with minimal dependency on the classifier during weight learning.
Experimental results
Research questions
- RQ1Can optimal transport be effectively used to learn sample weights in imbalanced classification without relying on the classifier's gradients?
- RQ2How does OT-based re-weighting compare to existing automatic re-weighting methods in terms of performance and robustness across different data modalities?
- RQ3Can the proposed method maintain high performance when the number of classes increases, especially in long-tailed settings?
- RQ4How does the prototype-based OT variant compare to full-sample OT in terms of memory efficiency and accuracy?
- RQ5Does the method generalize across different data types, such as images, text, and 3D point clouds?
Key findings
- On the SST-2 and SST-5 text classification benchmarks, the proposed method achieved 87.08% and 87.13% accuracy under extreme imbalance (1000:100), outperforming all baselines including Logit Adjustment and Hu et al.'s method.
- On SST-5 with 500:50 class imbalance, the method achieved 44.95% accuracy, significantly outperforming the next best method (Constraint-based re-weighting at 44.62%) and showing robustness to high imbalance.
- In image classification, the method achieved state-of-the-art results across multiple datasets, demonstrating consistent superiority over existing re-weighting and meta-learning baselines.
- The prototype-based OT variant achieved comparable performance to full-sample OT while drastically reducing memory usage, enabling scalability to large-class datasets.
- The method showed consistent performance across image, text, and 3D point cloud data, validating its generalization and robustness across data modalities.
- The ablation study confirmed that decoupling weight learning from the classifier leads to more stable and accurate weight optimization, especially in long-tailed scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.