ac ve learning and search on low rank matrices
play

Ac#ve Learning and Search on Low-Rank Matrices Dougal J. - PowerPoint PPT Presentation

Ac#ve Learning and Search on Low-Rank Matrices Dougal J. Sutherland with Barnabs Pczos and Jeff Schneider Collabora#ve predic#on NeHlix problem:


  1. Ac#ve ¡Learning ¡and ¡Search ¡ on ¡Low-­‑Rank ¡Matrices ¡ Dougal ¡J. ¡Sutherland ¡ with ¡Barnabás ¡Póczos ¡and ¡Jeff ¡Schneider ¡

  2. Collabora#ve ¡predic#on ¡ • “NeHlix ¡problem”: ¡how ¡can ¡we ¡predict ¡whether ¡users ¡ will ¡like ¡movies? ¡ • Basic ¡idea: ¡similar ¡users ¡should ¡have ¡similar ¡feelings ¡ about ¡similar ¡items ¡ • Actually: ¡assume ¡the ¡ra#ngs ¡matrix ¡is ¡low ¡rank ¡ 0.1 ¡ 2.5 ¡ Alice ¡ 3 ¡ 2 ¡ 3 ¡ 5 ¡ 2 ¡ Alice ¡ ≈ 0.1 ¡ 0.0 ¡ 0.6 ¡ 0.5 ¡ 0.5 ¡ ⋅ Bob ¡ 1.1 ¡ 3.6 ¡ Bob ¡ 4 ¡ 2 ¡ 5 ¡ 5 ¡ 3 ¡ 1.1 ¡ 0.8 ¡ 1.2 ¡ 1.9 ¡ 0.6 ¡ Carlos ¡ 5 ¡ 4 ¡ 5 ¡ 5 ¡ 3 ¡ 0.4 ¡ 4.7 ¡ Carlos ¡ Item ¡latent ¡factors ¡ V T Ra#ngs ¡matrix ¡ R User ¡latent ¡factors ¡ U

  3. Widely ¡applicable ¡ Erikkson ¡& ¡van ¡den ¡Hengel, ¡CVPR ¡2010 ¡ Adams, ¡Dahl, ¡& ¡Murray, ¡UAI ¡2010 ¡

  4. Ac$ve ¡collabora#ve ¡predic#on ¡ In ¡prac#ce, ¡we ¡rarely ¡have ¡a ¡fixed ¡training ¡set. ¡ Some#mes ¡we ¡can ¡choose ¡to ¡query ¡specific ¡points; ¡we ¡ want ¡the ¡algorithm ¡to ¡tell ¡us ¡which ¡ones ¡to ¡try. ¡

  5. Overall ¡process ¡ Par#ally ¡ observed ¡ input ¡ R O Imputed ¡ Point ¡to ¡query ¡ complete ¡ matrix ¡ ˆ R

  6. Learning ¡goals ¡ Predic'on : ¡minimize ¡predic#on ¡error ¡on ¡unknown ¡entries ¡ ¡ h R ij ) 2 | ( i, j ) 62 O i ( R ij � ˆ min E ¡ Model : ¡minimize ¡uncertainty ¡in ¡the ¡distribu#on ¡of ¡models ¡ ¡ min H [model | R O ] ¡ Magnitude ¡Search : ¡query ¡largest-­‑valued ¡points ¡possible ¡ ¡ X R ij max ¡ ( i,j ) ∈ A Search : ¡query ¡as ¡many ¡posi#ve ¡points ¡as ¡possible ¡ X max ( R ij ∈ +) ( i,j ) ∈ A

  7. Probabilis#c ¡Matrix ¡Factoriza#on ¡ Genera#ve ¡model ¡for ¡matrices ¡of ¡fixed ¡rank ¡ D ¡ (Salakhutdinov ¡& ¡Mnih, ¡NIPS ¡2007) ¡ ¡ Alice ¡ 0.1 ¡ 2.5 ¡ 2 ¡ 3 ¡ 3 ¡ 5 ¡ 2 ¡ Alice ¡ 0.1 ¡ 0 ¡ 0.6 ¡ 0.5 ¡ 0.5 ¡ ≈ ⋅ Bob ¡ 1.1 ¡ 3.6 ¡ Bob ¡ 4 ¡ 2 ¡ 5 ¡ 5 ¡ 3 ¡ 1.1 ¡ 0.8 ¡ 1.2 ¡ 1.9 ¡ 0.6 ¡ Carlos ¡ 5 ¡ 4 ¡ 5 ¡ 5 ¡ 3 ¡ 0.4 ¡ 4.7 ¡ Carlos ¡ Item ¡latent ¡factors ¡ V T User ¡latent ¡factors ¡ U Ra#ngs ¡matrix ¡ R U T i V j , σ 2 � 0 , σ 2 0 , σ 2 � � � � � R ij ∼ N U i ∼ N U I D V j ∼ N V I D 1 1 1 R � UV T � k 2 k U k 2 k V k 2 � � ln p ( U, V | R O ) = 2 σ 2 k I � F + F + F + C 2 σ 2 2 σ 2 U V

  8. PMF ¡Limita#ons ¡ 1 1 1 R � UV T � � k 2 k U k 2 k V k 2 � ln p ( U, V | R O ) = 2 σ 2 k I � F + F + F + C 2 σ 2 2 σ 2 U V • PMF ¡is ¡only ¡really ¡suited ¡to ¡a ¡point ¡es#mate ¡of ¡ U , ¡ V ¡ ¡ • To ¡do ¡ac#ve ¡learning, ¡we ¡need ¡some ¡informa#on ¡ about ¡our ¡uncertainty ¡in ¡the ¡model ¡and/or ¡the ¡ predic#ons ¡

  9. Varia#onal ¡PMF ¡ One ¡way ¡to ¡get ¡posterior ¡distribu#on ¡info: ¡ • Approximate ¡joint ¡distribu#on ¡ p ( U , ¡ V ) ¡ with ¡a ¡ parametric ¡family ¡ q ( U , ¡ V ) ¡ • Find ¡best ¡parameters ¡by ¡minimizing ¡KL ¡divergence ¡ q ( U, V ) Z KL ( q k p ) = q ( U, V ) ln p ( U, V | R O ) d { U, V } = � H [ q ] � E q [ln p ( U, V | R O )] N D M D 1 1 X X X X E q [ U 2 E q [ V 2 = � H [ q ] � C + ik ] + jk ] 2 σ 2 2 σ 2 U V i =1 k =1 j =1 k =1 D ! N M D D 1 X X X X X E q [ U ki V kj ] + R 2 + E q [ U ki V kj U ` i V ` j ] � 2 R ij ij 2 σ 2 i =1 j =1 ` =1 k =1 k =1

  10. Varia#onal ¡PMF: ¡full ¡normal ¡ • One ¡op#on: ¡normal ¡over ¡vector ¡of ¡entries ¡in ¡ U, ¡ V ¡ – Expecta#ons ¡we ¡need ¡are ¡in ¡closed ¡form ¡(Isserlis’ ¡Thm.) ¡ – Can ¡op#mize ¡with ¡projected ¡gradient ¡descent ¡ – O( D 2 ¡( N + M ) 2 ) ¡memory, ¡O( D 3 ¡( N + M ) 3 ) ¡#me ¡to ¡project ¡ U 11 ¡ U 12 ¡ U 21 ¡ U 22 ¡ U 32 ¡ U 32 ¡ V 11 ¡ V 12 ¡ V 21 ¡ V 22 ¡ U 11 ¡ U 11 ¡ U 12 ¡ U 12 ¡ U 21 ¡ U 21 ¡ U 22 ¡ U 22 ¡ U 31 ¡ U 31 ¡ Mean ¡ µ ¡ cov ¡ Σ ¡ U 32 ¡ D ( N + M ) ¡ ( D ( N + M )) 2 ¡ U 32 ¡ V 11 ¡ V 11 ¡ V 12 ¡ V 12 ¡ V 21 ¡ V 21 ¡ V 22 ¡ V 22 ¡

  11. Varia#onal ¡PMF: ¡fully ¡factorized ¡ • Another: ¡assume ¡each ¡element ¡of ¡ U ¡and ¡ V ¡is ¡independent ¡ – (Silva ¡& ¡Carin, ¡KDD ¡2012) ¡ – O( D ¡( N + M )) ¡memory, ¡projec#on ¡is ¡trivial ¡ U 11 ¡ U 12 ¡ U 21 ¡ U 22 ¡ U 32 ¡ U 32 ¡ V 11 ¡ V 12 ¡ V 21 ¡ V 22 ¡ U 11 ¡ U 11 ¡ U 12 ¡ U 12 ¡ U 21 ¡ U 21 ¡ U 22 ¡ U 22 ¡ U 31 ¡ U 31 ¡ Mean ¡ µ ¡ diagonal ¡cov ¡ Σ ¡ U 32 ¡ D ( N + M ) ¡ ( D ( N + M )) ¡ U 32 ¡ V 11 ¡ V 11 ¡ V 12 ¡ V 12 ¡ V 21 ¡ V 21 ¡ V 22 ¡ V 22 ¡

  12. Varia#onal ¡PMF: ¡matrix ¡normal ¡ • In ¡between: ¡matrix ¡normal ¡over ¡stacked ¡ U, ¡ V ¡ – Decompose ¡cov ¡into ¡user/item ¡covariance ¡+ ¡latent ¡d ¡covariance ¡ – Expecta#ons ¡/ ¡gradient ¡descent ¡basically ¡the ¡same ¡ – O( D 2 ¡+ ¡( N + M ) 2 ) ¡memory, ¡O( D 3 ¡+ ¡( N + M ) 3 ) ¡#me ¡to ¡project ¡ U 11 ¡ U 12 ¡ U 1 ¡ U 2 ¡ U 3 ¡ V 1 ¡ V 2 ¡ U 21 ¡ U 1 ¡ U 22 ¡ 1 ¡ 2 ¡ U 2 ¡ U 31 ¡ Mean ¡ µ ¡ ⊗ 1 ¡ U 3 ¡ U 32 ¡ D ( N + M ) ¡ 2 ¡ V 1 ¡ V 11 ¡ V 2 ¡ V 12 ¡ V 21 ¡ column ¡cov ¡ Ω ¡ row ¡cov ¡ Σ ¡ D 2 ¡ V 22 ¡ ( N + M ) 2 ¡

  13. Markov ¡chain ¡Monte ¡Carlo ¡ Another ¡way ¡to ¡get ¡posterior ¡info ¡for ¡PMF ¡is ¡to ¡get ¡ samples ¡from ¡it ¡(approximately, ¡asympto#cally…). ¡ BPMF ¡ (Salakhutdinov ¡& ¡Mnih, ¡ICML ¡2008) ¡lets ¡normal ¡priors ¡on ¡ U ¡ and ¡ V ¡have ¡arbitrary ¡means/covariances, ¡with ¡ Gaussian-­‑Wishart ¡hyperpriors. ¡ – Can ¡sample ¡through ¡Gibbs ¡ – We ¡use ¡Hamiltonian ¡MCMC ¡with ¡the ¡ N o-­‑ U -­‑ T urn ¡ S ampler ¡ (Hoffman ¡& ¡Gelman, ¡JMLR ¡in ¡press) ¡

  14. Myopic ¡selec#on ¡criteria ¡ – Predic'on: ¡element ¡with ¡highest ¡variance ¡(uncertainty ¡sampling) ¡ ¡ arg max ( i,j ) Var[ R ij ] – Model: ¡? ¡ ¡ – Magnitude ¡search: ¡element ¡with ¡highest ¡mean ¡ ¡ arg max ( i,j ) E [ R ij ] ¡ – Search: ¡element ¡with ¡highest ¡probability ¡of ¡being ¡posi#ve ¡ arg max ( i,j ) P [ R ij ∈ +]

  15. Lookahead ¡criteria ¡ Integrate ¡over ¡possible ¡outcomes ¡ (Garneq ¡et ¡al., ¡ICML ¡2012) ¡ ¡ ¡ Z dˆ P ( R ij = x ) E [ f ( q ) | R O , R ij = x ] x – Predic'on: ¡ ¡entropy ¡of ¡predicted ¡matrix ¡ ¡ f ( q ) = H [ R ] – Model: ¡entropy ¡of ¡posterior ¡over ¡ U ¡and ¡ V ¡ ¡ f ( q ) = H [ U, V ] – Magnitude ¡search: ¡mean ¡of ¡found ¡elements ¡ ¡ f ( q ) = R ij + ( k,l ) ∈ P − ( i,j ) E [ R kl ] max – Search: ¡ expected ¡number ¡of ¡posi#ves ¡found ¡ f ( q ) = ( R ij ∈ +) + ( k,l ) ∈ P − ( i,j ) P ( R kl ∈ +) max

  16. Other ¡work ¡ • Only ¡deals ¡with ¡ Predic'on ¡goal ¡ ¡ • Substan#al ¡amount ¡of ¡work ¡on ¡ac#ve ¡learning ¡for ¡ recommender ¡systems, ¡especially ¡the ¡new ¡user ¡case ¡ ¡ • Liqle ¡for ¡general ¡matrix ¡factoriza#on ¡serngs: ¡ – Silva ¡& ¡Carin, ¡KDD ¡2012 ¡ • assumes ¡fully ¡factorized ¡distribu#on: ¡more ¡limited ¡model ¡ • handles ¡much ¡larger ¡datasets ¡ – Rish ¡& ¡Tesauro, ¡ISAIM ¡2008 ¡workshop ¡ • uses ¡max-­‑margin ¡matrix ¡factoriza#on ¡ • picks ¡points ¡near ¡the ¡boundary ¡

  17. Toy ¡problems ¡ Matrix ¡normal ¡varia#onal ¡ MCMC ¡ 700 1 . 8 600 1 . 6 500 1 . 4 400 1 . 2 300 1 . 0 200 0 . 8 0 . 6 100 0 . 4 0 Var[ R ij ] Var q [ R ij ] − 50 . 0 − 60 − 50 . 1 − 70 − 50 . 2 − 80 − 50 . 3 − 90 − 50 . 4 − 100 − 50 . 5 − 110 − 50 . 6 − 120 − 50 . 7 − 130 − 50 . 8 E [ H [ R ]] E q [ H [ U, V ]]

  18. Toy ¡problems ¡ Predic'on ¡results ¡on ¡10x10 ¡rank-­‑4 ¡matrices, ¡vals ¡1 ¡to ¡5. ¡

  19. Toy ¡problems ¡ Predic'on ¡results ¡on ¡10x10 ¡rank-­‑4 ¡matrices, ¡vals ¡1 ¡to ¡5. ¡

  20. Toy ¡problems ¡ Search ¡ results ¡on ¡10x10 ¡rank-­‑4 ¡matrices, ¡vals ¡1 ¡to ¡5. ¡

  21. MovieLens ¡ Most ¡of ¡MovieLens-­‑100k: ¡472 ¡users ¡x ¡413 ¡movies, ¡~60k ¡ ra#ngs. ¡Start ¡with ¡5% ¡known; ¡test ¡on ¡a ¡different ¡5%. ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend