Fairness with Adaptive Weights

Junyi Chai, Xiaoqian WangICML 2022

Machine learning models often fail minority groups because they prioritize the "average" case, leading to representation bias. To address this, researchers have introduced a novel adaptive reweighing method that dynamically assigns weights to individual samples during training. By focusing on "hard-to-predict" examples within each group, this approach achieves a superior balance between overall accuracy and group-level fairness.

The Problem: The Tyranny of the Majority

Standard machine learning algorithms typically follow a principle called Empirical Risk Minimization (ERM), which tries to minimize the average error across an entire dataset. While logical, ERM creates a "tyranny of the majority." If one demographic group is significantly larger than another, the model will ignore the minority group's nuances to keep the majority error low—a phenomenon known as representation bias.

Existing fairness techniques often try to fix this by either "cleaning" the data beforehand (preprocessing) or adding rigid constraints to the model (in-processing). However, these approaches can be brittle. Preprocessing might lose vital information, and rigid constraints often lead to a massive drop in accuracy. The core challenge is ensuring a model is "careful" with minority groups without destroying its overall predictive utility.

Methods: Adaptive Reweighing

To bridge this gap, the authors propose an Adaptive Reweighing Algorithm. Instead of giving every sample a uniform weight of "1," the algorithm learns a specific weight for every single data point.

Equal vs. Adaptive Reweighing

Focusing on "Hard Samples"

Inspired by cost-sensitive learning, the algorithm identifies "error-prone" samples—those the model is currently struggling to predict correctly. It then assigns higher weights to these samples, effectively forcing the model to pay more attention to them.

The Mathematical Secret Sauce

The researchers derived a closed-form solution for these weights. They formulated an optimization problem that maximizes weighted loss while adding a regularization term ($\alpha ||w||^2_2$).

  • Why the penalty? Without it, the model might put 100% of the weight on the single hardest sample (an outlier), making training highly unstable.
  • The Balance: By adjusting the hyperparameter $\alpha$, the algorithm controls the "spread" of weights, balancing between equal weighting (standard ERM) and focusing purely on the hardest cases.

Crucially, the paper proves mathematically that optimizing this specific weighted loss places an upper bound on common fairness metrics like Disparate Mistreatment and Equal Opportunity. This elevates fairness from a heuristic to a mathematically grounded objective.

Key Insights

  • Fairness through Robustness: Fairness isn't just about group averages; it’s about distributional robustness. If a model is robust enough to handle the "hardest" samples in a minority group, it naturally becomes fairer to that group as a whole.
  • No Explicit Constraints Needed: Unlike many in-processing methods that require selecting a specific fairness metric during training, this method achieves fairness simply by balancing group representation. This makes the model highly flexible.
  • Robustness to Noise: Because the algorithm uses a regularization term to prevent over-focusing on outliers, it is surprisingly resilient to label noise, maintaining higher accuracy and fairness than competitors even on corrupted data.

Key Results

The authors evaluated their method across five diverse benchmark datasets (Adult, German Credit, COMPAS, Law School, and CRIME) and compared it against state-of-the-art (SOTA) methods like Adversarial Sensitive Reweighing (ASR) and Covariance constraints.

Pareto Frontiers for COMPAS, German, and Adult datasets
  • The Pareto Frontier: In multi-objective optimization, the "Pareto frontier" represents the best possible trade-offs between two goals (accuracy vs. fairness). The authors demonstrated that their method consistently sits closer to the ideal frontier than other methods across multiple datasets.
  • Classification Performance: On the COMPAS dataset, their method achieved a Disparate Impact score of 1.82 (lower is better), significantly outperforming the Baseline (22.29) and specialized SOTA methods like Covariance (7.36).
  • Regression Performance: On the Law School dataset, they achieved the lowest Mean Squared Error (0.135) among all fair-learning competitors, proving that equity does not require a massive sacrifice in utility.

Limitations and Future Work

While the results are promising, there are a few areas for further exploration:

  • Hyperparameter Tuning: Performance depends heavily on the parameter $\alpha$. While the paper provides a suggested range, finding the optimal value for a new dataset requires cross-validation.
  • Computational Cost: The algorithm requires sorting losses ($O(n \log n)$) in every iteration. While efficient for standard benchmarks, it might become a bottleneck for massive industrial datasets.
  • Sensitive Attribute Access: Like most in-processing methods, this approach requires knowing sensitive attributes (e.g., race, gender) during the training phase, which may conflict with privacy regulations in some domains.

Summary updated

BibTeX
@inproceedings{chai2022fairness,
  author = {Junyi Chai and Xiaoqian Wang},
  title = {{Fairness with Adaptive Weights}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=I7mH9ESFYrg},
}
Figure