Rich Feature Learning via Diversification

Xi Leng, Yongqiang Chen, Xiaoying Tang, Yatao Bian

TL;DR

DOREEN is a novel framework for Out-of-Distribution (OOD) generalization that formally defines and enforces "rich feature learning" through explicit diversity. By training multiple identical models concurrently with a shared diversity penalty based on Determinantal Point Processes (DPP), DOREEN prevents models from collapsing onto simple spurious correlations. This approach consistently outperforms standard empirical risk minimization (ERM) and existing rich feature learning methods, especially in scenarios with highly dominant spurious features.

What Problem Does This Paper Address?

Deep learning models trained with Empirical Risk Minimization (ERM) are notorious for failing when tested on data outside their training distribution (Out-of-Distribution, or OOD). This failure usually happens because ERM suffers from "simplicity bias"—it latches onto the easiest, most dominant features to minimize training error, even if those features are purely spurious (like using the background texture to identify an animal).

To counter this, researchers introduced Rich Feature Learning (RFL). RFL works in two phases: first, it trains a featurizer to extract a broad, comprehensive set of both invariant (robust) and spurious features. Second, it applies an OOD objective to select only the invariant features for the final prediction.

However, prior RFL algorithms (like BONSAI and FeAT) suffer from a major flaw: they lack a formal definition of what makes a feature set "rich," and they rely on iteratively reweighting data that the model misclassified. If a spurious correlation is incredibly strong, the model quickly achieves near-zero training error, causing these error-driven refinement steps to fail catastrophically.

Methods

The authors introduce DOREEN (Diversity-fOunded Rich fEature lEarniNg) to address these limitations by explicitly targeting feature diversity.

Instead of an iterative, error-driven approach, DOREEN trains multiple models with identical architectures concurrently. The total loss function balances standard ERM loss for each individual model with a shared diversity penalty:

$$\mathcal{L}_{\text{total}} = \mathcal{L}_{\text{ERM}} + \alpha \mathcal{L}_{\text{Div}}$$

Because directly counting unique features is non-differentiable, DOREEN leverages a Determinantal Point Process (DPP) as a regularizer. It computes a kernel matrix of the featurizer outputs and maximizes its determinant, which mathematically forces the models to explore different parts of the feature space.

Crucially, DOREEN enforces two types of diversity:

  1. Intra-model diversity: Preventing a single model from replicating the same feature across multiple dimensions.
  2. Inter-model diversity: Forcing different parallel models to learn entirely distinct features.

At the end of Phase 1, the featurizers from all models are concatenated into one "rich" representation, which is then frozen and passed to standard OOD objectives (like V-REX or GroupDRO) in Phase 2.

Figure 1. (a) Illustration of DOREEN vs. ERM: DOREEN leverages intra-model and inter-model diversity losses to encourage the learning of richer features compared to ERM, providing a stronger foundation for OOD training. (b) Overview of diversity-based algorithms for OOD generalization: Algorithms are classified as “explicitly” if they include a diversity penalty.

Datasets

The authors evaluated DOREEN on both controlled synthetic environments and complex real-world benchmarks:

  • ColoredMNIST Variants: Including ColoredMNIST-025, ColoredMNIST-01, and a newly introduced extreme variant, ColoredMNIST-sp, designed specifically to test performance under radical spurious correlations.
  • WILDS Benchmark: Three real-world OOD datasets:
  • Camelyon17 (tumor identification across different hospitals)
  • FMoW (satellite imagery over different years and regions)
  • iWildCam (wildlife camera trap image classification across different locations)

Key Insights and Ideas

  • The Diversity Collapse of ERM: By tracking ERM training dynamics using the Vendi Score (a metric for feature diversity), the authors discovered that ERM actually learns diverse features early in training. However, as training progresses, this diversity rapidly collapses as the model over-indexes on dominant features.
  • The "Success Trap" of Prior RFL: If the training set contains an easily exploitable spurious feature, prior SOTA RFL methods fail because their "augmentation sets" (the subsets of incorrectly predicted data) shrink to zero. DOREEN avoids this trap by decoupling feature exploration from training errors.
  • Training Stability: Standard ERM only achieves peak OOD accuracy within a very narrow training window. DOREEN, by maintaining high feature diversity, exhibits remarkable stability, holding peak OOD performance across a broad range of training epochs.
Figure 2. The empirical results on COLOREDMNIST-025. Post featurizer training, we measure the feature diversity using the Vendi Score (vs), freeze the featurizer, and subsequently train a classifier using V-REX for OOD performance (acc) assessment. (a): The feature diversity (x-axis) and OOD performance (y-axis) of featurizers trained with ERM and two RFL algorithms over five different random seeds. (b): ERM training dynamics over three different random seeds. The x-axis illustrates the evaluation epochs of the featurizer. The y-axis displays the corresponding OOD accuracy and Vendi Score values at each evaluation epoch.

Key Results

Controlled Studies (ColoredMNIST)

On the standard ColoredMNIST-025 dataset, DOREEN performs competitively with existing RFL methods. However, on ColoredMNIST-sp (the extreme spurious correlation setting), prior RFL methods collapse to ERM performance (~9.8% accuracy), while DOREEN achieves 18.62% accuracy, demonstrating its resilience to dominant shortcuts.

Real-World Benchmarks (WILDS)

DOREEN consistently outperformed ERM and existing RFL methods across all three WILDS datasets:

  • Camelyon17: Achieved an average accuracy of 96.90% (compared to ERM's 95.14% and FeAT's 95.28%).
  • FMoW: Reached a worst-case accuracy of 45.06% (outperforming ERM's 41.96%).
  • iWildCam: Achieved a Macro F1 score of 24.41% (improving on ERM's 23.15%).

Qualitative analysis using Integrated Gradients confirms that DOREEN focuses on more meaningful, diverse, and salient image features rather than background artifacts.

Limitations and Future Work

While DOREEN is highly effective and agnostic to the specific diversity metric used, the implementation presented in the paper relies on Determinantal Point Processes (DPP). Computing DPP determinants can introduce additional computational overhead during the training phase.

Additionally, training multiple featurizers concurrently increases the initial memory footprint compared to a single ERM model, though the authors note it remains more parameter-efficient than full ensemble methods like WLD-Reg. Future work could explore more lightweight diversity metrics or alternative architectures to scale the framework even more efficiently.

Summary updated

BibTeX
@inproceedings{leng2026rich,
  author = {Xi Leng and Yongqiang Chen and Xiaoying Tang and Yatao Bian},
  title = {{Rich Feature Learning via Diversification}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=ppClGZFhti},
}
Figure