Domain-Conditioned Class Imbalance: Rethinking Class Balance in Multi-Domain Learning
Abstract
Unlabeled image collections often span several visual domains, and the same class can be common in one domain and rare in another. Balanced class totals and balanced domain sizes, the common checks in dataset construction, do not rule this out: the allocation across domain–class pairs can remain highly skewed. We call this regime Domain-Conditioned Class Imbalance (DCI). Standard corrections are derived from global class counts and apply the same per-class adjustment in every domain. Under DCI the class priors differ across domains, and we show that no single domain-independent additive adjustment can match all of them at once. We introduce HyperIDAC, which estimates a soft domain prior for each image and uses a hypernetwork to generate an instance-specific, domain-conditioned classifier. A complementary multi-level pseudo-labeling module combines teacher predictions, label history, semantic fallback, and consistency learning to limit error reinforcement in sparse domain–class pairs. For controlled evaluation, we fix the class and domain marginals and vary only the joint domain–class allocation, which isolates the effect of DCI. Across four multi-domain benchmarks under original, long-tailed, and DCI regimes, HyperIDAC consistently outperforms the compared methods. These gains indicate that correcting class imbalance in multi-domain data requires conditioning on domain context rather than a single global adjustment.