Abstract
Disentangled representation learning (DRL) aims to isolate independent factors of variation within data to improve model interpretability and robustness. However, traditional unsupervised methods often struggle to scale beyond simple synthetic datasets. This paper introduces a meta-learning framework that leverages a diverse set of supervised tasks to recover underlying physical factors without direct supervision of those factors. By enforcing two key inductive biases—sparse sufficiency (tasks use few features) and minimality (features are shared across tasks)—the proposed model identifies disentangled representations that significantly improve performance on real-world out-of-distribution (OOD) benchmarks. Our results demonstrate that this approach bridges the gap between synthetic DRL success and practical, large-scale applications.
Introduction
A central goal in deep learning is the acquisition of "meaningful" representations. In an ideal disentangled representation, distinct components of the feature vector correspond to independent physical attributes—for instance, one feature might encode the color of an object while another encodes its shape. Such representations are inherently more interpretable and robust to domain shifts, as the model can generalize by recombining known factors in novel ways.
Historically, DRL has been confined to a "synthetic rut," relying heavily on unsupervised objectives that fail to scale to complex, real-world data. Furthermore, multi-task learning often suffers from "negative transfer," where tasks compete for capacity, leading to degraded performance. This research investigates whether the structure of multiple supervised tasks can be used as a proxy to identify underlying factors of variation, thereby improving generalization to unseen domains.
Methodology
The authors propose a multi-task meta-learning architecture consisting of a shared backbone (the meta-learner) and task-specific linear classification heads (the base learners). The core innovation lies in the application of two specific inductive biases during the training process:
- Sparse Sufficiency: Each individual task is encouraged to utilize the minimum number of features necessary for accurate classification. This is enforced via an $L_1$ sparsity penalty on the linear classification heads.
- Minimality: To prevent the backbone from creating redundant or "split" features (e.g., multiple features encoding the same attribute), the model is encouraged to share features across as many tasks as possible. This is achieved through an entropy-based feature-sharing regularizer.
Bi-Level Optimization
The framework utilizes a bi-level optimization loop. In the inner loop, the linear head for a specific task is optimized to solve the classification problem while adhering to the sparsity and sharing constraints. In the outer loop, the backbone is updated to provide a feature space that facilitates the inner loop's objectives across the entire task distribution.
Crucially, the authors provide theoretical grounding in Proposition 2.1, proving that under specific conditions, these two constraints are sufficient to identify and recover the true underlying factors of variation, even when those factors are never explicitly labeled.
Experimental Setup
The method was evaluated across a diverse range of benchmarks to test both disentanglement and real-world robustness:
- Synthetic Benchmarks: dSprites, 3DShapes, SmallNorb, and Cars3D were used to measure the recovery of ground-truth factors (e.g., scale, rotation, color).
- Real-World Distribution Shifts: The model was tested on image datasets (PACS, VLCS, OfficeHome), medical imaging (Camelyon17 for tumor detection), and text (CivilComments for toxicity detection across demographics).
- Spurious Correlations: The Waterbirds dataset was used to evaluate the model's ability to ignore irrelevant background features in favor of core object features.
Key Insights
- Supervision as a Proxy: The research demonstrates that explicit labels for factors of variation are unnecessary if a sufficiently diverse set of tasks is available. The overlap and divergence between tasks provide the necessary signal to isolate individual factors.
- The Role of Minimality: While sparsity ensures efficiency, the minimality (sharing) constraint acts as a clustering mechanism. It forces the model to align its internal representations with the physical world by reusing the same "color" or "shape" feature across all relevant tasks.
- Robustness via Isolation: By disentangling features, the model can effectively ignore spurious correlations. In the Waterbirds benchmark, the model isolates "background" features from "bird" features because the background is not a sufficient predictor across the broader task distribution.
Results
The proposed framework demonstrated significant improvements over both standard baselines and specialized robust learning methods:
- Disentanglement Performance: On the dSprites dataset, the model achieved a DCI disentanglement score of 98.8, a massive leap from the 27.8 achieved by standard models without the proposed regularizers.
- OOD Generalization: On the Camelyon17 medical benchmark, the model achieved 74.1% accuracy on unseen hospital data, outperforming standard Empirical Risk Minimization (70.3%) and specialized methods like Invariant Risk Minimization (64.2%).
- Few-Shot Adaptation: The learned representations proved highly transferable. On the PACS dataset (1-shot), the model reached 81.5% accuracy, surpassing the baseline of 80.5%.
- Mitigating Negative Transfer: By allowing task-specific heads to select from a shared pool of disentangled features, the model avoids the capacity competition typical of multi-task learning.
Limitations and Future Work
Despite its success, the method is sensitive to the hyperparameters $\alpha$ (sparsity) and $\beta$ (sharing). Excessive sharing can lead to feature collapse, where distinct factors are merged, hurting performance. Additionally, the framework assumes access to a diverse task distribution; its effectiveness may diminish in low-task-count scenarios. Future research may explore adaptive tuning of these penalties and more sophisticated test-time sampling strategies to further enhance domain adaptation.
Summary updated