Introduction
Dealing with highly imbalanced datasets is notoriously difficult because machine learning models tend to overfit the few available minority examples. In real-world scenarios, data naturally follows a long-tail distribution—such as rare diseases, uncommon traffic scenarios, or rare animal species. Under these conditions, standard Empirical Risk Minimization (ERM) becomes heavily biased toward majority classes.
Traditional fixes involve re-sampling (showing minority examples more often) or re-weighting (penalizing minority errors more heavily). However, these heuristics do not create new information and offer no protection against overfitting the minority instances. The core challenge is how to safely transfer generalizable knowledge from data-rich majority classes to data-starved minority classes without relying on spurious, unstable correlations.
To address this, researchers introduce Energy-based Causal Representation Transfer (ECRT), a method that learns a shared, causally invariant feature-generating mechanism from majority classes to synthesize high-quality training data for minority classes.
Methods: Causal Representation Transfer
The authors tackle long-tail learning using a causal perspective, specifically leveraging nonlinear Independent Component Analysis (NICA). They assume a "meta-distributional" scenario: even if the classes look different, the underlying causal mechanism that mixes independent source signals into observable features is shared across all classes.
The proposed ECRT pipeline works as follows:
- Pre-train an Encoder: Train a standard feature extractor (like ResNet or BERT) using only the majority classes.
- De-mix into Source Space: Use Generalized Contrastive Learning (GCL) to learn a "de-mixing" function. This maps the entangled features into a "source space" where the individual components are statistically independent. The authors upgrade standard GCL to an energy-based contrastive objective, allowing them to use all in-batch data as negative samples, massively speeding up training.
- Augment the Minority: Because the source space components are independent, valid new minority samples can be generated simply by randomly permuting the coordinates of existing minority samples, or by sampling from a fitted Gaussian distribution.
- Refine the Predictor: Train the final classification head directly on these augmented source representations.
To prevent the source space from becoming too condensed (which hurts generalization), the authors also introduce a likelihood regularization step using Masked Autoregressive Flows (MAF) to encourage the source distributions to remain Gaussian-like.
Key Insights
- Shared Causal Roots: By assuming all classes share the same underlying feature-mixing mechanism, the model can use the massive amount of majority data to learn how to perfectly disentangle features. This acts as a "free" robust feature extractor for the minority data.
- Source Space Augmentation is Safer: Augmenting in pixel space is difficult and domain-specific. Augmenting in a causally disentangled source space is mathematically principled—since features are independent, swapping "Feature A" from Sample 1 with "Feature B" from Sample 2 creates a realistic, novel sample.
- Beating the "Gridding Artifact": If you only have 5 minority samples, randomly shuffling their coordinates creates a sparse, rectangular grid of synthetic data. By adding likelihood regularization, ECRT forces the source space into a smooth Gaussian shape, allowing for parametric sampling that completely avoids this artifact and works beautifully in ultra-low-sample regimes.
Datasets and Key Results
The proposed approach was validated on a mix of semi-synthetic and real-world datasets, including imbalanced versions of MNIST, CIFAR100, TinyImageNet, and the naturally long-tailed iNaturalist 2019 dataset.
ECRT consistently outperformed state-of-the-art imbalanced learning baselines, including LDAM, FOCAL loss, Virtual Adversarial Training (VAT), and GAN-based augmentation.
- CIFAR100 (Imbalanced): ECRT achieved 53.00% Top-1 accuracy, comfortably beating the state-of-the-art LDAM (50.46%) and standard ERM (49.29%).
- iNaturalist 2019: On this highly complex real-world dataset (26k training images across 1k classes), ECRT reached 69.01% Top-1 accuracy compared to LDAM's 67.39%.
- Extreme Classification: In tests with 1,000 labels where every class has very few samples, standard ERM essentially collapsed to random guessing, while ECRT maintained strong predictive performance by efficiently extracting generalizable information across the abundance of classes.
Limitations and Future Work
While powerful, ECRT relies on strong assumptions. The core assumption—that all classes share the exact same causal de-mixing function—is a strong structural constraint that is largely untestable in practice. Furthermore, because the de-mixing function is trained exclusively on majority classes, it is blind to features that might be highly predictive but unique to the minority class. The model trades within-domain specificity for cross-domain causal generalization.
Future work bridging contrastive representation learning, energy modeling, and causal machine learning opens promising directions for making these causal assumptions more flexible.
Summary updated