Top Banner
Andy Hsieh, Longqi Yang, Yin Cui, Tsung-Yi Lin , Serge Belongie, Deborah Estrin Connected Experience Lab, Cornell Tech AOL CONNECTED EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1
25

Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

Jul 12, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

AndyHsieh,LongqiYang,YinCui,Tsung-YiLin,SergeBelongie,DeborahEstrin

ConnectedExperienceLab,CornellTech

AOL CONNECTED EXPERIENCES LAB CORNELL TECH

CollaborativeMetricLearning

1

Page 2: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

CollaborativeMetricLearning

• Adifferentperspectiveoncollaborativefiltering

• Betteraccuracy

• ExtremelyefficientTop-Krecommendations

• Easytointerpretandextend

2

Page 3: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

User-ItemMatrixUsers

Items

3

Page 4: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

MatrixFactorization(MF)

Users

Items

Users

Items

4

Page 5: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

ImplicitFeedback

• Ubiquitousintoday’sonlineservices

• Onlypositivefeedbackisavailable

• TraditionalMFdoesnotwork

?

??

?

?

?

?

?

?

?

?

Click Thumbsup Like

5

Page 6: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

MatrixFactorizationforImplicitFeedback

• WeightedRegularizedMatrixFactorization(WRMF)[Hu08]

• ProbabilisticMatrixFactorization(PMF)[Salakhutdinov08]

• BayesianPersonalizedRanking(BPR)[Rendle09]

andmanymore…

6

Page 7: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

ThinkBeyondMatrix

?

??

?

?

?

?

?

?

?

?

• Nolongeraboutestimatingratings

• Butaboutmodelingtherelationships

betweendifferentuser/itempairs

Explicit Implicit

7

Page 8: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

ThinkBeyondMatrix

• Nolongeraboutestimatingratings

• Butaboutmodelingtherelationships

betweendifferentuser/itempairs

Explicit Implicit

8

Page 9: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

MetricLearning

9

Knownrelationships

Unknownrelationships

Page 10: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

CollaborativeMetricLearning

• Learnajointuser-itemdistancemetric.

• TheEuclideandistancesreflecttherelationshipsbetweenusers/items.

10

Page 11: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

BasedontheinherentTriangularInequalityofMetricLearning– IfAisclosetoB,andBisclosetoC,thenAisclosetoC.

• Fitthemodelwithimplicitfeedback

1. Anuserispulledclosertotheitemssheliked

2. Othersimilarusersarepulledcloser.

3. Theitemsuserslikedarealsopulledcloser.

• Top-KrecommendationsaresimplyKNN

search(awell-optimizedtask)

11

Page 12: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

12

BasedontheinherentTriangularInequalityofMetricLearning– IfAisclosetoB,andBisclosetoC,thenAisclosetoC.

• Fitthemodelwithimplicitfeedback

1. Anuserispulledclosertotheitemssheliked

2. Othersimilarusersarepulledcloser.

3. Theitemsuserslikedarealsopulledcloser.

• Top-KrecommendationsaresimplyKNN

search(awell-optimizedtask)

Page 13: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

13

BasedontheinherentTriangularInequalityofMetricLearning– IfAisclosetoB,andBisclosetoC,thenAisclosetoC.

• Fitthemodelwithimplicitfeedback

1. Anuserispulledclosertotheitemssheliked

2. Othersimilarusersarepulledcloser.

3. Theitemsuserslikedarealsopulledcloser.

• Top-KrecommendationsaresimplyKNN

search(awell-optimizedtask)

Page 14: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

CollaborativeLargeMarginNearestNeighbor

User

Positiveitem

Imposter

SafetyMargin

Gradients

Before After

*TheoutlineoffigureisinspiredbyWeinberger,KilianQ.,JohnBlitzer,andLawrenceSaul."Distancemetriclearningforlargemarginnearestneighborclassification." Advancesinneuralinformationprocessingsystems 18(2006):1473. 14

Page 15: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

PitfallsofMatrixFactorization(Dot-Product)

• Dot-Productviolatestriangleinequalitymisleadingembedding.

15

Page 16: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

PitfallsofMatrixFactorization(Dot-Product)

• Dot-Productviolatestriangleinequalitymisleadingembedding.

𝑉#$𝑉% = 0: doesnotreflectthattheyarebothlikedby𝑈*

𝑈#$𝑈% = 0:doesnotreflectthattheybothsharethesameinterestas𝑈*

16

Page 17: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

CollaborativeMetricLearningEmbedding

• Euclidiandistancefaithfullyreflectstherelativerelationships.

17

Page 18: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

IntegratingItemFeatures

• Usealearnablefunction(e.g.

Multi-LayerPerceptron)to

projectfeaturesintouser-item

embedding.

• Treattheprojectionsasaprior

foritems'locations.

18

Page 19: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

Evaluation

• 6DatasetsfromDifferentDomains

• Papers - CiteULike

• Books - BookCrossing

• Photography - Flickr

• Articles - Medium

• Movies - MovieLens

• Music - EchoNest

19

Page 20: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

Accuracy(Recall@50)

-40

-20

0

20

40

60

80

100

CiteULike BookCX Flickr Medium MovieLens EchoNest

Recall@50ImprovementsOverBPR(%)

WRMF WARP CML

**

**

*IndicatethatCML>thesecondbestalgorithmisstatisticallysignificantaccordingtoWilcoxonsignedranktest 20

Page 21: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

Accuracy(withItemFeatures)

-20

0

20

40

60

80

100

120

CiteULike BookCX Flickr Medium MovieLens

VBPR CDL CML+F

* **

*IndicatethatCML>thesecondbestalgorithmisstatisticallysignificantaccordingtoWilcoxonsignedranktest

Recall@50ImprovementsOverFactorizationMachine(%)

21

Page 22: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

Efficiency

• AlloptimizedwithLSHs

• CML’sthroughputisimprovedby106x

withonly2%reductioninaccuracy

• Over8xfasterthan(optimized)MF

modelsgiventhesameaccuracy

8xfaster

‘sarebruteforcesearch

22

Page 23: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

EmbeddingInterpretability

23

AB

C

A

B

C

Page 24: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

Conclusions

• Thenotionofuser-itemmatrixandmatrixfactorizationbecomeslessapplicablewithimplicitfeedback.• CMLisametriclearningmodelthathas• betteraccuracy,efficiency,interpretability,andextensibility.

• Applyingmetric-basedalgorithms,suchasK-means,andSVMs,tootherrecommendationproblems.

24

Page 25: Collaborative Metric Learning - Cornell Universityylongqi/presentation/HsiehYCLBE17Slides.pdf · EXPERIENCES LAB CORNELL TECH Collaborative Metric Learning 1. Collaborative Metric

25

Thankyou!

AOL CONNECTED EXPERIENCES LAB CORNELL TECH