Abstract
Machine learning models often face a persistent trade-off between classification accuracy and fairness. This paper introduces Learning by Grouping (LBG), a novel three-level optimization framework that partitions diverse datasets into subgroups and assigns specialized "expert" models to each. By optimizing these group assignments on validation data rather than training data, the framework mitigates overfitting and significantly improves both accuracy and fairness metrics across vision and language benchmarks.
The Challenge: Balancing Accuracy and Fairness
Modern AI models frequently inherit or amplify biases present in training data, leading to unfair treatment of specific social groups. Traditional mitigation strategies, such as adding constraints or re-weighting data, often come at the expense of overall accuracy. Furthermore, existing "Mixture of Experts" (MoE) models, which use a gating network to route data to specialized sub-models, are prone to overfitting. These gating networks often memorize noise in the training set, resulting in poor generalization and inconsistent fairness when encountering new examples.
Methodology: The LBG Framework
The LBG framework addresses these issues by formulating the task as a three-level optimization problem. Inspired by human problem-solving, where similar tasks are grouped for efficiency, LBG splits the learning process into three distinct stages:
- Stage I (Group Assignment): A Group Assignment Model (GAM) learns to predict the optimal subgroup for each data point.
- Stage II (Expert Training): Group-Specific Classification Models (GSCMs) are trained as "experts" for their respective subgroups.
- Stage III (Validation-Based Refinement): The core innovation involves updating group assignments by minimizing loss on a validation set. This prevents the grouping logic from overfitting to training data noise.
To further enhance the system, the authors introduced Domain Adaptive LBG (DALBG), which uses domain adaptation to share knowledge between subgroups, and LBG-NAS, which integrates grouping logic into Neural Architecture Search to optimize both weights and network structures.
Key Insights
- Validation-Driven Optimization: Moving group assignment optimization to the validation set ensures the strategy generalizes better than traditional MoE approaches.
- Fairness through Specialization: Unfairness often arises when a single global model averages out diverse populations. Specialized experts allow for high accuracy in minority groups without compromising the majority.
- Emergent Latent Grouping: Even without explicit sensitive attributes (e.g., gender), the LBG framework often discovers latent groupings that naturally align with these attributes, leading to improved fairness.
Experimental Results
The LBG framework was evaluated across various benchmarks, including CelebA, ISIC-18, CIFAR, ImageNet, and the GLUE benchmark for NLP.
Fairness and Accuracy Gains
On the CelebA face attribute task, DALBG-ResNet18 reduced the error rate from 17.57% to 16.84% while drastically lowering the Demographic Parity (DP) gap from 0.5023 to 0.2116. This demonstrates a rare "win-win" where fairness is improved alongside accuracy.
Broad Applicability
- Medical AI: In skin cancer detection (ISIC-18), LBG-DARTS achieved an 8.4% error rate (down from 10.2%) while improving all fairness metrics (SPD, EOD, and AOD).
- State-of-the-Art NAS: DALBG-PCDARTS set a new state-of-the-art for ImageNet in mobile settings with a 23.1% Top-1 error.
- NLP Performance: LBG-RoBERTa outperformed the standard RoBERTa base model on 7 out of 9 GLUE tasks.
Limitations and Future Outlook
Currently, the LBG framework is primarily designed for differentiable optimization, making it highly effective for gradient-based methods like DARTS. However, it cannot yet be directly applied to non-differentiable Neural Architecture Search approaches, such as those using reinforcement learning. Future research will focus on extending the "learning by grouping" philosophy to these non-differentiable spaces to build even more robust automated machine learning systems.
Summary updated