TL;DR
This paper introduces "Interventional Few-Shot Learning" (IFSL), a novel paradigm that addresses a hidden flaw in existing Few-Shot Learning (FSL) methods: pre-trained knowledge can actually hinder performance by acting as a confounder. By employing causal inference techniques, IFSL intervenes on this pre-trained knowledge to achieve state-of-the-art results across several benchmarks.
What Problem Does This Paper Address?
Few-Shot Learning (FSL) aims to train models that can generalize to new classes with very few examples. A common approach involves pre-training a model on a large dataset and then fine-tuning it on the few-shot task. While this pre-training usually improves performance, this paper identifies a counter-intuitive problem: the pre-trained knowledge, especially when very strong, can act as a "confounder." This means it creates spurious correlations between features and labels that are not causally related, leading to performance degradation, particularly when the few-shot task's data distribution differs significantly from the pre-training data. The authors argue that existing FSL methods, by relying on standard correlation-based learning, fail to account for this confounding effect, leading to suboptimal performance.
Methods
The core of the proposed solution lies in Interventional Few-Shot Learning (IFSL), which leverages causal inference and specifically the backdoor adjustment technique.
- Structural Causal Model (SCM): The authors first propose an SCM to model the causal relationships between pre-trained knowledge (D), extracted features (X), intermediate representations (C), and the final class label (Y). This model explicitly highlights how pre-training (D) can influence features (X) and intermediate representations (C), which in turn affect the final prediction (Y), potentially introducing confounding.
- Backdoor Adjustment: To counteract the confounding effect, IFSL applies the backdoor adjustment. This technique allows for estimating the causal effect of X on Y (i.e., P(Y|do(X))) by conditioning on a set of variables (in this case, stratifications of the pre-trained knowledge D). This effectively "intervenes" on the pre-trained knowledge, isolating the true causal relationship.
- IFSL Implementations: The paper proposes three practical implementations of the backdoor adjustment for IFSL:
- Feature-wise Adjustment: Divides the pre-trained knowledge into subsets based on feature dimensions and adjusts features accordingly.
- Class-wise Adjustment: Stratifies pre-trained knowledge based on pre-training classes and adjusts features based on class probabilities.
- Combined Adjustment: Merges feature-wise and class-wise adjustments for a more fine-grained intervention.
These IFSL methods are designed to be orthogonal to existing fine-tuning and meta-learning approaches, meaning they can be integrated to improve them.
Datasets
The experiments were conducted on standard FSL benchmark datasets:
- miniImageNet: 100 classes, 600 images per class, split into 64/16/20 for train/val/test.
- tieredImageNet: A larger dataset with 608 classes and ~1300 images per class, grouped into 34 higher-level concepts and split into 20/6/8 for train/val/test.
- Caltech-UCSD Birds-200-2011 (CUB): Used for cross-domain evaluation, containing 200 classes with ~60 samples each.
Key Insights and Ideas
- Pre-training can be a confounder: The most significant insight is that strong pre-trained knowledge, rather than always being beneficial, can act as a confounder, leading to spurious correlations and hindering generalization in FSL.
- Causal intervention as a solution: The paper demonstrates that applying causal inference techniques, specifically backdoor adjustment, can effectively "intervene" on this pre-trained knowledge to remove confounding bias.
- IFSL as a general improvement: IFSL is presented as a paradigm that can be applied to any existing fine-tuning or meta-learning FSL method, consistently improving their performance.
- Causal approximation to many-shot learning: The authors posit that IFSL essentially approximates the behavior of many-shot learning (where performance is robust) in a few-shot setting, by controlling for the confounding influence of pre-training.
- Hardness-specific accuracy reveals issues: Analyzing performance based on "query hardness" (dissimilarity to support set) reveals the limitations of standard FSL methods and highlights where IFSL provides the most benefit.
Key Results
- State-of-the-art performance: IFSL achieved new state-of-the-art results on miniImageNet (1-/5-shot: 73.51%/83.21%), tieredImageNet (1-/5-shot: 83.07%/88.69%), and cross-domain CUB (1-/5-shot: 50.71%/64.43%).
- Consistent improvements: IFSL consistently improved performance across various FSL methods (fine-tuning and meta-learning), datasets, and backbones (ResNet-10, WRN-28-10).
- Larger gains in 1-shot: Improvements were typically larger in 1-shot settings compared to 5-shot, suggesting that the confounding effect is more pronounced with fewer examples.
- CAM-Acc improvements: Visualizations and CAM-Acc (feature localization accuracy) showed that IFSL helps models focus on relevant object features, leading to more accurate predictions.
- Cross-domain generalization: IFSL also demonstrated significant improvements in cross-domain generalization, even with large domain gaps.
Limitations and Future Work
- Computational Cost: The paper notes that the proposed implementations of IFSL require the pre-trained knowledge to be observable and stratifiable. When the pre-trained network is a black box from a third party, instantiating the stratifications (d) can be non-trivial.
- Linearity Assumption: The derivation of some approximations relies on linearity assumptions. The authors mention that relaxing this assumption for more general few-shot settings and domain transfer is a future direction.
- Observational Intervention: The authors plan to explore other observational intervention algorithms for improved performance and counterfactual reasoning for more general few-shot scenarios.
- Meta-learning vs. Fine-tuning: The paper observes that meta-learning seems more robust to confounding than fine-tuning and suggests further investigation into this phenomenon.
Summary updated