Advancing Image Classification with Discrete Diffusion Classification Modeling

Omer Belhasin, Shelly Golan, Ran El-Yaniv, Michael Elad

TL;DR

Discrete Diffusion Classification Modeling (DiDiCM) reimagines image classification by diffusing labels instead of pixels, treating classification as a generative task over a discrete label space. By explicitly modeling the posterior distribution of classes conditioned on an input image, DiDiCM significantly outperforms standard classifiers in high-uncertainty scenarios, such as heavily corrupted images or low-data regimes.

What Problem Does This Paper Address?

Standard image classifiers are typically trained using cross-entropy loss to directly map an input image to a specific class label. While highly effective for clean, abundant data, this deterministic approach struggles under high-uncertainty conditions—such as when images are blurry, noisy, or when training data is scarce. In these scenarios, traditional training introduces stochastic biases because it forces the model to make a definitive prediction rather than learning the true ambiguous relationship between a degraded image and its potential labels.

To handle this inherent ambiguity, a Bayesian approach that models the posterior distribution $P(\text{class} \mid \text{image})$ is ideal. While continuous diffusion models have revolutionized image generation, adapting them efficiently to the discrete, finite space of classification labels has remained an open challenge.

Methods

The authors introduce Discrete Diffusion Classification Modeling (DiDiCM), a continuous-time discrete diffusion framework tailored specifically for classification.

Instead of adding noise to image pixels, DiDiCM defines a forward process that systematically corrupts the class label over a time interval $t \in [0, 1]$ until it reaches a uniform distribution across all categories. The reverse process then learns to "denoise" a random label back to its correct identity, conditioned on the input image. To do this, the neural network is trained to predict the Concrete Score—a discrete generalization of the score function used in continuous diffusion models.

Figure 3. The Discrete Diffusion Residual Network (DiDiRN) architecture. DiDiRN preserves the core image-processing com- ponents of ResNet while adding conditioning modules to support the diffusion process of DiDiCM. Original ResNet modules are shown in blue, and the newly introduced components in green.

To make this practical, the authors propose two inference variants:

  1. DiDiCM-CP (Class Probabilities): This variant tracks the evolution of class probabilities. By exploiting the mathematical property that the score matrix is rank-one, DiDiCM-CP can approximate the entire transition matrix using just one model evaluation per diffusion step, drastically reducing computational overhead.
  2. DiDiCM-CL (Class Labels): This variant samples discrete labels directly using Monte Carlo rollouts. It is highly memory-efficient but requires more model evaluations to get a stable probability estimate.

Additionally, the authors design the Discrete Diffusion Residual Network (DiDiRN), a modified ResNet architecture that integrates time and noisy label embeddings directly into standard residual blocks, ensuring a fair comparison with traditional baselines.

Datasets

The framework was evaluated on the standard ImageNet-1k (ILSVRC-2012) dataset. To rigorously test the model under varying levels of uncertainty, the authors introduced controlled degradations:

  • Resolution Reductions: Images were downsampled to $112 \times 112$ and $56 \times 56$ pixels to act as proxies for image corruption.
  • Data Scarcity: Models were trained on class-balanced subsets containing only 25% or 50% of the original training data, alongside the full 100% dataset.

Key Insights and Ideas

  • Diffusing Labels over Pixels: Previous attempts at diffusion-based classification relied on massive image-generation models to compute density ratios, which is computationally exorbitant. DiDiCM operates entirely within the compact, $K$-dimensional label space, making it far more efficient.
  • The Rank-One Shortcut: The realization that the conditional score matrix possesses a rank-one structure is a major algorithmic breakthrough. It allows DiDiCM-CP to bypass the standard requirement of running $K$ forward passes (one for each class) at every diffusion step, collapsing it down to a single pass.
  • Widening the Gap under Stress: A key takeaway is that DiDiCM’s performance edge over standard ResNets grows wider as the task becomes more difficult (smaller images, less data). This demonstrates that generative label modeling inherently handles data scarcity and noise better than standard cross-entropy optimization.
Figure 2. An illustration of our DiDiCM-CP showing the evolution of the top-5 class label probabilities over time for three images, demonstrating different classification challenges.

Key Results

  • Matches SOTA on Clean Data: When trained on full-resolution, uncorrupted ImageNet data using a strong augmentation recipe, DiDiCM achieves 80.4% top-1 accuracy, matching the highest reported values for a standard ResNet-50 baseline.
  • Dominates Under High Uncertainty: In the most challenging setup ($56 \times 56$ resolution with only 25% training data) using standard weak augmentations, DiDiCM outperforms the standard classifier by a massive 13.1% in top-1 accuracy and 13.8% in top-5 accuracy.
  • High Efficiency: DiDiCM-CP achieves near-upper-bound classification accuracy using as few as 2 to 8 diffusion steps, making it viable for practical deployment.
Figure 1. ImageNet Top-5 Accuracy: DiDiCM vs. standard clas- sifiers. DiDiRN-50 (comparable to ResNet-50) and ResNet-50 are both trained using the state-of-the-art recipe [46]. DiDiCM shows superior top-5 accuracy across all uncertainty settings.

Limitations and Future Work

The primary limitation of DiDiCM is its inference speed compared to traditional models. Even though the rank-one trick reduces evaluations to one per diffusion step, it still requires multiple sequential forward passes (e.g., 2 to 8 steps), whereas a standard classifier requires only a single pass.

For future work, the authors suggest exploring more advanced backbone architectures (such as Vision Transformers) and developing diffusion distillation techniques to compress the multi-step reverse process into a single, instantaneous step.

Summary updated

BibTeX
@inproceedings{belhasin2026advancing,
  author = {Omer Belhasin and Shelly Golan and Ran El-Yaniv and Michael Elad},
  title = {{Advancing Image Classification with Discrete Diffusion Classification Modeling}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=qxQcVusjI2},
}
Figure