Generative Classification via Likelihood Estimation

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 124 papers26 conceptsfrozen 2026-10-04

Most modern classifiers are discriminative: they take an input $x$ and learn a direct mapping to a label $y$, modeling the probability $P(y|x)$. While efficient, these models often rely on "shortcuts"—like textures in images or specific keywords in text—rather than a deep understanding of the underlying data.

A growing body of research suggests a more robust alternative: Generative Classification. Instead of asking "What is the label for this input?", we ask "How likely is this input, given a specific label?" By modeling $P(x|y)$ and using Bayes' rule, we can turn generative models—from RNNs and Transformers to Diffusion models—into powerful, human-like classifiers.

Reversing the Generative Process

The core intuition behind generative classification is to treat the model as a "judge" of its own creative potential. In Generative Concatenative Nets Jointly Learn to Write and Classify Reviews, Zachary Chase Lipton and colleagues demonstrated that a model trained to generate text (like product reviews) can be "run in reverse." To classify a review's sentiment, the model calculates the likelihood of that specific text being generated under a "positive" prompt versus a "negative" prompt.

This approach, often called the Noisy Channel model in natural language processing, has proven remarkably effective for few-shot learning. Sewon Min and Mike Lewis found in Noisy Channel Language Model Prompting for Few-Shot Text Classification that asking "how likely is this input given a label" is far more stable than standard prompting. It reduces the variance caused by prompt wording and handles imbalanced data better because the model must explain the entire input sequence rather than just predicting a single token.

Why Generative Classifiers are More Robust

Generative models must learn the actual distribution of the data to create it. This leads to several "intriguing properties" not found in standard models. Priyank Jaini, Kevin Clark, and Robert Geirhos discovered that generative classifiers built from models like Stable Diffusion exhibit a 99% shape bias. While standard classifiers are easily fooled by textures (e.g., a cat with elephant skin), generative classifiers focus on the global structure, matching human visual perception much more closely.

This structural understanding translates directly into security. The Robust Diffusion Classifier (RDC), introduced by Huanran Chen and Yinpeng Dong, leverages the generative power of diffusion to achieve state-of-the-art adversarial robustness. Because the model classifies by trying to "reconstruct" the input, it is naturally resistant to the small, pixel-level perturbations that typically break discriminative decision boundaries.

The Computational Bottleneck

If generative classification is so robust, why isn't it the industry standard? The answer lies in the linear scaling problem.

In a discriminative model, a single forward pass yields probabilities for all possible classes. In a generative classifier, you must evaluate the likelihood of the input for every single category individually. If you have 1,000 classes, you must run the model 1,000 times.

  • Diffusion models are particularly slow because they require multiple denoising steps to estimate likelihood.
  • Information extraction models like DEGREE by I-Hung Hsu face similar overhead when checking every potential event type in a large ontology.

As noted by Sharad Vikram and others, this makes real-time inference in high-cardinality environments (like millions of users or items) computationally prohibitive.

Scaling Toward Efficiency

Recent research focuses on closing this efficiency gap. One approach is to optimize the underlying architecture. Yi-Chung Chen and Jing Gao proposed A-VARC+, which uses Visual Autoregressive (VAR) models. Unlike diffusion, VAR models have tractable likelihoods, allowing for classification that is nearly 90 times faster while maintaining generative benefits like explainability.

Another strategy involves pre-computation. Zipeng Qi and colleagues developed the Gaussian Diffusion Classifier (GDC), which shifts the heavy lifting to a one-time preparation phase. By approximating the diffusion process, they achieved a 30,000x speedup, making zero-shot generative classification viable for large datasets like ImageNet.

By moving from learning "boundaries" to learning "distributions," these models trade computational cycles for a deeper, more resilient understanding of the world.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_generative_classification_via_likelihood_5620370c,
  title = {Generative Classification via Likelihood Estimation},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/generative-classification-via-likelihood-estimation/rdr_5620370c92434bb6bf6fa1cadb65121d},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-01},
}

This exact version (version 1, frozen text):

@misc{lacuna_generative_classification_via_likelihood_5620370c_v1,
  title = {Generative Classification via Likelihood Estimation},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/generative-classification-via-likelihood-estimation/rdr_5620370c92434bb6bf6fa1cadb65121d/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-01},
}