Discriminative Score Function: Turning Pretrained Models into Functional Generative Priors
Junhoo Lee, Hyeonjin Kim, Sangbum Han, Nojun Kwak
NeurIPS page · OpenReview · Open on the map
Category: Diffusion & Image Generation › Generative Model Evaluation and Improvement · Type: new method · Keywords: discriminative models, generative priors, score function, image synthesis, zero-shot calibration
Areas: Generative Models (Diffusion & Flows) › Pixel-Space Diffusion › Visual Content Generation; Continual Learning & Adaptation › Domain Shift Adaptation › Knowledge Distillation
Summary
The Discriminative Score Function (DSF) extracts a generative field from pretrained discriminative models, enabling training-free image synthesis, editing, inpainting, and zero-shot quantization calibration.
Explained to a 5-year-old
Some computer programs learn to recognize objects like cats and dogs. When they learn to do that, they also learn how pictures are put together. We found a way to use that hidden picture knowledge to draw new pictures. This works without teaching the program anything new, just using what it already knows. It also helps when we want to fix or fill in missing parts of a picture.
Explained to a 5-year-old, longer
Computers can be taught to tell whether a picture shows a cat or a dog. When they learn to do that, they also learn a lot about how pictures are put together. We discovered that this hidden understanding can be used to make new pictures. Think of it like a recipe that the computer already has in its head, but we can follow it to bake something new. We don't need to give the computer any new pictures to learn from. Instead, we just use the old knowledge to start from a random dot pattern. By moving the dots in a smart way, we can turn the random pattern into a realistic image. This works for many kinds of pictures, not just cats and dogs. It also helps when we want to fix or fill in missing parts of a picture. The same idea can be used to help other computer tools that need pictures to work. For example, it can calibrate a model that guesses numbers without needing real data. In short, we turned a classifier's secret picture knowledge into a free generator for new images.
For a technical reader
The paper shows that pretrained discriminative models (e.g., image classifiers) retain an implicit generative signal in their loss gradients. By analyzing these gradients, we can derive an update rule that nudges random noise toward regions of the image space the model considers realistic. This rule works out-of-the-box on models like ResNet, DETR, and DINOv2 without any additional training. The resulting generative field can be used for unconditional synthesis, conditional editing, inpainting, and even zero-shot calibration of downstream models. The approach therefore provides a lightweight, data-free way to generate images and improve model performance in settings where labeled data is scarce.
Problem
Discriminative models are trained for specific tasks, yet they retain an implicit trace of the data manifold. The core problem is to expose this trace as a generative signal for synthesis without task-specific guidance.
Method
The approach extracts an image-space generative field by analyzing the loss-gradient geometry of a pretrained discriminative model, providing a training-free update rule that moves images toward model-consistent regions. It can be applied to various pretrained models without further training and supports both unconditional and conditional generation.
Results
The approach successfully generates unconditional and conditional images and achieves better feature geometry preservation in zero-shot quantization calibration compared to data-free baselines.
Contributions
It demonstrates that discriminative models retain a generative functional signal and provides a training-free method to extract and utilize this signal for synthesis and calibration. The work shows broad applicability across multiple pretrained model types.
Practical relevance
It enables practitioners to synthesize images and calibrate models without requiring additional training data or labels, reducing resource demands.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction