2
$\begingroup$

My understanding is that a discriminative classifier such as a CNN that takes an input $x$ and produces a discrete output label $y$ is typically trained to predict the best value of $y$, and would not give accurate probabilities for the various possible values of $y$. So it's an example of a deep neural net that cannot be used to reliably estimate the probability of a prediction.

If we compare a CNN to a generative model such as an autoregressive language model that is trained to estimate $p(\mathbf{w})$, where $\mathbf{w} = [w_1 ... w_n]$ is a sequence of words and $p(\mathbf{w}) = p(w_1) \prod_{i=2}^n p(x_i | x_{1..i-1})$, the underlying components of the discriminative CNN classifier vs. the generative autoregressive language model are similar (i.e., convolutional networks and transformers are both constructed using matrix multiplications and activations) and both are trained in similar ways (via supervised vs. self-supervised learning).

So would $p(\mathbf{w})$ yield an accurate estimate of the probability of an input sequence of words?

$\endgroup$

1 Answer 1

1
$\begingroup$

Both CNNs and autoregressive language models are classifiers and both return probabilities. What you are asking is if those probabilities are well callibrated. The answer is, as you could have guessed, “it depends”. Unfortunately, there's no clear answer or conclusive results. For example, research by Minderer et al (2021) has shown that different deep learning models differ in how well are they calibrated but there is no clear explanation when it is the case.

$\endgroup$
2
  • $\begingroup$ Thanks, but my question was focused on whether an autoregressive language model (e.g., one of the leading LLMs) produces an accurate estimate of the probability of the next word, not about how deep learning models do in general. $\endgroup$ Commented May 22, 2023 at 22:27
  • $\begingroup$ @sunfishstanford there's no a generative autoregressive language model, but many different models that fall into the category. They use different hyperparameters and often have custom architectures of implementations. If you ask about a specific model, you would probably need to verify this empirically. Otherwise, the generic answer about neural networks applies. $\endgroup$
    – Tim
    Commented May 24, 2023 at 11:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.