Representer theorem

From testwiki
Revision as of 19:01, 29 December 2024 by 2001:1970:5121:cd00:dc14:553:c7cb:1c38 (talk) (Applications: error of transposed in equation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description Template:More footnotes For computer science, in statistical learning theory, a representer theorem is any of several related results stating that a minimizer f* of a regularized empirical risk functional defined over a reproducing kernel Hilbert space can be represented as a finite linear combination of kernel products evaluated on the input points in the training set data.

Formal statement

The following Representer Theorem and its proof are due to Schölkopf, Herbrich, and Smola:[1]

Theorem: Consider a positive-definite real-valued kernel k:𝒳×𝒳 on a non-empty set 𝒳 with a corresponding reproducing kernel Hilbert space Hk. Let there be given

  • a training sample (x1,y1),,(xn,yn)𝒳×,
  • a strictly increasing real-valued function g:[0,), and
  • an arbitrary error function E:(𝒳×2)n{},

which together define the following regularized empirical risk functional on Hk:

fE((x1,y1,f(x1)),,(xn,yn,f(xn)))+g(f).

Then, any minimizer of the empirical risk

f*=argminfHk{E((x1,y1,f(x1)),,(xn,yn,f(xn)))+g(f)},(*)

admits a representation of the form:

f*()=i=1nαik(,xi),

where αi for all 1in.

Proof: Define a mapping

φ:𝒳Hkφ(x)=k(,x)

(so that φ(x)=k(,x) is itself a map 𝒳). Since k is a reproducing kernel, then

φ(x)(x)=k(x,x)=φ(x),φ(x),

where , is the inner product on Hk.

Given any x1,,xn, one can use orthogonal projection to decompose any fHk into a sum of two functions, one lying in span{φ(x1),,φ(xn)}, and the other lying in the orthogonal complement:

f=i=1nαiφ(xi)+v,

where v,φ(xi)=0 for all i.

The above orthogonal decomposition and the reproducing property together show that applying f to any training point xj produces

f(xj)=i=1nαiφ(xi)+v,φ(xj)=i=1nαiφ(xi),φ(xj),

which we observe is independent of v. Consequently, the value of the error function E in (*) is likewise independent of v. For the second term (the regularization term), since v is orthogonal to i=1nαiφ(xi) and g is strictly monotonic, we have

g(f)=g(i=1nαiφ(xi)+v)=g(i=1nαiφ(xi)2+v2)g(i=1nαiφ(xi)).

Therefore, setting v=0 does not affect the first term of (*), while it strictly decreases the second term. Consequently, any minimizer f* in (*) must have v=0, i.e., it must be of the form

f*()=i=1nαiφ(xi)=i=1nαik(,xi),

which is the desired result.

Generalizations

The Theorem stated above is a particular example of a family of results that are collectively referred to as "representer theorems"; here we describe several such.

The first statement of a representer theorem was due to Kimeldorf and Wahba for the special case in which

E((x1,y1,f(x1)),,(xn,yn,f(xn)))=1ni=1n(f(xi)yi)2,g(f)=λf2

for λ>0. Schölkopf, Herbrich, and Smola generalized this result by relaxing the assumption of the squared-loss cost and allowing the regularizer to be any strictly monotonically increasing function g() of the Hilbert space norm.

It is possible to generalize further by augmenting the regularized empirical risk functional through the addition of unpenalized offset terms. For example, Schölkopf, Herbrich, and Smola also consider the minimization

f~*=argmin{E((x1,y1,f~(x1)),,(xn,yn,f~(xn)))+g(f)f~=f+hHkspan{ψp1pM}},()

i.e., we consider functions of the form f~=f+h, where fHk and h is an unpenalized function lying in the span of a finite set of real-valued functions {ψp:𝒳1pM}. Under the assumption that the n×M matrix (ψp(xi))ip has rank M, they show that the minimizer f~* in () admits a representation of the form

f~*()=i=1nαik(,xi)+p=1Mβpψp()

where αi,βp and the βp are all uniquely determined.

The conditions under which a representer theorem exists were investigated by Argyriou, Micchelli, and Pontil, who proved the following:

Theorem: Let 𝒳 be a nonempty set, k a positive-definite real-valued kernel on 𝒳×𝒳 with corresponding reproducing kernel Hilbert space Hk, and let R:Hk be a differentiable regularization function. Then given a training sample (x1,y1),,(xn,yn)𝒳× and an arbitrary error function E:(𝒳×2)m{}, a minimizer

f*=argminfHk{E((x1,y1,f(x1)),,(xn,yn,f(xn)))+R(f)}()

of the regularized empirical risk admits a representation of the form

f*()=i=1nαik(,xi),

where αi for all 1in, if and only if there exists a nondecreasing function h:[0,) for which

R(f)=h(f).

Effectively, this result provides a necessary and sufficient condition on a differentiable regularizer R() under which the corresponding regularized empirical risk minimization () will have a representer theorem. In particular, this shows that a broad class of regularized risk minimizations (much broader than those originally considered by Kimeldorf and Wahba) have representer theorems.

Applications

Representer theorems are useful from a practical standpoint because they dramatically simplify the regularized empirical risk minimization problem (). In most interesting applications, the search domain Hk for the minimization will be an infinite-dimensional subspace of L2(𝒳), and therefore the search (as written) does not admit implementation on finite-memory and finite-precision computers. In contrast, the representation of f*() afforded by a representer theorem reduces the original (infinite-dimensional) minimization problem to a search for the optimal n-dimensional vector of coefficients α=(α1,,αn)n; α can then be obtained by applying any standard function minimization algorithm. Consequently, representer theorems provide the theoretical basis for the reduction of the general machine learning problem to algorithms that can actually be implemented on computers in practice.

The following provides an example of how to solve for the minimizer whose existence is guaranteed by the representer theorem. This method works for any positive definite kernel K, and allows us to transform a complicated (possibly infinite dimensional) optimization problem into a simple linear system that can be solved numerically.

Assume that we are using a least squares error function

E[(x1,y1,f(x1)),,(xn,yn,f(xn))]:=i=1n(yif(xi))2

and a regularization function g(x)=λx2 for some λ>0. By the representer theorem, the minimizer

f*=argminf{E[(x1,y1,f(x1)),,(xn,yn,f(xn))]+g(f)}=argminf{i=1n(yif(xi))2+λf2}

has the form

f*(x)=i=1nαi*k(x,xi)

for some α*=(α1*,,αn*)n. Noting that

f2=i=1nαi*k(,xi),j=1nαj*k(,xj)=i=1nj=1nαi*αj*k(,xi),k(,xj)=i=1nj=1nαi*αj*k(xi,xj),

we see that α* has the form

α*=argminαn{i=1n(yij=1nαjk(xi,xj))2+λf2}=argminαn{yAα2+λαAα}.

where Aij=k(xi,xj) and y=(y1,,yn). This can be factored out and simplified to

α*=argminαn{α(AA+λA)α2αAy}.

Since AA+λA is positive definite, there is indeed a single global minimum for this expression. Let F(α)=α(AA+λA)α2αAy and note that F is convex. Then α*, the global minimum, can be solved by setting αF=0. Recalling that all positive definite matrices are invertible, we see that

αF=2(AA+λA)α*2Ay=0α*=(AA+λA)1Ay,

so the minimizer may be found via a linear solve.

See also

References

Template:Reflist