TL;DR
This paper introduces a novel meta-learning approach to learn disentangled representations from a diverse set of supervised tasks without ever directly observing the underlying factors of variation. By enforcing two simple constraints—sparse sufficiency and feature minimality—the proposed method successfully recovers clean, interpretable features and significantly improves out-of-distribution (OOD) generalization on real-world image and text benchmarks.
What Problem Does This Paper Address?
Disentangled representation learning (DRL) aims to break down high-dimensional data into its fundamental, independent latent factors of variation (FOVs)—such as shape, color, or position in an image. While highly desirable for creating interpretable and robust models, DRL has traditionally been confined to simple, synthetic datasets under unsupervised or weakly supervised settings, failing to scale effectively to real-world applications.
Meanwhile, multi-task learning attempts to build general representations by training on many objectives at once. However, it often suffers from negative transfer or task competition, where different tasks fight over a model's limited capacity, leading to noisy features that are highly sensitive to spurious correlations.
The authors bridge this gap by asking: Can we leverage a diverse set of supervised tasks to naturally discover disentangled representations that scale to real-world data?
Methods
The authors frame the problem as a bi-level optimization (meta-learning) task. The architecture consists of a shared backbone module (the meta-learner) that extracts general features, and separate linear classification heads (the base learners) for each individual task.
To force disentanglement without explicit factor annotations, they introduce a regularizer on the task heads containing two core inductive biases:
- Sparse Sufficiency ($L_1$ Penalty): Assumes that any given task only depends on a small subset of the total factors of variation. This forces each classification head to activate sparsely, using as few features as possible.
- Minimality (Entropy-based Feature Sharing): Encourages the network to maximally reuse features across different tasks. This prevents the model from splitting a single true factor into multiple redundant features or duplicating information.
The training follows an inner/outer loop meta-learning paradigm: the inner loop optimizes the task heads using the regularized loss on a support set, while the outer loop updates the shared backbone using implicit differentiation based on query set performance.
Datasets
The method was rigorously evaluated across both synthetic and real-world benchmarks spanning different modalities:
- Synthetic/Semi-synthetic: dSprites, 3DShapes, SmallNorb, Cars3D, AbstractDSprites, and Waterbirds (birds superimposed on varying backgrounds).
- Real-world Domain Generalization (DomainBed): PACS (Photos, Art, Cartoons, Sketches), VLCS, and OfficeHome.
- Medical Imaging: Camelyon17 (tumor detection across different hospital environments).
- Text Classification: CivilComments (toxic comment detection across various demographic sub-populations).
Key Insights and Ideas
- Supervision via Task Diversity: You don't need direct labels for the underlying factors of variation to disentangle them. If you have access to multiple tasks that each depend on different unknown subsets of factors, that provides a strong enough mathematical guarantee for identifiability.
- Sparsity Alone is Insufficient: While prior work suggested that sparsity is enough to identify latent factors, the authors demonstrate that without a minimality constraint, features often get duplicated or split across the latent space. Minimizing the entropy of feature activations across tasks forces clean feature clustering.
- Robustness to Spurious Correlations: Disentangled features inherently isolate stable properties of the data from domain-specific noise. At test time, the model can discard features that capture spurious correlations (like background textures in the Waterbirds dataset) because they violate the sparse sufficiency principle for the core task.
Key Results
Synthetic Disentanglement
On the dSprites and 3DShapes datasets, enforcing both sparsity and minimality yielded massive improvements in disentanglement metrics (DCI scores). For instance, on dSprites, the proposed method achieved a DCI score of 98.8, compared to 71.9 when using sparsity alone, and 27.8 with no regularization.
Real-World OOD Generalization
- DomainBed: The approach consistently outperformed standard Empirical Risk Minimization (ERM) and other domain generalization baselines. On OfficeHome, it achieved an average OOD accuracy of 70.9% (vs. 67.5% for ERM).
- CivilComments (Text): The model demonstrated exceptional robustness against subpopulation shifts, achieving a worst-group accuracy of 75.45%, significantly outperforming GroupDRO (69.0%) and ERM (56.5%), without requiring any prior knowledge of the demographic group compositions during training.
Limitations and Future Work
The primary limitation identified by the authors is the reliance on a global assumption for regularization strengths ($\alpha$ and $\beta$) across all tasks. In complex real-world scenarios, different tasks might require adaptive or task-conditioned regularization strengths to prevent feature collapse (which occurs if $\beta$ is set too high, as seen in Figure 3).
Additionally, the test-time adaptation strategy relies on randomly sampling a small balanced dataset from the training domains to fit the linear head. Exploring more sophisticated sampling procedures that explicitly account for the nature of the distribution shift remains an open and promising direction for future research.
Summary updated