The best way to perform GP inference and training is to compute a Cholesky decomposition of the
N×N
Gram matrix. Unfortunately, this take
O(N3)
time. Instead, we can use an approximation method based on inducing points, also called pseudoinputs, which are like a learned summary of the training data that we can condition on, rather than conditioning on all of it [1].
Let
X
be the observed inputs, and
fX=f(X)
be the unknown vector of function values for which we have observations
y
. Let
f∗
be the unknown function values at one or more test points
X∗
. Finally, let us assume we have
M
additional inputs
Z
with unknown function values
fZ
also denoted by
u
. The exact joint prior has the following form [1].
We can choose
fZ
in such a way that it acts as a sufficient statistic for the data, so that we can predict
f∗
just using
fZ
instead of
fX
, and thus we approximate the prior as follows [1].
The above equations can be seen as exact inference on noise-free observations
fZ
. To gain computational speedups, we can make further approximations to the terms
Q~X,X=KX,X−QX,X
and
Q~∗,∗=K∗,∗−Q∗,∗
. We can then derive the approximate prior
q(fX,f∗)=∫q(fX∣fZ)q(f∗∣fZ)p(fZ)dfZ
, which we then condition on the observations in the usual way. All of these approximations result in a training cost of
O(M3+NM2)
, and then take
O(M)
time for the predictive mean for each test case, and
O(M2)
time for the predictive variance. Compare this to
O(N3)
training time and
O(N)
and
O(N2)
testing time for exact inference [1].
The deterministic inducing conditional (DIC) approximation, or the subset of regressors (SOR) approximation, results from assuming
Q~X,X=0
and
Q~∗,∗=0
, so the conditionals are deterministic. This can result in an underestimate of the predictive variance. One way to overcome the overconfidence of DIC is to only assume
Q~X,X=0
but let
Q~∗,∗=K∗,∗−Q∗,∗
be exact. This is called the deterministic training conditional (DTC). Lastly, the fully independent training conditional (FITC) approximation assumes
q(fX∣fZ)
is fully factorized. This throws away less uncertainty than the SOR and DTC methods, since it does not make any deterministic assumptions about the relationship between
fX
and
fZ
[1].
The simplest approach to selecting the inducing points from the training set is to throw away some of the data. In this case, we could pick random examples. However, intuitively it makes more sense to try to pick a subset that in some sense covers the original data, so it contains approximately the same information without redundancy. Clustering algorithms such as
k
-means are a popular heuristic approach. We can also use coreset methods which can provably find such an information preserving subset. Furthermore, we can approach learning the inducing points by treating them like kernel hyperparameters, and choosing them so as to maximize the log marginal likelihood [1].
References
Kevin P. Murphy (2023) Probabilistic Machine Learning: Advanced Topics. MIT Press.
Top comments (0)
Subscribe
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Top comments (0)