Classification with I-priors

4 minute read

The I-prior methodology is extended from the continuous response case to the categorical response case - we call this the I-probit model. Estimation involves some form of approximation as the marginal density cannot be found in closed form.

Categorical Responses

Suppose that each of the response variables takes on one of the values from , and that

with probability mass function

satisfying , and .

The categorical distribution is a special case of the multinomial distribution, and can be seen as a generalisation of the Bernoulli distribution. Here, we have used the notation to denote the Iverson bracket - equals one if the proposition is true, and zero otherwise.

The assumption of normality on is now highly inappropriate. In the spirit of generalised linear models, we model instead

using some link function and a regression function for each class , on which an I-prior is specified. As we will see later, the probit link is preferred, where is the cumulative distribution function (CDF) for a standard normal distribution.

Binary Responses

In the simplest case where , each follows a Bernoulli distribution with success probability . The probit link can be motivated through the use of continuous, underlying latent variables such that

We can then model these auxiliary random variables using an I-prior as usual (cf. Model 1) with fixed error precision . Thus,

\begin{align} p_i = \text{P}(y_i = 1) &= \text{P}(y_i^* \geq 0) \nonumber \\ &= \text{P}\big(f(x_i) + \epsilon_i \geq 0\big) \nonumber \\ &= \Phi \big(f(x_i) \big). \nonumber \end{align}

There is no loss of generality compared with using an arbitrary threshold (other than zero) for the determination or precision (other than identity) for the error terms .

Multinomial Responses

The approach we take is to model each probability class using separate regression functions and separate I-priors (thus the index on the functions). In the most general setting, there would be sets of hyperparameters to estimate (one for each class), though it is possible to assume some common values among classes.

Using a latent variable motivation similar to the binomial case, we find that

For this is known not to have a closed-form expression, but nonetheless is easily evaluated using quadrature methods.

It is also possible to reparameterise the model by anchoring on one latent variable as the reference class and working with the latent differences so that only I-priors are required. It is easily seen that using this approach with reduces the model to the same binomial model described above.

Estimation

Unlike the normal regression model, the marginal likelihood

on which the posterior depends, is no longer available in closed form. Several methods can be employed to overcome this intractable integral, by way of approximating the true posterior density by , in order to obtain estimates of the hyperparameters. These are described below in an order analogous to the methods described in the normal regression model.

Laplace’s Method

Suppose that we are interested in

with normalising constant (the marginal). The Taylor expansion of about its mode ,

is recognised as the logarithm of an unnormalised Gaussian density, with being the negative Hessian of evaluated at . Therefore, the posterior density can be approximated by , and the marginal by

The marginal density can then be maximised with respect to the hyperparameters using Newton-based methods. However, each Newton step would require finding the posterior modes , which is difficult for very large .

Variational Approximation

An approximation to the true posterior density is considered, with chosen to minimise the Kullback-Leibler divergence (under certain restrictions),

The name “variational” stems from the fact that we are seeking to minimise a functional (the Kullback-Leibler divergence) which uses calculus of variations techniques. Of course it would be impossible to minimise the KL over all possible functions , so some restrictions are required. We use the mean-field factorisation assumption, which considers only densities which factorises completely over its components, i.e. densities of the form

By assuming priors on the hyperparameters , we work in a fully Bayesian setting and append these model hyperparameters to to form and obtain a variational approximation to the posterior density . The result is a sequential updating scheme similar to the EM algorithm.

This variational-EM algorithm works harmoniously with exponential family distributions, and as such the probit link provides an advantage over other link functions such as the more popular logit. In fact, all of the required posterior densities, with the exception of the , involve the normal distribution. The posterior distribution for is of course categorical.

The marginal likelihood is approximated by a quantity known as the variational lower bound, and is given by , where expectation is taken over the approximate posterior distribution .

Comparison of the approximations for Laplace's method and the variational method. Though parameterised differently, both methods approximate the true density by a Gaussian.

Markov Chain Monte Carlo

In keeping with the Bayesian theme, MCMC samplers such as Gibbs or Hamiltonian Monte Carlo can also be used to estimate these I-probit models. The MCMC method is a form of stochastic approximation which guarantees asymptotically exact results. However, in our experience, these methods can be computationally slow, and sampling difficulty often arises which result in unreliable posterior samples.

Modelling and Prediction

The advantages of I-priors in the normal model extend even to the I-probit model. This includes being able to simply model various types of categorical response regression models by choosing appropriate kernel functions for the covariates.

For prediction purposes, we can derive the posterior predictive class probabilities given a new data point as follows:

where in which the approximate posterior density of is used. This complex integral reduces to the expectation of products of standard normal CDFs (similar to 3).

For examples of I-probit models used for binary and multiclass classification, meta-analysis, and spatio-temporal modelling, see the Examples section.

Updated: