In the conditional probabilistic perspective of ML, what does a model try to compute?

It computes a conditional probability distribution of possible outputs given , instead of directly computing a prediction .

What does the loss function encourage in the conditional probability perspective of ML?

The loss encourages each training output to have a high probability under the distribution , computed from the corresponding .

Computing a distribution over outputs

How can a model be adapted to compute a probability distribution?

We choose a parametric distribution defined on the output domain . Then, the network computes the parameters of this distribution.

  • Example: Predicting the mean and variance parameters that characterize a normal distribution.

For example, suppose the prediction domain is the set of real numbers, so . Here, we might choose the univariate normal distribution, which is defined on . This distribution is defined by the mean and variance , so . The model might predict the mean , and the variance could be treated as an unknown constant.

Inference

We use log-likelihood as a loss function to find the best parameters.

Under the conditional probability view of ML, the network no longer predicts the outputs but instead determines a probability distribution over . However, we often want to use a point estimate rather than a distribution. How can we do this?

To do this, we return the maximum of the distribution (the most likely):

It’s usually possible to find an expression for this in terms of the distribution parameters predicted by the model. For example, in the univariate normal distribution, the maximum occurs at the mean .

Multiple Outputs

Often, we wish to make more than one prediction with the same model, so the target output is a vector. For example, we might want to predict a molecule’s melting and boiling point (multivariate regression), or the obstacle class at every point in an image (multivariate classification). While it’s possible to define multivariate probability distributions and use a neural network to model their parameters as a function of the input, it’s more usual to treat each prediction as independent.

Independence implies that we treat the probability as a product of variate terms for each element :

where is the -th set of network outputs, which describe the parameters of the distribution over . For example:

  • To predict multiple continuous variables , we use a normal distribution for each , and the network outputs predict the means of these distributions.
  • To predict multiple discrete variables , we use a categorical distribution for each . Here, each set of network outputs predicts the values that contribute to the categorical distribution for .

When we minimize the negative log-likelihood, this product becomes a sum of terms:

where is the -th output from the -th training example.

To make two or more prediction types simultaneously, we similarly assume the errors in each are independent.

  • Example: To predict wind direction and strength, we might choose the von Mises distribution (defined on circular domains) for the direction, and the exponential distribution (defined on positive real numbers) for the strength.

The independence assumption implies that the joint likelihood of the two predictions if the product of individual likelihoods. These terms will become additive when we compute the negative log-likelihood.