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

Structured Prediction for Conditional Meta-Learning

Ruohan Wang, Yiannis Demiris, Carlo Ciliberto

Abstract

Standard optimization-based meta-learning methods typically learn a single set of global meta-parameters intended to generalize across all tasks. However, this "one-size-fits-all" approach often fails when the task distribution is complex or multimodal. We present Task-adaptive Structured Meta-Learning (TASML), a framework that treats meta-learning as a structured prediction problem. By weighting training tasks based on their similarity to a target task using kernel-based scoring, TASML enables local adaptation of meta-parameters. Our approach achieves state-of-the-art results on few-shot classification benchmarks while offering significant improvements in training speed and sample efficiency.

Introduction

Meta-learning aims to enable rapid adaptation to new tasks with minimal data by leveraging prior experience. Popular methods like Model-Agnostic Meta-Learning (MAML) seek a shared initialization (meta-parameters) that can be quickly fine-tuned for any task. While effective for narrow task distributions, this global approach struggles with diverse or multimodal distributions—for instance, when a single model must adapt to both biological species identification and character recognition. If the tasks are too diverse, a single starting point is insufficient for efficient adaptation.

Conceptual comparison between standard meta-learning and conditional meta-learning. Standard meta-learning (left) uses a single global initialization, which can be inefficient for diverse tasks. Conditional meta-learning (right) adapts the initialization based on the target task data.

Methods

TASML addresses these limitations by proposing conditional meta-learning, where meta-parameters are conditioned on the target task's data. The core of TASML is a structured prediction framework that employs a kernel-based weighting mechanism.

  1. Task Weighting via Kernels: TASML measures the similarity between a target task and training tasks using Maximum Mean Discrepancy (MMD). This similarity score determines the weight of each training task in the meta-learning objective, allowing the model to "recall" and prioritize relevant past experiences.
  2. Weighted Objective: Instead of a uniform average, the model optimizes a weighted meta-loss. This ensures that the meta-parameters are specifically tuned for the local region of the task space relevant to the current target.
  3. Computational Efficiency: To maintain scalability, the authors implement several optimizations:
  4. Top-M Filtering: Only the top 1% most relevant training tasks are used to adapt to a new target.
  5. Least-Squares Relaxation: By using ridge regression for the "inner loop" task adaptation, the model utilizes a closed-form solution. This is significantly faster than iterative gradient descent and avoids the instability of higher-order derivatives.
  6. Pre-trained Features: The model leverages high-quality feature maps from a ResNet classifier pre-trained on the meta-training data.

Results and Discussion

The researchers evaluated TASML on the miniImageNet and tieredImageNet benchmarks across 5-way 1-shot and 5-shot settings. TASML consistently outperformed established baselines such as MAML, Meta-SGD, and LEO. For example, on miniImageNet 5-shot classification, TASML achieved 78.22% accuracy, surpassing LEO's 77.59%.

Beyond accuracy, TASML demonstrated superior efficiency:

  • Speed: It is roughly 2x faster than LEO in terms of meta-gradient steps per second.
  • Sample Efficiency: TASML reaches peak validation accuracy in just a few thousand training steps, whereas competing models often require over 30,000 steps to converge.

Ablation studies highlighted that while pre-trained features provide a strong baseline, the structured prediction layer is essential for reaching state-of-the-art performance. Furthermore, maintaining consistency by using the same loss function (least squares) for both inner and outer loops proved critical for success.

Conclusion

TASML demonstrates that meta-learning benefits significantly from local, task-specific adaptation rather than relying solely on global averages. By framing meta-learning as structured prediction and utilizing efficient inner-loop solvers, TASML provides a robust and scalable path forward for few-shot learning in complex, real-world task environments.

Summary updated

BibTeX
@inproceedings{wang2020structured,
  author = {Ruohan Wang and Yiannis Demiris and Carlo Ciliberto},
  title = {{Structured Prediction for Conditional Meta-Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure