Top Banner
Manifold learning: MDS and Isomap
28

Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Jan 14, 2016

Download

Documents

Nathan Allison
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: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Manifold learning: MDS and Isomap

Page 2: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Manifold learning

• A manifold is a topological space which is locally Euclidean.

Page 3: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Manifold learning

• A global geometric framework for nonlinear dimensionality reduction – Tenenbaum JB, de Silva V., and Langford JC

– Science, 290: 2319–2323, 2000

• Nonlinear Dimensionality Reduction by Locally Linear Embedding– Roweis and Saul

– Science, 2323-2326, 2000

Page 4: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Outline of lecture

• Intuition

• Linear method- PCA

• Linear method- MDS

• Nonlinear method- Isomap

• Summary

Page 5: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Why Dimensionality Reduction

• The curse of dimensionality

• Number of potential features can be huge– Image data: each pixel of an image

• A 64X64 image = 4096 features

– Genomic data: expression levels of the genes• Several thousand features

– Text categorization: frequencies of phrases in a document or in a web page

• More than ten thousand features

Page 6: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Why Dimensionality Reduction

• Data visualization and exploratory data analysis also need to reduce dimension– Usually reduce to 2D or 3D

• Two approaches to reduce number of features– Feature selection: select the salient features by some criteria

– Feature extraction: obtain a reduced set of features by a transformation of all features (PCA)

Page 7: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Deficiencies of Linear Methods

• Data may not be best summarized by linear combination of features– Example: PCA cannot discover 1D structure of a helix

-1-0.5

00.5

1

-1

-0.5

0

0.5

10

5

10

15

20

Page 8: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Intuition: how does your brain store these pictures?

Page 9: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Brain Representation

Page 10: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Brain Representation

• Every pixel?

• Or perceptually meaningful structure?– Up-down pose

– Left-right pose

– Lighting direction

So, your brain successfully reduced the high-dimensional inputs to an intrinsically 3-dimensional manifold!

Page 11: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Manifold Learning

• A manifold is a topological space which is locally Euclidean

• An example of nonlinear manifold:

Page 12: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Manifold Learning

• Discover low dimensional representations (smooth manifold) for data in high dimension.

• Linear approaches(PCA, MDS)

• Non-linear approaches (Isomap, LLE, others)

d

i Ry Y

XN

i Rx

latent

observed

Page 13: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Linear Approach- PCA

• PCA Finds subspace linear projections of input data.

Page 14: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Linear approach- PCA

• Main steps for computing PCs– Form the covariance matrix S.

– Compute its eigenvectors:

– The first d eigenvectors form the d PCs.

– The transformation G consists of the p PCs.

],,,[ 21 daaaG

piia 1

diia 1

Page 15: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Linear Approach- classical MDS

• MDS: Multidimensional scaling

• Borg and Groenen, 1997

• MDS takes a matrix of pair-wise distances and gives a mapping to Rd. It finds an embedding that preserves the interpoint distances, equivalent to PCA when those distance are Euclidean.

• Low dimensional data for visualization

Page 16: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Linear Approach- classical MDS

Te een

IP1

:matrix Centering

columneach frommean column thesubstract :X

roweach frommean row thesubstract :e

e

P

XP

111

101

210

021mean row

112

120

231

X

XPe

Example:

Page 17: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Linear Approach- classical MDS

ijjiee

ijji

xxDPP

xxD

)()(2

matrix distance:2

Page 18: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Linear Approach- classical MDS

Page 19: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Linear Approach- classical MDS

5.0

5.05.0

2

of rows thefrom,,,1for, Choose

2

? find tohow D,Given :Problem

)()(2

matrix distance:

ddi

T

ddddTddd

ee

i

ijjiee

ijji

Unix

UUUUDDPP

x

xxDPP

xxD

Page 20: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Linear Approach- classical MDS

• If Euclidean distance is used in constructing D, MDS is equivalent to PCA.

• The dimension in the embedded space is d, if the rank equals to d.

• If only the first p eigenvalues are important (in terms of magnitude), we can truncate the eigen-decomposition and keep the first p eigenvalues only.– Approximation error

Page 21: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Linear Approach- classical MDS

• So far, we focus on classical MDS, assuming D is the squared distance matrix.– Metric scaling

• How to deal with more general dissimilarity measures– Non-metric scaling

definite-semi positibe benot may :scaling Nonmetric

)()(2 :scaling Metric

ee

ijjiee

DPP

xxDPP

Solutions: (1) Add a large constant to its diagonal. (2) Find its nearest positive semi-definite matrix by setting all negative eigenvalues to zero.

Page 22: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Nonlinear Dimensionality Reduction

• Many data sets contain essential nonlinear structures that invisible to MDS– MDS preserves all interpoint distances and may fail to capture inherent

local geometric structure

• Resorts to some nonlinear dimensionality reduction approaches.– Kernel methods

• Depend on the kernels

• Most kernels are not data dependent

– Manifold learning• Data dependent kernels

Page 23: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Nonlinear Approaches- Isomap

• Constructing neighbourhood graph G

• For each pair of points in G, Computing shortest path distances ---- geodesic distances.

• Use Classical MDS with geodesic distances.

Euclidean distance Geodesic distance

Josh. Tenenbaum, Vin de Silva, John langford 2000

Page 24: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Sample points with Swiss Roll

• Altogether there are 20,000 points in the “Swiss roll” data set. We sample 1000 out of 20,000.

Page 25: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Construct neighborhood graph G

K- nearest neighborhood (K=7)

DG is 1000 by 1000 (Euclidean) distance matrix of two neighbors (figure A)

Page 26: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Compute all-points shortest path in G

Now DG is 1000 by 1000 geodesic distance matrix of two arbitrary points along the manifold (figure B)

Page 27: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

Find a d-dimensional Euclidean space Y (Figure c) to preserve the pariwise diatances.

Use MDS to embed graph in Rd

Page 28: Manifold learning: MDS and Isomap. Manifold learning A manifold is a topological space which is locally Euclidean.

The Isomap algorithm