[Paper Review] Generalized Data Weighting via Class-level Gradient Manipulation
This paper proposes Generalized Data Weighting (GDW), a novel method that reweights gradients at the class level to simultaneously address label noise and class imbalance in deep learning. By unrolling gradients via the chain rule and applying class-specific weights with a zero-mean constraint, GDW improves model robustness and performance—achieving a 2.56% accuracy gain over SOTA on CIFAR10 with 60% uniform noise—without extra computational cost beyond standard training.
Label noise and class imbalance are two major issues coexisting in real-world datasets. To alleviate the two issues, state-of-the-art methods reweight each instance by leveraging a small amount of clean and unbiased data. Yet, these methods overlook class-level information within each instance, which can be further utilized to improve performance. To this end, in this paper, we propose Generalized Data Weighting (GDW) to simultaneously mitigate label noise and class imbalance by manipulating gradients at the class level. To be specific, GDW unrolls the loss gradient to class-level gradients by the chain rule and reweights the flow of each gradient separately. In this way, GDW achieves remarkable performance improvement on both issues. Aside from the performance gain, GDW efficiently obtains class-level weights without introducing any extra computational cost compared with instance weighting methods. Specifically, GDW performs a gradient descent step on class-level weights, which only relies on intermediate gradients. Extensive experiments in various settings verify the effectiveness of GDW. For example, GDW outperforms state-of-the-art methods by $2.56\%$ under the $60\%$ uniform noise setting in CIFAR10. Our code is available at https://github.com/GGchen1997/GDW-NIPS2021.
Motivation & Objective
- To address the limitations of instance-level weighting methods that fail to utilize class-level information in gradients.
- To improve model robustness under co-occurring label noise and class imbalance in real-world datasets.
- To develop an efficient, scalable method for learning class-level data weights without introducing additional computational overhead.
- To enable better information utilization by selectively downweighting harmful gradient flows while preserving useful ones (e.g., 'not class' signals).
- To generalize existing instance-level weighting methods by embedding class-level granularity into the gradient manipulation framework.
Proposed method
- GDW unrolls the loss gradient into class-level gradients using the chain rule, enabling per-class gradient flow manipulation.
- It introduces class-level weights for each class per instance, which are optimized via a bi-level optimization framework with a zero-mean constraint to ensure stability.
- The method employs a two-stage weight generation scheme that leverages intermediate gradients to update class-level weights efficiently through a gradient descent step.
- Class-level weights are learned end-to-end in a meta-learning setup, where the outer loop optimizes model parameters and the inner loop optimizes class-level weights.
- The approach is computationally efficient, requiring no additional forward passes beyond standard training, as class-level weights are derived directly from intermediate gradients.
- GDW generalizes instance-level weighting methods, which can be seen as a special case where all class-level weights per instance are equal.
Experimental results
Research questions
- RQ1Can class-level gradient manipulation improve model performance on datasets with both label noise and class imbalance?
- RQ2Does separating gradient weighting by class lead to better information utilization compared to instance-level weighting?
- RQ3Can class-level weights be learned efficiently without incurring significant computational overhead?
- RQ4How does GDW compare to state-of-the-art instance-level weighting methods in terms of accuracy and robustness across diverse noise and imbalance settings?
- RQ5What is the impact of class-level weighting on minority class performance in long-tailed distributions?
Key findings
- GDW achieves a 2.56% accuracy improvement over state-of-the-art methods on CIFAR10 under a 60% uniform noise setting, demonstrating strong robustness to label noise.
- On the Clothing1M dataset, GDW achieves 69.39% test accuracy, outperforming the next-best method (MWNet) by 0.93%.
- In long-tailed CIFAR10 with μ=0.1, GDW effectively balances 'class' and 'not-class' information by reducing the weight of 'not-C8' flows for minority class C9 instances, leading to improved minority class performance.
- The method maintains stable training through a zero-mean constraint on class-level weights, preventing divergence and improving convergence.
- GDW’s two-stage weight generation scheme efficiently computes class-level weights using only intermediate gradients, incurring no additional FLOPs beyond standard training.
- Despite theoretical advantages in information utilization, GDW does not significantly outperform baselines in all class imbalance scenarios, suggesting that performance gains depend on multiple interdependent factors beyond gradient reweighting alone.
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.