potentialpaper

HOW TO TRAIN YOUR DIFFUSION MODELS FOR FEW- SHOT CLASSIFICATION

Jingyuan Shi, Zhongqi Yue, Fengda Zhang, Qianpei He, Feifei Shao, Jun Xiao

ICLR 2026 submission

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Generation and classification are two sides of the same coin: a strong generative model can be transformed into a powerful classifier. This is evident when diffusion models (DMs) outperform CLIP-based approaches in fine-grained or customized classification tasks, where a small few-shot training set defines the task on the fly. In this setting, the model is typically fine-tuned to reconstruct the training samples and, at inference, predicts the label with the lowest expected reconstruction error across diffusion time-steps. Although effective, this approach is computationally expensive, as it requires computing averageaverage reconstruction errors for every classevery \ class over the $ full \ \ range \ \ of \ \ time-steps$ and $multiple \ \ sampled \ \ noises$. In this work, we study techniques to improve both efficiency and accuracy of diffusion classifiers. To accelerate inference, we propose dynamic time-step selection to minimize unnecessary evaluations. To improve the estimation of reconstruction errors, we introduce class-object mask learning, which reduce variance and thereby require fewer noise samples to achieve high precision. To further reduce the number of candidate classes, we explore candidate class selection. Together, these techniques speed up diffusion-based classifiers by over an order of magnitude while simultaneously maintaining or even improving classification performance. Finally, we show that DMs and CLIP-based models are complementary, and integrating the two achieves further gains — reinforcing the close connection between generation and classification.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

add · history

No versions are recorded yet: its preprint, the venues it went to and what they decided, the camera-ready. Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…