NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fair Meta-Learning For Few-Shot Classification

Chen Zhao, Changbin Li, Jincheng Li, Feng Chen

Introduction

Machine learning models are notorious for inheriting and amplifying human biases present in historical data. While many bias-mitigation techniques exist, they typically rely on the availability of abundant training data. This paper addresses a critical gap: enforcing fairness in meta-learning, specifically few-shot classification, where models must adapt to new tasks using only a handful of examples (e.g., 1 to 5 images per class).

The Challenge of Few-Shot Fairness

In few-shot learning, a model might encounter biased support data. For instance, if a classifier learns to identify "dogs" but only sees them on green grass, it may spuriously correlate the background with the target class. In such data-scarce environments, ensuring statistical parity—where predictions are independent of protected attributes like race, gender, or spurious features—is exceptionally difficult because the model has very little evidence to distinguish relevant features from biased ones.

Proposed Method: Fair Meta-Learning

The authors propose a framework built upon Model-Agnostic Meta-Learning (MAML). Standard MAML optimizes for a set of globally shared parameters that can be quickly fine-tuned. The proposed approach modifies this by introducing a fairness constraint during the meta-training phase.

The proposed fair meta-learning framework integrates an unfairness prevention constraint into the standard MAML optimization loop, balancing accuracy and fairness.

The core innovation is a constrained optimization problem. Instead of solely minimizing cross-entropy loss, the model is forced to keep the Decision Boundary Covariance (DBC) below a specific threshold. By using a Lagrange multiplier to unify this constraint with the standard loss, the meta-learner finds an initialization that is inherently resistant to bias across various tasks.

Decision Boundary Covariance (DBC)

DBC serves as a powerful proxy for statistical parity. It measures the covariance between a protected attribute and the signed distance of feature vectors from the model's decision boundary.

Visualizing the decision boundary shift: the constraint forces the model to ignore protected attributes (red vs. blue) when drawing classification lines.

When DBC is minimized, the model is effectively forced to ignore the protected attribute when drawing classification lines. This ensures that the learned feature space generalizes not just in terms of accuracy, but also in terms of fairness to unseen tasks. This effectively satisfies legal and ethical definitions of disparate impact, such as the 80%-rule.

Experimental Results

The authors evaluated their approach on augmented versions of the Omniglot and mini-ImageNet datasets, where synthetic binary protected attributes were assigned to images to simulate real-world bias.

Key findings include:

  • Generalization of Fairness: The "Fair" variants of MAML, Matching Networks, and Prototypical Networks significantly reduced bias. On mini-ImageNet (5-way 1-shot), Fair-MAML reduced the DBC from a baseline of 0.91 to 0.61.
  • The Accuracy-Fairness Trade-off: Enforcing fairness comes at a cost. In the same mini-ImageNet experiment, accuracy dropped from 44.2% to 35.5%. This trade-off is most pronounced in 1-shot scenarios and narrows as more training "shots" (data points) become available, indicating that fairness is most "expensive" when data is at its absolute sparsest.

Conclusion

This research demonstrates that fairness can be a generalizable property in meta-learning. By embedding fairness constraints into the meta-initialization, models can learn to be "fair by design" even when faced with extremely limited data. Future work aims to further mitigate the accuracy-fairness trade-off and test these methods on real-world datasets with complex, entangled biases.

Summary updated

BibTeX
@inproceedings{zhao2020fair,
  author = {Chen Zhao and Changbin Li and Jincheng Li and Feng Chen},
  title = {{Fair Meta-Learning For Few-Shot Classification}},
  booktitle = {ICKG},
  year = {2020},
  url = {https://openreview.net/forum?id=_wbjZTjDf3y},
}
Figure