Abstract
Deep learning models frequently inherit and amplify societal biases, leading to discriminatory outcomes. While common mitigation strategies like oversampling aim to balance datasets, this paper demonstrates that equal sample sizes do not guarantee equal influence during the training process. We propose Group Contribution Matching (GCM), a novel in-processing method that utilizes a gradient-based disparity metric to equalize the influence of different subgroups. Our results across tabular and image benchmarks show that GCM significantly improves fairness with minimal impact on predictive accuracy, often outperforming existing state-of-the-art debiasing techniques.
Introduction: The Oversampling Fallacy
A prevailing assumption in machine learning fairness is that a balanced dataset leads to a fair model. Consequently, oversampling underrepresented groups is a standard practice. However, this paper identifies a critical gap: contribution disparity. Even when group sizes are equalized, certain subgroups may exert disproportionate influence on the model’s gradient updates. This leads the model to prioritize features of the "dominant" group (in terms of gradient magnitude), effectively ignoring the nuances of others.
The authors argue that "sample size" is a poor proxy for "contribution." To address this, they seek to quantify and balance the actual influence each group has on the model's learning trajectory.
Methodology: Group Contribution Matching (GCM)
The GCM framework consists of two primary components designed to monitor and mitigate contribution disparity dynamically during training.
1. Measuring Group Contribution Disparity
To avoid the high computational costs of traditional influence functions or Shapley values, the authors employ a first-order gradient approximation. They measure how much the loss reduction of a specific subgroup (e.g., a specific gender/label combination) contributes to the overall model update relative to its counterpart. This metric provides a real-time "disparity score" that tracks which groups are steering the optimization.
2. The GCM Strategy
GCM is an in-processing strategy that modifies the loss function to include a fairness-specific term. It operates through two mechanisms:
- Gradient Magnitude Matching: Instead of aligning gradient directions—which can lead to suboptimal feature learning—GCM minimizes the difference in gradient magnitudes between subgroups. This ensures that no single group dominates the optimization process.
- Adaptive Gradient Reweighing: The method incorporates a "temperature-scaled" confidence score. If the model shows low prediction confidence for a specific subgroup, GCM adaptively increases that group's weight, forcing the model to learn more effectively from underserved data.
Experimental Evaluation
The authors evaluated GCM against standard fairness benchmarks, including tabular datasets (Adult, COMPAS) and image datasets (CelebA, CIFAR-10S).
Key Insights
- Oversampling Risks: In experiments on the Adult dataset, oversampling actually increased contribution disparity in some instances, proving that balancing data can sometimes be counterproductive if gradient influence isn't managed.
- Bias Parameters Matter: Layer-wise analysis revealed that unfairness is often more concentrated in the "bias" parameters of neural network layers than in the weights. GCM is particularly effective when targeting these terms.
- Pareto Optimality: Across all tests, GCM consistently resided on the "Pareto frontier," providing the best fairness metrics for any given level of accuracy.
Results and Discussion
GCM demonstrated significant improvements over baselines like Adversarial Debiasing and Equalized Odds Regularization (EOR).
- Adult Dataset: GCM improved the fairness score ($-\Delta$EO) from -0.078 to -0.033 while maintaining a higher accuracy (75.1%) than EOR (74.7%).
- CelebA: The fairness score improved by nearly 90% (from -0.480 to -0.049), showcasing the method's scalability to high-dimensional image data.
Conclusion and Future Work
Group Contribution Matching offers a computationally efficient and theoretically grounded approach to algorithmic fairness. By moving beyond simple data balancing and focusing on gradient influence, GCM provides a more granular control over the training process.
However, the method does introduce some computational overhead due to the need for calculating subgroup gradients and second-order derivatives ("gradients of gradients"). Future research will focus on optimizing these calculations to scale GCM to even larger architectures and more complex multi-label classification tasks.
Summary updated