dimensionality reduc1on
play

Dimensionality Reduc1on Machine Learning 10-601B Seyoung - PowerPoint PPT Presentation

Dimensionality Reduc1on Machine Learning 10-601B Seyoung Kim 1 Text document retrieval/labelling Represent each document by a high-dimensional vector in


  1. Dimensionality ¡Reduc1on ¡ Machine ¡Learning ¡10-­‑601B ¡ Seyoung ¡Kim ¡ 1 ¡

  2. Text ¡document ¡retrieval/labelling ¡ • Represent ¡each ¡document ¡by ¡a ¡high-­‑dimensional ¡vector ¡in ¡the ¡space ¡of ¡ words ¡ 2 ¡

  3. Image ¡retrieval/labelling ¡ 3 ¡

  4. Dimensionality ¡Bo;lenecks ¡ • Data ¡dimension ¡ – Input ¡variables ¡X: ¡High ¡ ¡ • 1-­‑5M ¡lexicon ¡token ¡in ¡text ¡documents ¡ • 1024 2 ¡pixels ¡of ¡a ¡projected ¡image ¡on ¡a ¡IR ¡camera ¡sensor ¡ • N 2 ¡expansion ¡factor ¡to ¡account ¡for ¡all ¡pairwise ¡correlaNons ¡ • 1,000,000 ¡geneNc ¡variants ¡in ¡a ¡human’s ¡genome ¡ • InformaNon ¡dimension: ¡Low ¡ – Number ¡of ¡free ¡parameters ¡describing ¡probability ¡densiNes ¡ ¡ • Unsupervised ¡learning ¡p(X) ¡ ¡ • Supervised ¡learning ¡p(Y|X): ¡the ¡predicNon ¡of ¡Y ¡depends ¡on ¡ “informaNon ¡dimension” ¡of ¡X ¡ ¡ 4 ¡

  5. Intui1on: ¡how ¡does ¡your ¡brain ¡store ¡these ¡ pictures? ¡ 5 ¡

  6. Brain ¡Representa1on ¡ 6 ¡

  7. Brain ¡Representa1on ¡ • Every ¡pixel? ¡ • Or ¡perceptually ¡meaningful ¡ structure? ¡ – Up-­‑down ¡pose ¡ ¡ – Le[-­‑right ¡pose ¡ – LighNng ¡direcNon ¡ So, ¡your ¡brain ¡successfully ¡ reduced ¡the ¡high-­‑dimensional ¡ inputs ¡to ¡an ¡intrinsically ¡3-­‑ dimensional ¡manifold! ¡ ¡ 7 ¡

  8. Principal ¡Component ¡Analysis ¡ • Areas ¡of ¡variance ¡in ¡data ¡are ¡where ¡items ¡can ¡be ¡best ¡discriminated ¡and ¡ key ¡underlying ¡phenomena ¡are ¡observed ¡ • If ¡two ¡items ¡or ¡dimensions ¡are ¡highly ¡correlated ¡or ¡dependent ¡ – They ¡are ¡likely ¡to ¡represent ¡highly ¡related ¡phenomena ¡ – We ¡want ¡to ¡combine ¡related ¡variables, ¡and ¡focus ¡on ¡uncorrelated ¡or ¡independent ¡ones, ¡especially ¡ those ¡along ¡which ¡the ¡observaNons ¡have ¡high ¡variance ¡ • We ¡look ¡for ¡the ¡phenomena ¡underlying ¡the ¡observed ¡covariance/co-­‑ dependence ¡in ¡a ¡set ¡of ¡variables ¡ • These ¡phenomena ¡are ¡called ¡“principal ¡components” ¡ 8 ¡

  9. An ¡example: ¡ 9 ¡

  10. Principal ¡Component ¡Analysis ¡ • The ¡new ¡variables/dimensions ¡ – Are ¡uncorrelated ¡with ¡one ¡another ¡ • Orthogonal ¡in ¡original ¡dimension ¡space ¡ Original ¡Variable ¡B ¡ PC ¡2 ¡ – Capture ¡as ¡much ¡of ¡the ¡original ¡variance ¡in ¡ PC ¡1 ¡ the ¡data ¡as ¡possible ¡ – Are ¡called ¡Principal ¡Components ¡ – Are ¡linear ¡combinaNons ¡of ¡the ¡original ¡ ones ¡ • Orthogonal ¡direcNons ¡of ¡greatest ¡ variance ¡in ¡data ¡ Original ¡Variable ¡A ¡ • ProjecNons ¡along ¡PC1 ¡ discriminate ¡the ¡data ¡most ¡along ¡ any ¡one ¡axis ¡ 10 ¡

  11. Principal ¡Component ¡Analysis ¡ First ¡principal ¡component ¡is ¡the ¡direcNon ¡ • of ¡greatest ¡variability ¡(covariance) ¡in ¡the ¡ data ¡ Original ¡Variable ¡B ¡ PC ¡2 ¡ PC ¡1 ¡ Second ¡is ¡the ¡next ¡orthogonal ¡ • (uncorrelated) ¡direcNon ¡of ¡greatest ¡ variability ¡ – So ¡first ¡remove ¡all ¡the ¡variability ¡along ¡the ¡first ¡component, ¡and ¡ then ¡find ¡the ¡next ¡direcNon ¡of ¡greatest ¡variability ¡ And ¡so ¡on ¡… ¡ • Original ¡Variable ¡A ¡ 11 ¡

  12. Eigen/diagonal ¡Decomposi1on ¡ • Let ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡be ¡a ¡ square ¡ matrix ¡ • Theorem : ¡Exists ¡an ¡ eigen ¡decomposi1on ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Unique for distinct diagonal eigen- ¡ ¡ values (cf. ¡matrix ¡diagonalizaNon ¡theorem) ¡ ¡ • Columns ¡of ¡ U ¡are ¡ eigenvectors ¡of ¡ S ¡ • Diagonal ¡elements ¡of ¡ ¡ ¡ ¡ ¡are ¡ eigenvalues ¡of ¡ ¡ 12 ¡

  13. Eigenvalues ¡& ¡Eigenvectors ¡ • For ¡symmetric ¡matrices, ¡eigenvectors ¡for ¡disNnct ¡eigenvalues ¡ are ¡ orthogonal ¡ Sv 1 = λ 1 v 1 , Sv 2 = λ 2 v 2 , and λ 1 ≠ λ 2 ⇒ v 1 • v 2 = 0 • All ¡eigenvalues ¡of ¡a ¡real ¡symmetric ¡matrix ¡are ¡ real . ¡ • All ¡eigenvalues ¡of ¡a ¡posiNve ¡semidefinite ¡matrix ¡are ¡ non-­‑ nega1ve ¡ 13 ¡

  14. Compu1ng ¡the ¡Components ¡ • ProjecNon ¡of ¡vector ¡ x ¡onto ¡an ¡axis ¡(dimension) ¡ u ¡is ¡ u T x ¡ • Assume ¡ X ¡is ¡a ¡normalized ¡ n x p ¡data ¡matrix ¡for ¡ n ¡samples ¡and ¡ p ¡features. ¡ DirecNon ¡of ¡greatest ¡variability ¡is ¡that ¡in ¡which ¡the ¡average ¡square ¡of ¡the ¡ projecNon ¡is ¡greatest: ¡ ¡ (1/n) ¡u T X T X u ¡ ¡ ¡ ¡ ¡ Maximize ¡ ¡ u T u ¡= ¡1 ¡ ¡ ¡ ¡ ¡ ¡ s.t ¡ ¡ ¡ ¡ ¡ ¡ 14 ¡

  15. Compu1ng ¡the ¡Components ¡ • ProjecNon ¡of ¡vector ¡ x ¡onto ¡an ¡axis ¡(dimension) ¡ u ¡is ¡ u T x ¡ • Assume ¡ X ¡is ¡a ¡normalized ¡ n x p ¡data ¡matrix ¡for ¡ n ¡samples ¡and ¡ p ¡features. ¡ DirecNon ¡of ¡greatest ¡variability ¡is ¡that ¡in ¡which ¡the ¡average ¡square ¡of ¡the ¡ projecNon ¡is ¡greatest: ¡ ¡ (1/n) ¡u T X T X u ¡ ¡ ¡ ¡ ¡ Maximize ¡ ¡ u T u ¡= ¡1 ¡ ¡ ¡ ¡ ¡ ¡ s.t ¡ ¡ ¡ ¡ ¡ Construct ¡Langrangian ¡ ¡(1/n) ¡ u T X T Xu ¡+ ¡ λ (1- u T u) ¡ ¡ ¡ ¡ Vector ¡of ¡parNal ¡derivaNves ¡set ¡to ¡zero ¡ 1/n ¡ X T Xu ¡ – ¡ λ u ¡ ¡= ¡0 ¡ ¡ ¡ ¡ ¡ ¡ ¡ 15 ¡

  16. Compu1ng ¡the ¡Components ¡ • ProjecNon ¡of ¡vector ¡ x ¡onto ¡an ¡axis ¡(dimension) ¡ u ¡is ¡ u T x ¡ • Assume ¡ X ¡is ¡a ¡normalized ¡ n x p ¡data ¡matrix ¡for ¡ n ¡samples ¡and ¡ p ¡features. ¡ DirecNon ¡of ¡greatest ¡variability ¡is ¡that ¡in ¡which ¡the ¡average ¡square ¡of ¡the ¡ projecNon ¡is ¡greatest: ¡ ¡ (1/n) ¡u T X T X u ¡ ¡ ¡ ¡ ¡ Maximize ¡ ¡ u T u ¡= ¡1 ¡ ¡ ¡ ¡ ¡ ¡ s.t ¡ ¡ ¡ ¡ ¡ Construct ¡Langrangian ¡ ¡(1/n) ¡ u T X T Xu ¡+ ¡ λ (1- u T u) ¡ ¡ ¡ ¡ Vector ¡of ¡parNal ¡derivaNves ¡set ¡to ¡zero ¡ 1/n ¡ X T Xu ¡ – ¡ λ u ¡ ¡= ¡0 ¡ ¡ ¡ ¡ ¡ ¡ ¡ or ¡equivalently ¡ Su ¡ – ¡ λ u ¡ ¡= ¡0 ¡(S ¡= 1/n ¡X T X : ¡covariance ¡matrix) ¡ ¡ ¡ As ¡ u ¡≠ ¡0 ¡then ¡ u ¡must ¡be ¡an ¡eigenvector ¡of ¡S ¡ with ¡eigenvalue ¡ ¡ λ 16 ¡

  17. Compu1ng ¡the ¡Components ¡ • ProjecNon ¡of ¡vector ¡ x ¡onto ¡an ¡axis ¡(dimension) ¡ u ¡is ¡ u T x ¡ • Assume ¡ X ¡is ¡a ¡normalized ¡ n x p ¡data ¡matrix ¡for ¡ n ¡samples ¡and ¡ p ¡features. ¡ DirecNon ¡of ¡greatest ¡variability ¡is ¡that ¡in ¡which ¡the ¡average ¡square ¡of ¡the ¡ projecNon ¡is ¡greatest: ¡ ¡ (1/n) ¡u T X T X u ¡ ¡ ¡ ¡ ¡ Maximize ¡ ¡ u T u ¡= ¡1 ¡ ¡ ¡ ¡ ¡ ¡ s.t ¡ ¡ ¡ ¡ ¡ Construct ¡Langrangian ¡ ¡(1/n) ¡ u T X T Xu ¡ – ¡ λ u T u ¡ ¡ ¡ ¡ Vector ¡of ¡parNal ¡derivaNves ¡set ¡to ¡zero ¡ 1/n ¡ X T Xu ¡ – ¡ λ u ¡ ¡= ¡0 ¡ ¡ ¡ ¡ or ¡equivalently ¡ Su ¡ – ¡ λ u ¡ ¡= ¡0 ¡(S ¡= 1/n ¡X T X : ¡covariance ¡matrix) ¡ ¡ ¡ ¡ ¡ ¡ As ¡ u ¡≠ ¡0 ¡then ¡ u ¡must ¡be ¡an ¡eigenvector ¡of ¡S ¡ with ¡eigenvalue ¡ ¡ λ – λ ¡is ¡the ¡principal ¡eigenvalue ¡of ¡the ¡ covariance ¡ matrix ¡S ¡ – The ¡eigenvalue ¡denotes ¡the ¡amount ¡of ¡variability ¡captured ¡along ¡that ¡dimension 17 ¡

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