AI
New Framework Tackles Classification Fairness When Classes Exist in Only One Domain
Researchers introduce a contrastive learning approach to improve machine learning generalization when training data is unevenly distributed across domains.
Machine learning models trained on data from multiple domains often struggle when they encounter new, unseen domains at test time. A fundamental assumption underlying much domain generalization research is that the classes of interest appear across multiple training domains, allowing models to learn patterns that generalize. But what happens when certain categories only exist in one domain? A new study from arXiv addresses this real-world gap.
The Problem with Domain-Linked Classes#
Data scarcity is a persistent challenge in machine learning. Rather than having every class represented across multiple source domains, real-world datasets often exhibit domain-linked classes—categories that appear in only one specific domain. The researchers demonstrate that standard domain generalization approaches fail dramatically in these scenarios, unable to transfer knowledge about classes that lack diverse training examples.
This limitation is particularly problematic because it perpetuates inequity: models learn well for classes present in multiple domains but generalize poorly for classes that appear in limited data contexts.
A Fairness-Inspired Solution#
To address this challenge, the team developed FOND (Fairness-inspired and cONtrastive learning objective for Domain-linked DG). The approach draws on fairness principles to learn domain-invariant representations from classes that do appear across multiple domains (domain-shared classes) and applies that knowledge to categories that exist in only one domain.
The methodology combines contrastive learning with fairness-informed objectives, enabling models to extract generalizable patterns even when training examples for certain categories are geographically or contextually isolated.
Results and Practical Implications#
Experimental validation shows that FOND achieves state-of-the-art performance for domain-linked classes when sufficient domain-shared classes are available, with minimal trade-offs to overall model performance. The researchers provide both theoretical analysis of the task and practical guidance for practitioners working with imbalanced domain distributions.
The work establishes domain-linked DG as a formal research problem and equips practitioners with tools to build fairer, more robust classifiers in real-world settings where data coverage is uneven.

