To construct a loss function for training data using the maximum likelihood approach, we:

  1. Choose a suitable probability distribution defined over the domain of the set of predictions with parameters .
  2. Set the model to predict one or more of these parameters, so that and .
  3. To train the model, find the network parameters that minimize the negative log-likelihood loss function over the training dataset pairs :
  1. To perform inference for a new test example , return either the full distribution or the value where this distribution is maximized.
What does a model predict in the maximum likelihood framework?

One or more parameters of the chosen probability function, such that .

How do we choose a probability distribution for maximum likelihood training?

Choose a distribution whose support (possible set of values) matches the domain of the target variable .

Examples of this:

Depending on the type of prediction, we can choose an appropriate distribution and apply the recipe.

Loss Function Recipe-20250624153228848.png