local quadrature reconstruction on smooth manifolds

57
LOCAL QUADRATURE RECONSTRUCTION ON SMOOTH MANIFOLDS M.Tech Thesis Submitted by Bhuwan Dhingra Y8127167 To the Department of Electrical Engineering IIT Kanpur Supervisors – Prof Amitabha Mukerjee, Prof KS Venkatesh

Upload: ginger

Post on 14-Jan-2016

28 views

Category:

Documents


0 download

DESCRIPTION

Local Quadrature Reconstruction On Smooth Manifolds. M.Tech Thesis Submitted by Bhuwan Dhingra Y8127167 To the Department of Electrical Engineering IIT Kanpur Supervisors – Prof Amitabha Mukerjee , Prof KS Venkatesh. Examples. Image sets with a few degrees of freedom - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Local Quadrature Reconstruction On Smooth Manifolds

LOCAL QUADRATURE RECONSTRUCTION ON SMOOTH MANIFOLDS

M.Tech Thesis Submitted by

Bhuwan DhingraY8127167

To the Department of Electrical Engineering

IIT Kanpur

Supervisors – Prof Amitabha Mukerjee, Prof KS Venkatesh

Page 2: Local Quadrature Reconstruction On Smooth Manifolds

2

EXAMPLES Image sets with a few degrees of freedom

Disk-Shaped Planar Robot –

Each image lies in but has only 2 degrees of freedom Images sampled from a 2-d manifold

Other Examples:

n = 76 101 3, m = 1 n = 100 100 3, m = 2

n = 100 100 3, m = 2

Page 3: Local Quadrature Reconstruction On Smooth Manifolds

3

MANIFOLDS

An m-dimensional manifold is a topological space which resembles the Euclidean space near each point

The manifold itself may lie in but it is everywhere locally homeomorphic to Generally n >> m

Homeomorphism – A continuous mapping with a continuous inverse

Page 4: Local Quadrature Reconstruction On Smooth Manifolds

4

LATENT SPACE

Manifold points in Global Latent Vectors in

Cannot find global latent vectors for – Sphere, Torus, Cylinder etc. as these are not homeomorphic to any Euclidean space.

Page 5: Local Quadrature Reconstruction On Smooth Manifolds

5

DIMENSIONALITY REDUCTION

Linear – Principal Components Analysis (PCA) Finds linear subspace in direction of maximum data

variance

Page 6: Local Quadrature Reconstruction On Smooth Manifolds

6

NON-LINEAR DIMENSIONALITY REDUCTION (NLDR)

Kernel PCA (Scholkopf,1999) – Applies the kernel trick to project the data to a

high-dimensional space followed by normal PCA

ISOMAP (Tenenbaum,2000) – Preserves geodesic distances between points on

the manifold

LLE (Saul,2000) – Points are expressed as a linear combination of

their nearest neighbors, and the relationships are preserved in a global low-dimensional embedding

Page 7: Local Quadrature Reconstruction On Smooth Manifolds

7

NON-LINEAR DIMENSIONALITY REDUCTION (NLDR)

Page 8: Local Quadrature Reconstruction On Smooth Manifolds

8

PCA V NLDR

PCA

• Works only for data isometric to a hyperplane in

• Provides an explicit mapping between the latent space and manifold

NLDR

• Works for arbitrary non-linear manifolds

• Gives the embedding only for training points and no mapping between the two spaces

Page 9: Local Quadrature Reconstruction On Smooth Manifolds

9

OUT-OF-SAMPLE POINTS

Out-of-Sample Extension – find for new

Out-of-Sample Reconstruction – find for new

𝒙𝒒

𝑓 𝑀

𝑓 𝑆𝒚𝒒

Page 10: Local Quadrature Reconstruction On Smooth Manifolds

10

OUT OF SAMPLE EXTENSION

(Bengio,2004) – Cast several popular NLDR methods into a

unified framework as special cases of Kernel PCA with data dependent kernels

Nystrom method used to approximate the out-of-sample extension

(Strange,2011) –

Page 11: Local Quadrature Reconstruction On Smooth Manifolds

11

OUT OF SAMPLE RECONSTRUCTION

Applications -

Video Frame Interpolation

Page 12: Local Quadrature Reconstruction On Smooth Manifolds

12

OUT OF SAMPLE RECONSTRUCTION

Applications -

Generating Novel Views of an Object

Page 13: Local Quadrature Reconstruction On Smooth Manifolds

13

OUT OF SAMPLE RECONSTRUCTION

Applications -

Robot Motion PlanningTesting if a local path is collision free

Local Planner

Reconstruct to see if collision free

Page 14: Local Quadrature Reconstruction On Smooth Manifolds

14

OUT OF SAMPLE RECONSTRUCTION

Existing Methods –

Linear interpolation: Find k-nearest neighbors of new point Minimize

Reconstruction

Equivalent to fitting a hyper-plane through a small neighborhood on the manifold

Least Squares solution for finding optimal weights requires time

𝑘>𝑚

Page 15: Local Quadrature Reconstruction On Smooth Manifolds

15

OUT OF SAMPLE RECONSTRUCTION

Existing Methods –

Locally Smooth Manifold Learning (Dollar,2006):

Learn a Warping function on the manifold which given a point generates its neighbors using a global regression

Computation time of LSML increases as where is the total number of points on manifold

Page 16: Local Quadrature Reconstruction On Smooth Manifolds

16

LOCAL QUADRATURE RECONSTRUCTION (LQR)

Consider a local patch on -dimensional hypersurface in ()

Take to be the origin and the tangent space to be spanned by the first canonical vectors

𝒙=¿

Page 17: Local Quadrature Reconstruction On Smooth Manifolds

17

LOCAL DIFFERENTIAL GEOMETRIC MODEL

Smoothness of the manifold implies –

For our choice of coordinate system,

Hessian:

: Principal Directions – Span the tangent space: Principal Curvatures

Page 18: Local Quadrature Reconstruction On Smooth Manifolds

18

PRINCIPAL DIRECTIONS AND CURVATURES

Page 19: Local Quadrature Reconstruction On Smooth Manifolds

19

LOCAL DIFFERENTIAL GEOMETRIC MODEL

First unit vectors in chosen to lie along the principal directions

Ignore higher order terms to get Quadrature Embedding

Page 20: Local Quadrature Reconstruction On Smooth Manifolds

20

QUADRATURE EMBEDDING OF SMOOTH MANIFOLDS

Generalization to -dimensional Riemannian manifolds in (Tyagi,2012)

𝒛=[𝑧 1𝑧 2… 𝑧𝑚]∈𝑇 𝑝𝑀Tangent Space Components

Normal Space Components

Page 21: Local Quadrature Reconstruction On Smooth Manifolds

21

QUADRATIC REGRESSION

If tangent vectors are aligned with principal directions:

If not, we need cross-terms:

In general, for robust estimation:

Need points

…+

…+

�̂�𝑚+𝑖=h(𝑖) ( �̂� )

Page 22: Local Quadrature Reconstruction On Smooth Manifolds

22

MOTIVATION FOR LQR

Total curvature parameters in normal space above

Require prohibitively large number of points in for regression

Claim: Directions of high data variance exhibit high curvature

LQR extracts only principal components from the normal space

Page 23: Local Quadrature Reconstruction On Smooth Manifolds

23

LQR

• PCA

Tangent and Normal Space Estimation

• Least Squares estimation on first principal components

Linear Regression on Tangent Space

• Least Squares estimation along next principal components

Quadratic Regression on Normal Space

Page 24: Local Quadrature Reconstruction On Smooth Manifolds

24

TANGENT AND NORMAL SPACE ESTIMATION

Eigenvectors of PCA on -NN of image shown

• - Tangent Vectors

• - Normal Vectors

As sampling density on the manifold increases tangent space found by PCA approaches true tangent space (Tyagi,2012)

𝑘1=14

Page 25: Local Quadrature Reconstruction On Smooth Manifolds

25

2-D LINEAR LEAST SQUARES

𝑘2=7

Page 26: Local Quadrature Reconstruction On Smooth Manifolds

26

QUADRATIC REGRESSION

Test Imag

e

LQR

Linear

Page 27: Local Quadrature Reconstruction On Smooth Manifolds

27

ROTATING TEAPOT

𝑛=23028 ,𝑚=1

Page 28: Local Quadrature Reconstruction On Smooth Manifolds

28

REGULARIZATION

Important to avoid over fitting since is not much greater than

Linear Regression:

Quadratic Regression:

ℰ (𝑊 )=‖𝒚𝒒−∑𝑖

𝑤𝑖 𝒚 𝑖‖𝟐+𝜆𝐿𝑊

𝑇𝑊

Page 29: Local Quadrature Reconstruction On Smooth Manifolds

29

FREE PARAMETERS

Page 30: Local Quadrature Reconstruction On Smooth Manifolds

30

NUMBER OF NORMAL COMPONENTS

For setting we use the following rule –

are the eigenvalues of the covariance matrix for PCA

is set to the minimum value such that

is threshold of data variance we want to consider

Page 31: Local Quadrature Reconstruction On Smooth Manifolds

31

COMPLEXITY

-NN search: or

PCA:

Linear Regression:

Quadratic Regression:

Projection:

Page 32: Local Quadrature Reconstruction On Smooth Manifolds

32

ROTATING TEAPOT

Original Images

LQR

Linear Reconstruction

s

𝑀𝑆𝐸𝐿𝑄𝑅=80.44𝑀𝑆𝐸𝐿𝑖𝑛=99.97

Page 33: Local Quadrature Reconstruction On Smooth Manifolds

33

DISK-SHAPED PLANAR ROBOT

was set with a energy threshold

Page 34: Local Quadrature Reconstruction On Smooth Manifolds

34

DISK-SHAPED PLANAR ROBOT

Top – Original Images, Middle – LQR, Bottom - Linear

𝑘1=14 ,𝑘2=7 ,𝜆𝐿=10− 3 ,𝜆𝑄=1

Page 35: Local Quadrature Reconstruction On Smooth Manifolds

35

DISK SHAPED PLANAR ROBOT

Of 200 tested images, LQR outperformed Linear in 183

Size of test point proportional to error

Page 36: Local Quadrature Reconstruction On Smooth Manifolds

36

SOME FAILURES

Page 37: Local Quadrature Reconstruction On Smooth Manifolds

37

VIDEO COMPRESSION

Video Sequences with few degrees of freedom are low-dimensional trajectories in the space of all images

NLDR methods can be used to assign latent vectors to each frame

Total frames in latent vectors

in Transmitter:

latent vectors and frames

Reconstruct frames

NLDR

LQR

Retain only frames

Receiver:

𝑚≪𝑛

Page 38: Local Quadrature Reconstruction On Smooth Manifolds

38

FOREMAN VIDEO SEQUENCE

Page 39: Local Quadrature Reconstruction On Smooth Manifolds

39

FRAME INTERPOLATION

,

Page 40: Local Quadrature Reconstruction On Smooth Manifolds

40

FRAME INTERPOLATION

,

Page 41: Local Quadrature Reconstruction On Smooth Manifolds

41

FEATURES OF LQR

Advantages – Finds better reconstructions than linear

interpolation by considering second order terms in time

No training phase Can be applied to any latent space generated by

any NLDR algorithm

Page 42: Local Quadrature Reconstruction On Smooth Manifolds

42

FEATURES OF LQR

Limitation – Number of neighbors increases with the

dimensionality of the manifold as Need exponentially greater total number of

points on the manifold Computation time increases as or Over fitting due to large number of parameters

in regression

Cannot be used for manifolds with high value of Ex: MNIST digits dataset (), Face datasets ()

Page 43: Local Quadrature Reconstruction On Smooth Manifolds

43

THANK YOU

Page 44: Local Quadrature Reconstruction On Smooth Manifolds

44

APPENDIX

Page 45: Local Quadrature Reconstruction On Smooth Manifolds

45

EXAMPLES

Curves and surfaces -

n = 2m =

1

n = 3m =

1

n = 3m =

2

CircleSpiral

Swiss-Roll

Page 46: Local Quadrature Reconstruction On Smooth Manifolds

46

LATENT VECTORS

Manifolds which are also globally homeomorphic to can be endowed with an m-dimensional representation called its Latent Vectors

Latent vectors are not unique

Latent space may be known explicitly from function generating data, or can be found using Dimensionality Reduction

Page 47: Local Quadrature Reconstruction On Smooth Manifolds

47

DEFINITIONS

Page 48: Local Quadrature Reconstruction On Smooth Manifolds

48

LOCAL QUADRATURE RECONSTRUCTION (LQR)

Restricted to a small neighborhood on the manifold like linear interpolation

Fits a differential geometric model to this neighborhood

Better reconstruction than linear interpolation since we retain up to second order terms in the Taylor series expansion

Page 49: Local Quadrature Reconstruction On Smooth Manifolds

49

LQR

• Extract principal components from -nearest neighbors of (nearest neighbor of )

• First span the Tangent Space at (Tyagi,2012)• Next orthogonal to the Tangent Space

Tangent and Normal Space Estimation

• Linearly interpolate between Latent Space and Tangent Space to find projection of out-of-sample point onto

• Both these spaces are -dimensional• Need points in neighborhood

Linear Regression on Tangent Space

• Fit a second order equation along each of normal space components

• Least Squares regression over -nearest neighbors used to find optimal coefficients of the equation

• Need +1 points in the neighborhood

Quadratic Regression on Normal Space

Page 50: Local Quadrature Reconstruction On Smooth Manifolds

50

TANGENT AND NORMAL SPACE ESTIMATION (PCA)

: -nearest neighbors of

Eigendecomposition:

Estimated Tangent Space:

Estimated Normal Space:

𝑈=[𝒖𝟏𝒖𝟐…𝒖𝒌𝟏] 𝚲=𝒅𝒊𝒂𝒈(𝝀𝟏 ,𝝀𝟐…𝝀𝒌𝟏

)

𝑁 𝑝𝑀=𝑠𝑝𝑎𝑛(𝒖𝒎+𝟏 ,𝒖𝒎+𝟐…𝒖𝒎+𝒅)

Page 51: Local Quadrature Reconstruction On Smooth Manifolds

51

SWISS ROLL

𝑘1=18

Page 52: Local Quadrature Reconstruction On Smooth Manifolds

52

LINEAR REGRESSION

: -nearest neighbors of in latent space

Need points

Page 53: Local Quadrature Reconstruction On Smooth Manifolds

53

LEAST SQUARES WITH REGULARIZATION

We want to solve an overdetermined system of equations

Least Squares – Minimize

Regularization – Minimize

Solution –

Page 54: Local Quadrature Reconstruction On Smooth Manifolds

54

LQR V LINEAR RECONSTRUCTION

Page 55: Local Quadrature Reconstruction On Smooth Manifolds

55

IMAGE SETS

Modification – Use instead of for finding tangent space and

normal space components

Page 56: Local Quadrature Reconstruction On Smooth Manifolds

56

EXTRAPOLATION V INTERPOLATION

Page 57: Local Quadrature Reconstruction On Smooth Manifolds

57

PLANAR ARTICULATED ROBOT ARM

𝑀𝑆𝐸𝐿𝑄𝑅=8 .74 ,𝑀𝑆𝐸𝐿𝑖𝑛=9 .63