20
SVM+ Learning using privileged information Learning with teacher content adapted from: V. Vapnik and A. Vashist, "A new learning paradigm: Learning using privileged information" , Neural Networks, 2009, pp.544-557. Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL

SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

SVM+

Learning using privileged informationLearning with teacher

content adapted from: V. Vapnik and A. Vashist, "A new learning paradigm: Learning using

privileged information", Neural Networks, 2009, pp.544-557.

Zoya GavrilovNov. 9, 2012

Vision Reading Group PresentationCSAIL

Page 2: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

SVM

SVM+

(x1, y1), . . . , (xl, yl), xi 2 X, yi 2 {�1, 1}

(x1, x⇤1, y1), . . . , (xl, x

⇤l , yl), xi 2 X,x

⇤i 2 X

⇤, yi 2 {�1, 1}

training data

LUPI (learning using privileged information) paradigm for SVM:

additional information about training instances provided only

during training (NOT available during testing),

hence “privileged”

Page 3: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

examples of privileged information

1) y: outcome of a treatment in a yearx: current symptoms of a patientx*: development of symptoms in 3 months, 6 months, 9 months

2)y: whether a biopsy image is cancerous or non-cancerousx: images described in pixel spacex*: report by a pathologist describing the pictures using a high level holistic languageGoal: find a good classification rule in pixel space to make an accurate diagnosis without consulting with a pathologist

3) y: prediction of whether exchange rate will go up or down at moment tx: observations about the rate before moment tx*: (obtained form historical data) observations about rates after moment t

Page 4: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

Motivation: parameter estimation

in separable case, have to estimate n parameters of w

to find optimal hyperplane in non-separable case, one has to estimate extra terms corresponding to the slack variables (as many as the training instances), for a total of n + l parameters

R(w, b, ✏) =1

2< w,w > +C

lX

i=1

✏i

O(h/l)

O(ph/l)

convergence rate:

h: VC dimension of admissible set of hyperplanes

Page 5: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

Oracle SVM

suppose there exists an oracle function: ✏i = ✏(xi)

yi[< w, zi > +b] � 1� ✏isuch that: 8i = 1, . . . , l

in the corresponding SVM+ setting, let the teacher supply us with triplets:

(x1, ✏1, y1), . . . , (xl, ✏l, yl)

then just as in separable case, have to estimate only n parameters

functional to minimize:

subject to:

zi = �(xi) 2 Z

R(w, b, ✏) =1

2< w,w >

yi[< w, zi > +b] � ri8i = 1, . . . , l

known

Page 6: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

Motivation: parameter estimation

in separable case, have to estimate n parameters of w

to find optimal hyperplane in non-separable case, one has to estimate extra terms corresponding to the slack variables (as many as the training instances), for a total of n + l parameters

O(h/l)

O(ph/l)

convergence rate:

h: VC dimension of admissible set of hyperplanesh*: VC dimension of admissible set of correcting functions

Oracle SVM case: O(p

h⇤/l)

Page 7: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

SVM

SVM+

R(w, b, ✏) =1

2< w,w > +C

lX

i=1

✏ifunctional to minimize:

✏i � 0, i = 1, . . . , lsubject to:

R(w,w⇤, b, b⇤) =1

2< w,w > +

2< w⇤, w⇤ > +C

lX

i=1

[< w⇤, z⇤i > +b⇤]

yi[< w, zi > +b] � 1� ✏i

zi = �(xi) 2 Z

✏i = [(w⇤, z⇤i ) + b⇤]

z

⇤i = �

⇤(x⇤i ) 2 Z

inner product defined in Z space

yi[< w, zi > +b] � 1� [(w⇤, z⇤i ) + b⇤]

[< w⇤, z⇤i > +b⇤] � 0, i = 1, . . . , l

Page 8: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

SVM

L(w, b, ✏,↵,�) =1

2< w,w > +C

lX

i=1

✏i �lX

i=1

↵i(yi[< w, zi > +b]� 1 + ✏i)�lX

i=1

�i✏i

�lX

i=1

↵i(yi[< w, zi > +b]� 1 + [< w⇤, z⇤i > +b⇤])�lX

i=1

�i[< w⇤, z⇤i > +b⇤]

✏i = [(w⇤, z⇤i ) + b⇤]SVM+

L(w, b, w⇤, b⇤,↵,�) =1

2< w,w > +

2< w⇤, w⇤ > +C

lX

i=1

[< w⇤, z⇤i > +b⇤]

primal

very similar mathematically: quadratic optimization problem with similar constraints, but requires

tuning 4 hyperparameters (instead of 2)

min max

min max

Page 9: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

SVM

R(↵) =lX

i=1

↵i �1

2

lX

i,j=1

↵i↵jyiyjK(xi, xj)

subject to:

dual:

R(↵,�) =lX

i=1

↵i �1

2

lX

i,j=1

↵i↵jyiyjK(xi, xj)�1

2�

lX

i,j=1

(↵i + �i � C)(↵j + �j � C)K⇤(x⇤i , x

⇤j )

lX

i=1

↵iyi = 0

lX

i=1

↵iyi = 0

SVM+

lX

i=1

(↵i + �i � C) = 0 ↵i � 0,�i � 0

0 ↵i C

max

max

dual

Page 10: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

R(↵,�) =lX

i=1

↵i �1

2

lX

i,j=1

↵i↵jyiyjK(xi, xj)�1

2�

lX

i,j=1

(↵i + �i � C)(↵j + �j � C)K⇤(x⇤i , x

⇤j )

lX

i=1

↵iyi = 0lX

i=1

(↵i + �i � C) = 0 ↵i � 0,�i � 0

(↵i + �i � C) = 0, 8i = 1, .., l

admissible SVM+ solutions contain SVM solution

occurs when:

back to:

lX

i=1

↵iyi = 0 0 ↵i C

max

consider case: � # 0 reject privileged informationsimilarity measures in correcting space not

appropriateR(↵,�)then max of:

Page 11: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

R(↵,�) =lX

i=1

↵i �1

2

lX

i,j=1

↵i↵jyiyjK(xi, xj)�1

2�

lX

i,j=1

(↵i + �i � C)(↵j + �j � C)K⇤(x⇤i , x

⇤j )

decision and correcting functions

max

2 different kernels define similarity measures between objects in 2 different spaces

xi 2 X, i = 1, . . . , l

f(x) =lX

i=1

yi↵iK(xi, x) + b

f

⇤(x⇤) =1

lX

i=1

(↵i + �i � C)K⇤(x⇤i , x

⇤) + b

x

⇤i 2 X

⇤, i = 1, . . . , l

decision space correcting space

depends directly only on kernel in decision space BUT alpha depends on similarity measures in both spaces

decision function:

correcting function:

Page 12: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

Extension: non-smooth model for slacks

Page 13: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

Extension: privileged information not available for all examples

Page 14: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

Extension: multi-space privileged information

Page 15: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

dSVM+

Page 16: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

examples: advanced technical model as privileged information

problem statement: classification of proteins (hierarchical scheme of organization, to define evolutionary relations)input: amino-acid sequencesoutput: classification (position in hierarchy)

note: human experts construct hierarchies according to 3D protein structures

privileged information: 3D-structures- obtaining this is a very hard and time consuming problem

similarity measures: profile kernel for matching amino-acid sequences; MAMMOTH measure for matching 3D structures

Page 17: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

examples: future events as privileged information

problem statement: time series predictioninput: historical information about the values of time series up to moment toutput: (quantitative prediction - regression framework) value of time series at moment t + del(t); OR (qualitative prediction - pattern recognition) whether time series at moment t + del(t) will be larger/smaller than at moment t

note: human experts construct hierarchies according to 3D protein structures

privileged information: future events

Page 18: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

examples: holistic description as privileged information

problem statement: MNIST digit recognition (5 vs 8)input: 10 by 10 pixel imagesoutput: classification

privileged information: holistic (poetic) descriptions provided by an independent expert

translated into 21-dimensional feature vectors, with entries like: two-part-ness (0-5), tilting to the right (0-3), aggressiveness (0-2), stability (0-3), uniformity (0-3), etc.

Page 19: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

examples: holistic description as privileged information

Page 20: SVM+ - MITweb.mit.edu/zoya/www/SVM+.pdf · Zoya Gavrilov Nov. 9, 2012 Vision Reading Group Presentation CSAIL. SVM SVM+ (x 1,y 1),...,(x l,y l),x i 2 X,y i 2 {1,1} (x 1,x

final remarks by Vapnik

“We considered a new learning paradigm, the LUPI paradigm which allows one to introduce in the machine learning process, human elements of teaching: teacher’s remarks, explanations, analogy, and so on.”

“These sort of ideas lead to an integration, in learning techniques, of elements of an exact science and humanities, an exact science and emotions...”