Skip to main content
QUICK REVIEW

[Paper Review] MetaDiff: Meta-Learning with Conditional Diffusion for Few-Shot Learning

Baoquan Zhang, Luo, Chuyao|arXiv (Cornell University)|Jul 31, 2023
Domain Adaptation and Few-Shot LearningComputer Science4 citations
TL;DR

MetaDiff proposes a novel meta-learning framework that models the gradient descent process in few-shot learning as a conditional diffusion denoising process, eliminating the need for second-order gradients and reducing memory overhead. By training a task-conditional U-Net to predict noise in model weights during optimization, MetaDiff achieves state-of-the-art performance on miniImageNet and tiered-ImageNet with consistent 1-3% accuracy gains over existing gradient-based meta-learning methods.

ABSTRACT

Equipping a deep model the abaility of few-shot learning, i.e., learning quickly from only few examples, is a core challenge for artificial intelligence. Gradient-based meta-learning approaches effectively address the challenge by learning how to learn novel tasks. Its key idea is learning a deep model in a bi-level optimization manner, where the outer-loop process learns a shared gradient descent algorithm (i.e., its hyperparameters), while the inner-loop process leverage it to optimize a task-specific model by using only few labeled data. Although these existing methods have shown superior performance, the outer-loop process requires calculating second-order derivatives along the inner optimization path, which imposes considerable memory burdens and the risk of vanishing gradients. Drawing inspiration from recent progress of diffusion models, we find that the inner-loop gradient descent process can be actually viewed as a reverse process (i.e., denoising) of diffusion where the target of denoising is model weights but the origin data. Based on this fact, in this paper, we propose to model the gradient descent optimizer as a diffusion model and then present a novel task-conditional diffusion-based meta-learning, called MetaDiff, that effectively models the optimization process of model weights from Gaussion noises to target weights in a denoising manner. Thanks to the training efficiency of diffusion models, our MetaDiff do not need to differentiate through the inner-loop path such that the memory burdens and the risk of vanishing gradients can be effectvely alleviated. Experiment results show that our MetaDiff outperforms the state-of-the-art gradient-based meta-learning family in few-shot learning tasks.

Motivation & Objective

  • To address the high memory cost and vanishing gradient problem in gradient-based meta-learning, which arises from backpropagating through inner-loop optimization paths.
  • To explore a new perspective on meta-learning by modeling the gradient descent process as a denoising process, similar to diffusion models.
  • To design a conditional diffusion framework that learns to optimize base learner weights from random initialization to target weights in a differentiable, memory-efficient manner.
  • To improve few-shot learning performance by replacing bi-level optimization with a diffusion-based meta-optimizer training paradigm.

Proposed method

  • The inner-loop gradient descent process is reinterpreted as a reverse diffusion process, where model weights are gradually denoised from Gaussian noise to their optimal values.
  • A task-conditional U-Net (TCUNet) is proposed to predict the noise at each diffusion step, conditioned on few-shot support set data.
  • The model is trained using a denoising loss that minimizes the L2 difference between predicted and actual noise in model weights.
  • The meta-optimizer is learned in a diffusion manner, avoiding backpropagation through the inner-loop path, thus eliminating second-order gradient computation.
  • The framework is applied to both prototype and linear classifiers, demonstrating generalization across different head architectures.
  • Training is performed end-to-end in a conditional diffusion setting, where the support set serves as the condition for noise prediction at each time step.

Experimental results

Research questions

  • RQ1Can the gradient descent process in meta-learning be effectively modeled as a denoising process in a diffusion model?
  • RQ2Does replacing bi-level optimization with a diffusion-based meta-optimizer reduce memory consumption and improve training stability?
  • RQ3Can a task-conditional U-Net effectively predict the noise in model weights during the optimization process with only a few support samples?
  • RQ4Does the proposed MetaDiff framework achieve superior few-shot learning performance compared to state-of-the-art gradient-based meta-learning methods?
  • RQ5Is the proposed method robust and generalizable across different backbone networks and classifier types?

Key findings

  • MetaDiff achieves state-of-the-art performance on both miniImageNet and tiered-ImageNet, outperforming existing gradient-based meta-learning methods by 1% to 3% in few-shot accuracy.
  • The method consistently improves performance across different backbones, including Conv4 and ResNet12, demonstrating strong generalization and architecture independence.
  • MetaDiff reduces GPU memory usage to a constant level regardless of inner-loop step count, unlike baselines such as MetaLSTM and ALFA, which scale linearly with inner-loop steps.
  • The ablation study confirms that the task-conditional U-Net and L2 loss for noise prediction are critical, as removing either reduces performance by 1% to 3%.
  • Convergence analysis shows that MetaDiff stabilizes within approximately 450 denoising steps, indicating reliable and stable training dynamics.
  • MetaDiff generalizes well to different classifiers, achieving superior results on both prototype and linear classifiers, confirming its broad applicability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.