Abstract
MetaDiff is a novel meta-learning framework that reinterprets weight optimization in few-shot learning (FSL) as a conditional denoising diffusion process. By treating gradients as noise to be removed from a set of random weights, MetaDiff avoids the memory-intensive second-order derivatives required by traditional bi-level optimization methods like MAML. This approach results in a more efficient training process with constant memory scaling and superior performance on standard FSL benchmarks.
Introduction
Few-shot learning (FSL) challenges models to generalize from a very limited number of labeled examples. Gradient-based meta-learning has emerged as a powerful paradigm, where a meta-optimizer learns to update a base learner's parameters for novel tasks. However, these methods typically rely on bi-level optimization, requiring backpropagation through the entire inner-loop optimization path. This leads to significant memory overhead and the risk of vanishing gradients during the meta-training phase.
The MetaDiff Framework
MetaDiff addresses these challenges by replacing the iterative gradient descent path with a generative diffusion process. The core insight is that the transition from random weight initialization to an optimal task-specific configuration is mathematically analogous to the denoising process in diffusion models, which transforms Gaussian noise into structured data.
In this framework, the optimal weights for a given task are treated as the target "data" to be generated. The denoising step effectively acts as a generalized gradient update that incorporates momentum and uncertainty estimation.
System Architecture
The MetaDiff architecture utilizes a Task-Conditional UNet (TCUNet) as the meta-optimizer. As shown in the overall framework, the model processes a support set $S$ through a feature extractor $f_\phi$. These features, along with the current weights $w_t$ and time step $t$, are fed into the MetaDiff block $\epsilon_\theta$.
The MetaDiff block predicts the noise (gradient) required to refine the weights. Unlike traditional methods that must "unroll" the entire optimization sequence during training, MetaDiff trains on individual time steps using a standard diffusion objective, ensuring constant memory usage regardless of the number of inference steps.
Experimental Results
The authors evaluated MetaDiff on the miniImageNet and tieredImageNet benchmarks. MetaDiff consistently outperformed existing gradient-based meta-learners across various backbones.
- miniImageNet: In the 5-way 1-shot setting, MetaDiff achieved an accuracy of 64.99%, significantly higher than ALFA (59.74%) and COMLN (59.26%). In the 5-shot setting, it reached 81.21%.
- tieredImageNet: The model demonstrated robustness on this larger dataset, achieving 86.31% accuracy in the 5-shot scenario.
Beyond accuracy, MetaDiff exhibits superior efficiency. While traditional meta-optimizers see a linear increase in memory consumption with more inner-loop steps, MetaDiff's memory footprint remains flat. During inference, the weight denoising process typically converges within 450 steps.
Conclusion
MetaDiff represents a significant shift in meta-learning by framing optimization as a conditional generation task. By leveraging the strengths of diffusion models, it provides a memory-efficient and high-performing alternative to traditional gradient-based methods. Future work may extend this approach beyond classification to more complex tasks like object detection and full-model adaptation.
Summary updated