Abstract: Meta learning is a promising solution to few-shot learning problems. However, existing meta learning methods are restricted to the scenarios where training and application tasks share the same out-put structure. To obtain a meta model applicable to the tasks with new structures, it is required to collect new training data and repeat the time-consuming meta training procedure. This makes them inefficient or even inapplicable in learning to solve heterogeneous few-shot learning tasks. We thus develop a novel and principled Hierarchical Meta Learning (HML) method. Different from existing methods that only focus on optimizing the adaptability of a meta model to similar tasks, HML also explicitly optimizes its generalizability across heterogeneous tasks. To this end, HML first factorizes a set of similar training tasks into heterogeneous ones and trains the meta model over them at two levels to maximize adaptation and generalization performance respectively. The resultant model can then directly generalize to new tasks. Extensive experiments on few-shot classification and regression problems clearly demonstrate the superiority of HML over fine-tuning and state-of-the-art meta learning approaches in terms of generalization across heterogeneous tasks.
Introduction
Most meta-learning algorithms, such as Model-Agnostic Meta-Learning (MAML), operate under a "fixed-structure" assumption. If a model is trained to solve 5-way classification tasks, it typically cannot be directly applied to a 20-way or 50-way task without expensive retraining. This limitation hinders the application of AI in dynamic environments where task structures evolve. This paper addresses the problem of heterogeneous meta-learning: learning to learn across tasks that do not share the same output structure.
Methodology
The proposed Hierarchical Meta Learning (HML) framework introduces two primary innovations to overcome structural rigidity:
- Task Factorization & Hierarchical Training: Instead of training on a flat distribution of similar tasks, HML restructures training data into a hierarchy. For an $N$-way classification problem, it creates sub-tasks ranging from 2-way up to $N$-way. The meta-objective is split into a Bottom Level (optimizing for fast adaptation to similar tasks) and a Top Level (explicitly maximizing generalizability by testing performance on more complex task distributions).
- Meta Model Transformation ($\omega$): To handle shifts in the number of output nodes, HML introduces a learnable transformation function, $\omega$. This function acts as a bridge, allowing internal representations to adapt smoothly to architectural changes without losing core knowledge.
Experimental Setup
The researchers evaluated HML on several benchmarks:
- Omniglot: 1,623 handwritten characters from 50 alphabets.
- miniImageNet & SUN2012: Complex image datasets for scene and category recognition.
- Multivariate Linear Regression: Synthetic tasks testing generalization across different output dimensions.
Key Results
HML consistently outperformed state-of-the-art methods like MAML and Meta-SGD, particularly as the complexity gap between training and testing grew. On the Omniglot dataset, when moving from 5-way training to 50-way testing, HML achieved significantly higher accuracy than its counterparts.
Beyond quantitative metrics, HML produces superior feature representations. t-SNE visualizations demonstrate that HML creates tighter clusters and better class separation than MAML when applied to high-dimensional tasks, suggesting the model learns features that are inherently more discriminative across different scales.
Conclusion
HML demonstrates that generalizability across heterogeneous tasks can be explicitly optimized as a higher-level objective. By learning the "rules" of generalization through hierarchical task factorization, HML provides a robust solution for few-shot learning in real-world scenarios where task structures are not fixed. Future research may focus on automating the hierarchy design and exploring generalization from complex to simpler task structures.
Summary updated