NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Subspace Learning for Effective Meta-Learning

Weisen Jiang, James Kwok, Yu ZhangICML 2022

Introduction

Meta-learning aims to extract meta-knowledge from historical tasks to accelerate learning on new, unseen tasks. However, standard approaches often assume a "one-size-fits-all" model. MUSML (MUltiple Subspaces for Meta-Learning) moves beyond this limitation by learning a mixture of low-dimensional subspaces to capture diverse task structures. This model-agnostic method significantly improves performance on heterogeneous task distributions by allowing the model to choose the most relevant "type" of knowledge for a new task.

The Heterogeneity Problem

Typical meta-learning algorithms, like the popular Model-Agnostic Meta-Learning (MAML), aim to find a single, globally-shared "meta-model" (often an initialization) that works well across all tasks. This underlying assumption—that all tasks are relatively similar—frequently breaks down in practice.

Real-world environments are inherently heterogeneous. For example, a robot might need to learn tasks in completely different physical environments, or a vision system might deal with vastly different image domains (e.g., medical vs. satellite imagery). In these cases, a single global model is insufficient to capture the diverse meta-knowledge required. While some researchers have tried clustering tasks into groups (centroids), this is often too restrictive. Others have proposed using subspaces, but previous methods were limited to simple linear models and struggled to scale to deep neural networks.

The MUSML Approach

The authors propose MUSML, a model-agnostic algorithm that structures task parameters into a mixture of $K$ subspaces.

  1. Subspace Representation: Instead of a single starting point, the meta-learner maintains $K$ different subspaces, each defined by a basis matrix. Each subspace represents a different "flavor" or "type" of task knowledge.
  2. Base Learner: For a given task, the base learner does not just fine-tune a global model. Instead, it searches for the best linear combination of bases within each subspace to minimize the training loss.
  3. Meta-Learner (Soft Selection): During training, the meta-learner uses a differentiable "soft" selection (a softmax over validation losses) to weight the contribution of each subspace. This allows all subspaces to be updated simultaneously, which is more efficient than hard-assigning tasks to distinct clusters.
  4. Meta-Testing (Hard Selection): When faced with a brand-new task, the model simply picks the single subspace that yields the lowest training loss after a few gradient steps.

Crucially, MUSML is model-agnostic, meaning it can be seamlessly integrated with any architecture, including deep convolutional networks.

Key Insights and Discoveries

Subspaces are More Flexible than Centroids

Centroid-based clustering (like TSA-MAML) forces tasks to start from specific, rigid points. Subspaces, on the other hand, allow for "directions of adaptation," which captures the underlying structure of task parameters much more effectively.

Visualization showing MUSML successfully discovering underlying subspaces compared to centroid-based methods

Automatic Domain Discovery

Without being explicitly told which task belongs to which dataset, MUSML naturally learns to assign tasks from the same domain to the same subspace. This emergent behavior highlights the model's ability to organically categorize heterogeneous data.

Heatmaps showing how tasks from different datasets are consistently assigned to specific learned subspaces

The Complexity Trade-off

The paper theoretically and empirically demonstrates a trade-off in subspace design. Increasing the number of subspaces ($K$) or their dimension ($m$) reduces training error but can eventually lead to overfitting (a larger generalization gap). Finding the optimal "sweet spot" for these hyperparameters is key to maximizing performance.

Experimental Results

The authors evaluated MUSML across a variety of challenging scenarios, including synthetic 1D regression, real-world pose prediction, and multi-domain classification benchmarks (like Meta-Dataset-BTAF).

  • Superior Accuracy: On the Meta-Dataset-BTAF classification benchmark, MUSML achieved an average accuracy of 66.18%, significantly outperforming MAML (57.78%) and even specialized structured methods like TSA-MAML (63.20%).
  • Dramatic Regression Improvements: In synthetic tests designed to test subspace recovery, MUSML achieved a Mean Squared Error (MSE) of 0.07, while MAML lagged significantly at 0.74.
  • Cross-Domain Robustness: MUSML proved effective even when the testing domain was entirely different from the training domain, outperforming all baselines.
  • Compatibility: MUSML can be combined with other meta-learning improvements like Meta-Curvature and Meta-SGD to further boost performance.

Limitations and Future Work

While powerful, MUSML does introduce some complexities. Performance is sensitive to hyperparameter choices, specifically the number of subspaces ($K$) and their dimension ($m$). Additionally, the current version assumes all $K$ subspaces have the same dimension, whereas real-world meta-knowledge might require variable capacities. Finally, checking multiple subspaces during the base learning phase increases the computational footprint compared to a single-model approach, though the substantial performance gains generally justify the cost.

Summary updated

BibTeX
@inproceedings{jiang2022subspace,
  author = {Weisen Jiang and James Kwok and Yu Zhang},
  title = {{Subspace Learning for Effective Meta-Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=M-R2vb0hoy-},
}
Figure