Supercharging Imbalanced Data Learning With Causal Representation Transfer

Junya Chen, Zidi Xiu, Benjamin Goldstein, Ricardo Henao, Lawrence Carin, Chenyang Tao

Abstract

Class imbalance remains a significant hurdle in machine learning, as standard models often prioritize majority classes at the expense of rare minority ones. This paper proposes Energy-based Causal Representation Transfer (ECRT), a framework that utilizes causal invariance to transfer structural knowledge from majority to minority classes. By disentangling features into independent components via Nonlinear Independent Component Analysis (NICA) and energy-based contrastive learning, ECRT facilitates high-quality data augmentation and robust classification for long-tailed data distributions. Experimental results on benchmarks like iNaturalist 2019 and CIFAR-100 demonstrate that ECRT significantly outperforms existing state-of-the-art methods in minority class performance.

Introduction

In real-world applications—ranging from rare disease identification to species classification in the wild—data is rarely distributed uniformly. This "long-tail" distribution poses a challenge for Empirical Risk Minimization (ERM), which tends to overfit to majority classes. While common techniques like oversampling or loss reweighting exist, they often fail to provide the model with genuinely new information about minority classes. ECRT addresses this by leveraging the rich structural information learned from majority classes to enhance the representation of minority ones.

Methodology

The ECRT framework is built upon several key theoretical pillars designed to extract and utilize shared data structures:

  1. Causal Invariance Assumption: The authors assume that while class-specific feature distributions vary, the underlying mechanism generating these features is shared across classes. This allows the model to apply logic learned from data-rich majority classes to data-poor minority ones.
  2. Nonlinear Independent Component Analysis (NICA): ECRT employs a de-mixing function to map entangled features into a "source space" where components are statistically independent. This disentanglement is crucial for meaningful data manipulation.
  3. Energy-based Contrastive Learning: To efficiently train the de-mixing function, the framework utilizes a variant of the Donsker-Varadhan (DV) estimator. This energy-based approach allows the model to contrast samples against multiple negatives simultaneously, improving training stability and scalability compared to standard contrastive methods.
  4. Causal Data Augmentation: Within the independent source space, new minority samples are generated by either shuffling components across samples or sampling from a Gaussian prior. Because the components are independent, these recombinations result in physically plausible and diverse data points.
Visualizing the transition from real samples to the feature space and finally to the disentangled estimated source space.

Experimental Results

The effectiveness of ECRT was validated across various datasets, including artificially imbalanced versions of MNIST and CIFAR-100, as well as the naturally imbalanced iNaturalist 2019 dataset.

  • Performance on the Long Tail: On the iNaturalist dataset, ECRT achieved a substantial boost in F1-scores, particularly for classes in the low-sample regime.
  • Accuracy Improvements: For CIFAR-100, the multi-prior version of ECRT (ECRT-MP) reached an accuracy of 53.00%, notably higher than LDAM (50.46%) and standard ERM (49.29%).
  • Sample Efficiency: The authors noted that causal augmentation provided a 4x boost in effective sample size, allowing a model with only 10 samples to perform as well as a standard model with 40 samples.
Comparison of F1 scores across the label frequency spectrum, highlighting ECRT's superior performance on minority classes compared to ERM and LDAM.

Discussion and Conclusion

ECRT demonstrates that the underlying structure of data is often class-agnostic. By enforcing independence through NICA and using energy-based objectives for efficiency, the model can "borrow" templates from majority classes to synthesize high-quality augmentations for rare ones. While the method assumes a shared generating mechanism across all classes, its ability to improve generalization on the long tail marks a significant advancement in imbalanced learning. Future research may explore more complex causal structures and the application of this framework to broader distribution shifts.

Summary updated

BibTeX
@inproceedings{chen2021supercharging,
  author = {Junya Chen and Zidi Xiu and Benjamin Goldstein and Ricardo Henao and Lawrence Carin and Chenyang Tao},
  title = {{Supercharging Imbalanced Data Learning With Causal Representation Transfer}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=kpTMw7ZMJB},
}
Figure