Docsity

Generalization Bounds for Kernel Methods: Feature Maps and Classifiers in Hilbert Spaces, Lecture notes of Mathematical Statistics

Toggle sidebar
bg1
�
� � �
��
�
� �
� �� �
� �
� �
� �
Lecture 30 Generalization bounds for kernel methods. 18.465
Let X ⊂ Rd be a compact subset. Assume x1, . . . , xn are i.i.d. and y1, . . . , yn = ±1 for classification and
[−1, 1] for regression. Assume we have a kernel K(x,y ) = ∞λiφi(x)φi(y), λi > 0.
i=1
Consider a map
x ∈ X �→ φ(x)=( λ1φ1(x), . . . , λkφk(x), . . .) = ( λkφk(x))k≥1 ∈ H
where H is a Hilbert space.
∞
Consider the scalar product in H: (u, v)H = i=1 uivi and �u�H = (u, v)H.
For x,y ∈ X ,
∞
(φ(x), φ(y)) = λiφi(x)φi(y) = K(x, y).
H
i=1
Function φ is called feature map.
Family of classifiers:
FH = {(w, z)H : �w�H ≤ 1}.
F = {(w, φ(x))H : �w�H ≤ 1} � f : X �→ R.
Algorithms:
(1) SVMs
n n
f(x) = αiK(xi, x) = ( αiφ(xi), φ(x))H
i=1 i=1
w
Here, instead of taking any w, we only take w as a linear combination of images of data points. We
have a choice of Loss function L:
• L(y, f (x)) = I(yf (x) ≤ 0) – classification
• L(y, f (x)) = (y − f(x))2 – regression
(2) Square-loss regularization
Assume an algorithm outputs a classifier from F (or FH), f(x) = (w, φ(x))H. Then, as in Lecture 20,
n n
1 � 1 �
P (yf(x) ≤ 0) ≤ Eϕδ (yf (x)) = ϕδ (yif(xi)) + Eϕδ (yf (x)) − ϕδ (yif(xi))
n n
i=1 i=1
n n
1 � 1 �
≤ nI(yif(xi) ≤ δ) + sup Eϕδ (yf(x)) − nϕδ (yif(xi))
i=1 f ∈F i=1
By McDiarmid’s inequality, with probability at least 1 − e−t
� � � ��
1 n1 n2t
sup Eϕδ (yf (x)) − ϕδ (yif(xi)) ≤ E sup Eϕδ (yf (x)) − ϕδ (yif(xi)) +
f ∈F n f∈F n n
i=1 i=1
79
pf2

Partial preview of the text

Download Generalization Bounds for Kernel Methods: Feature Maps and Classifiers in Hilbert Spaces and more Lecture notes Mathematical Statistics in PDF only on Docsity!

Lecture 30 Generalization bounds for kernel methods. 18.

Let X ⊂ R

d be a compact subset. Assume x 1 ,... , xn are i.i.d. and y 1 ,... , yn = ± 1 for classification and

[− 1 , 1] for regression. Assume we have a kernel K(x, y) =

∞ λiφi(x)φi(y), λi > 0. i=

Consider a map

x ∈ X �→ φ(x) = ( λ 1 φ 1 (x),... , λkφk(x),.. .) = ( λkφk(x))k≥ 1 ∈ H

where H is a Hilbert space.

∞ Consider the scalar product in H: (u, v)H = i= uivi and �u�H = (u, v)H.

For x, y ∈ X ,

∞

(φ(x), φ(y)) (^) H= λiφi(x)φi(y) = K(x, y).

i=

Function φ is called feature map.

Family of classifiers:

FH = {(w, z)H : �w�H ≤ 1 }.

F = {(w, φ(x))H : �w�H ≤ 1 } � f : X �→ R.

Algorithms:

(1) SVMs

n n

f (x) = αiK(xi, x) = ( αiφ(xi), φ(x))H

i=1 i=

w

Here, instead of taking any w, we only take w as a linear combination of images of data points. We

have a choice of Loss function L:

  • L(y, f (x)) = I(yf (x) ≤ 0) – classification
  • L(y, f (x)) = (y − f (x)) 2 - regression

(2) Square-loss regularization

Assume an algorithm outputs a classifier from F (or FH), f (x) = (w, φ(x))H. Then, as in Lecture 20,

n n 1 �^1 � P (yf (x) ≤ 0) ≤ Eϕδ (yf (x)) = ϕδ (yif (xi)) + Eϕδ (yf (x)) − ϕδ (yif (xi)) n n i=1 i=

n n 1

n

I(yif (xi) ≤ δ) + sup Eϕδ (yf (x)) − n

ϕδ (yif (xi))

i= f ∈F i=

By McDiarmid’s inequality, with probability at least 1 − e

−t

n 1

n 2 t sup Eϕδ (yf (x)) − ϕδ (yif (xi)) ≤ E sup Eϕδ (yf (x)) − ϕδ (yif (xi)) + f ∈F n^ f ∈F n^ n i=1 i=

Lecture 30 Generalization bounds for kernel methods. 18.

Using the symmetrization technique,

n 1 1 E sup εi.

n �

f ∈F i=1 i=

E(ϕδ (yf (x)) − 1) − (ϕδ (yif (xi)) − 1) ≤ 2 E sup ϕ (^) δ ( y (^) i f ( xi)) − 1 f ∈F^ n^ n

Since δ ·(ϕδ − 1) is a contraction,

n

n

n �

i=

n �

i=

2 E sup f ∈F

εi ϕδ (yif (xi)) − 1 ≤ 2 E sup εiyif (xi) δ (^) f ∈F

n

n n

�w�≤ 1

n

i=1 i=

E sup εif (xi) εi(w, φ(xi)) f ∈F

= = E sup (^) H δ δ n

n

i=1 (^) H

= E sup (w, εiφ(xi)) (^) H = E sup εiφ(xi) δn

�w�≤ 1 δn

n n

�w�≤ 1 i=

= E εiφ(xi), εiφ(xi) = E εiεj (φ(xi), φ(xi))H δn δn i=1 i=1 (^) H i,j

E εiεj K(xi, xj ) ≤ δn

= E εiεj K(xi, xj ) δn i,j i,j

n 4 4 EK(x 1 , x 1 ) = EK(xi, xi) = δn δ n i=

Putting everything together, with probability at least 1 − e −t ,

n 1 4 EK(x 1 , x 1 ) 2 t P (yf (x) ≤ 0) ≤ I(yif (xi) ≤ δ) + +. n δ n n i=

Before the contraction step, we could have used Martingale method again to have Eε only. Then EK(x 1 , x 1 )

1 n in the above bound will become K(xi, xi). n i=