Abstract
Unsupervised meta-learning aims to learn the meta knowledge from unlabeled data and rapidly adapt to novel tasks. However, existing approaches may be misled by the context-bias (e.g. background) from the training data. In this paper, we abstract the unsupervised meta-learning problem into a Structural Causal Model (SCM) and point out that such bias arises due to hidden confounders. To eliminate the confounders, we define the priors are conditionally independent, learn the relationships between priors and intervene on them with casual factorization. Furthermore, we propose Causal Meta VAE (CMVAE) that encodes the priors into latent codes in the causal space and learns their relationships simultaneously to achieve the downstream few-shot image classification task. Results on toy datasets and three benchmark datasets demonstrate that our method can remove the context-bias and it outperforms other state-of-the-art unsupervised meta-learning algorithms because of bias-removal.
Introduction: The Challenge of Context-Bias
Unsupervised meta-learning seeks to develop models that can learn how to learn from unlabeled data, enabling rapid adaptation to new tasks with minimal examples. A significant hurdle in this field is context-bias—the tendency of models to rely on spurious correlations between objects and their environments.
For instance, if a training dataset predominantly features birds in the sky and airplanes on the ground, a standard model might incorrectly identify a "blue background" as a defining characteristic of a bird. Consequently, it fails when presented with an airplane in the sky during testing. This failure occurs because latent priors like "sky" and "wing" are statistically dependent in the training data, acting as confounders that mislead the model.
The CMVAE Framework
To address this, we introduce Causal Meta VAE (CMVAE). This framework integrates Structural Causal Models (SCM) into a Variational Autoencoder (VAE) to explicitly model and mitigate these causal dependencies. The core innovations include:
- Structural Causal Modeling: We represent the meta-learning process as a causal graph where latent priors ($D$) influence both the input image ($X$) and the prediction ($Y$). By identifying these priors as confounders, we can apply causal theory to decouple them.
- Learnable Directed Acyclic Graph (DAG): Unlike traditional VAEs that assume latent variables are independent, CMVAE learns a DAG that describes the actual relationships between latent priors. This structure is enforced using a "DAG-ness" penalty based on the NoTears algorithm, ensuring the latent space respects causal hierarchies.
- Causal Intervention (The do-operator): To eliminate bias, the model employs the "backdoor adjustment" formula. Instead of calculating a simple conditional probability $P(y|x)$, it computes $P(y|do(x))$. This mathematically simulates a scenario where the background is forced to vary, breaking the spurious link between context and object.
Experimental Evaluation
CMVAE was evaluated across several benchmarks to test its robustness against bias and its general learning capabilities:
- Biased Toy Dataset: In a custom 2-way classification task (birds vs. planes) with heavy context-bias, CMVAE achieved 93.08% accuracy, a nearly 15% improvement over the previous state-of-the-art Meta-GMVAE (78.51%).
- miniImageNet: On this complex 100-class subset of ImageNet, CMVAE reached 44.27% in 5-way, 1-shot tasks, outperforming IFSL (42.90%) and UMTRA (39.93%).
- CelebA: For 5-way identity recognition, it achieved 61.04%, significantly higher than Meta-GMVAE's 58.05%.
Key Insights and Limitations
The success of CMVAE highlights that priors are rarely independent in natural scenes. By treating causality as a regularizer, the model is pressured to separate true causes from environmental effects. Furthermore, the learned causal graph allows for counterfactual reasoning—intervening on a "cause" variable in the latent space results in more significant image changes than intervening on an "effect" variable.
Despite these gains, challenges remain. Recovering the exact true causal structure without full supervision (identifiability) is difficult. Additionally, the Causal-EM algorithm is approximately 10% slower than standard EM due to necessary matrix inversions. Future work will focus on scaling these DAG-learning techniques to more complex, high-dimensional real-world scenes.
Summary updated