Skip to main content
QUICK REVIEW

[Paper Review] Few-Shot Diffusion Models

Giorgio Giannone, Didrik Nielsen|arXiv (Cornell University)|May 30, 2022
Advanced Neuroimaging Techniques and ApplicationsMedicine20 citations
TL;DR

The paper introduces Few-Shot Diffusion Models (FSDM), conditioning DDPMs on sets of few example images processed by a set encoder (ViT) to enable rapid few-shot generation and transfer to unseen classes. FSDM achieves faster training, higher sample quality, and better transfer than unconditional and conditional baselines.

ABSTRACT

Denoising diffusion probabilistic models (DDPM) are powerful hierarchical latent variable models with remarkable sample generation quality and training stability. These properties can be attributed to parameter sharing in the generative hierarchy, as well as a parameter-free diffusion-based inference procedure. In this paper, we present Few-Shot Diffusion Models (FSDM), a framework for few-shot generation leveraging conditional DDPMs. FSDMs are trained to adapt the generative process conditioned on a small set of images from a given class by aggregating image patch information using a set-based Vision Transformer (ViT). At test time, the model is able to generate samples from previously unseen classes conditioned on as few as 5 samples from that class. We empirically show that FSDM can perform few-shot generation and transfer to new datasets. We benchmark variants of our method on complex vision datasets for few-shot learning and compare to unconditional and conditional DDPM baselines. Additionally, we show how conditioning the model on patch-based input set information improves training convergence.

Motivation & Objective

  • Motivate and enable few-shot generation for realistic, complex visual data.
  • Propose a conditioning mechanism that aggregates set information via a Vision Transformer.
  • Develop a two-component model: a context net that builds a set representation and a conditional diffusion model.
  • Demonstrate improved training efficiency, sample quality, and transfer to unseen classes over baselines.

Proposed method

  • Define a conditional diffusion framework p_theta(x0:T | X) conditioned on a set X through a context c = h_phi(X).
  • Use a ViT-based context encoder (sViT) to process sets of image patches and produce per-set context tokens.
  • Explore conditioning mechanisms (FiLM and Learnable Attentive Conditioning, LAC) to fuse context c with DDPM features.
  • Train with a conditional per-layer loss L^c_{t-1} based on predicting noise epsilon, plus a fixed unconditional term L^c_T.
  • Provide two context formulations: input-dependent (conditioning on a specific input) and input-independent; select input-dependent for better out-of-distribution conditioning.
  • Optionally discuss a Variational FSDM (VFSDM) that introduces a latent set variable c, though it underperformed in practice.

Experimental results

Research questions

  • RQ1Can a set-based conditioning mechanism enable DDPMs to perform few-shot generation on unseen classes with very limited data?
  • RQ2Does a ViT-based set encoder combined with Learnable Attentive Conditioning improve conditioning expressivity over FiLM-based approaches?
  • RQ3How do in-distribution vs out-of-distribution performance and transfer to different datasets compare for FSDM and baselines?
  • RQ4What is the impact of conditioning at training time versus sampling-time conditioning for few-shot generation of novel, complex objects?

Key findings

  • FSDM outperforms unconditional and conditional DDPM baselines on few-shot generation for new classes and datasets.
  • A token-based context representation with cross-attention conditioning improves denoising quality and sample diversity.
  • Training with input-dependent context yields better out-of-distribution conditioning and transfer performance.
  • FSDM achieves faster convergence and better sample fidelity metrics (compared to baselines) across CIFAR100 and miniImageNet scenarios.
  • FSDM demonstrates transferable few-shot generation to unseen datasets and outperforms sampling-time conditioning baselines like ILVR in several settings.

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.