Discriminative Score Function: Turning Pretrained Models into Functional Generative Priors
Abstract
Discriminative models are trained with task-specific objectives such as classification, detection, or representation learning, yet their practical utility depends on generalizing beyond the training task to unseen samples from the same domain. This suggests that a discriminative model may retain an implicit trace of the data manifold beyond its task labels. We ask whether this trace can be exposed as a generative signal without task-specific guidance. We introduce the Discriminative Score Function (DSF), which extracts an image-space generative field from the loss-gradient geometry of a pretrained discriminative model. DSF provides a training-free update rule that moves images toward model-consistent visual regions without retraining or task-specific targets. We apply DSF to diverse pretrained discriminative models, including ResNet classifiers, DETR detectors, and DINOv2 ViT encoders. DSF generates unconditional images from noise and supports conditional guidance, editing, inpainting, and explanation through the same field. DSF-generated samples also provide effective zero-shot quantization calibration when real images or labels are unavailable, preserving feature geometry better than data-free calibration baselines. These results show that discriminative training leaves a generative functional signal for synthesis and calibration. Project page: https://junhoo.me/dsf.
Create a lesson
Metadata
- Categories
- cs.CV, cs.LG
- Comments
- 20 pages. Accepted at the Fortieth Annual Conference on Neural Information Processing Systems (2026)
Related papers
Seeing Both the Forest and the Trees: Reusing Holistic 3D Priors for Part-Decomposed Generation
Shared title terminologycs.CVYiqun Zhao, Binbin Huang, Haobin Duan et al.
UltraDiff: Transferring High-Fidelity Priors to Compressed Latent Spaces for High-Resolution Image Generation
Shared title terminologycs.CVJingjing Ren, Haitian Zheng, Haoyu Chen et al.
WebVibe: Multimodal Interactive Website Generation via Reverse Synthesis and Visual Self-Distillation
Shared title terminologycs.CVTianxiang Jiang, Sheng Xia, Yilin Long et al.
StateWeaver: Multi-Agent Coordination of Story-State Transitions for Long-Horizon Video Generation
Shared title terminologycs.CVModi Jin, Xuying Zhang, Yijing Guo et al.
VibeVideoAgent: Closing the Perceptual Loop for Code-Driven Video Generation
Shared title terminologycs.CVXuanyu Zheng, Luoyuan Zhang, Yancheng Long et al.
Spe3DUp: Faithful Trajectory Distillation for Fast Image-to-3D Generation
Shared title terminologycs.CVLiangchao Xu, Jiaye Fu, Youtian Lin et al.