Representer theorem

From testwiki
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:

f↦E((x1,y1,f(x1)),…,(xn,yn,f(xn)))+g(β€–fβ€–).

Then, any minimizer of the empirical risk

fβˆ—=argminf∈Hk{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 1≀i≀n.

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 f∈Hk 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+β€–vβ€–2)β‰₯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)))=1nβˆ‘i=1n(f(xi)βˆ’yi)2,g(β€–fβ€–)=Ξ»β€–fβ€–2

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+h∈HkβŠ•span{ψp∣1≀p≀M}},(†)

i.e., we consider functions of the form f~=f+h, where f∈Hk and h is an unpenalized function lying in the span of a finite set of real-valued functions {ψp:π’³β†’β„βˆ£1≀p≀M}. 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βˆ—=argminf∈Hk{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 1≀i≀n, 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(yiβˆ’f(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(yiβˆ’f(xi))2+Ξ»β€–fβ€–β„‹2}

has the form

fβˆ—(x)=βˆ‘i=1nΞ±iβˆ—k(x,xi)

for some Ξ±βˆ—=(Ξ±1βˆ—,,Ξ±nβˆ—)βˆˆβ„n. Noting that

β€–fβ€–β„‹2=βŸ¨βˆ‘i=1nΞ±iβˆ—k(β‹…,xi),βˆ‘j=1nΞ±jβˆ—k(β‹…,xj)βŸ©β„‹=βˆ‘i=1nβˆ‘j=1nΞ±iβˆ—Ξ±jβˆ—βŸ¨k(β‹…,xi),k(β‹…,xj)βŸ©β„‹=βˆ‘i=1nβˆ‘j=1nΞ±iβˆ—Ξ±jβˆ—k(xi,xj),

we see that Ξ±βˆ— has the form

Ξ±βˆ—=argminΞ±βˆˆβ„n{βˆ‘i=1n(yiβˆ’βˆ‘j=1nΞ±jk(xi,xj))2+Ξ»β€–fβ€–β„‹2}=argminΞ±βˆˆβ„n{β€–yβˆ’AΞ±β€–2+λα⊺AΞ±}.

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

Ξ±βˆ—=argminΞ±βˆˆβ„n{α⊺(A⊺A+Ξ»A)Ξ±βˆ’2α⊺A⊺y}.

Since A⊺A+Ξ»A is positive definite, there is indeed a single global minimum for this expression. Let F(Ξ±)=α⊺(A⊺A+Ξ»A)Ξ±βˆ’2α⊺A⊺y 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(A⊺A+Ξ»A)Ξ±βˆ—βˆ’2A⊺y=0βŸΉΞ±βˆ—=(A⊺A+Ξ»A)βˆ’1A⊺y,

so the minimizer may be found via a linear solve.

See also

References

Template:Reflist