

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The concept of low-dimensional representations in machine learning, specifically focusing on linear dimensionality reduction through principal component analysis (pca) and non-linear dimensionality reduction through locally linear embedding (lle). The importance of reducing dimensions, the difference between linear and non-linear techniques, and the algorithms used for each method.
Typology: Study Guides, Projects, Research
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Machine Learning (CS 5350/CS 6350) 27 Feb 2007
Often we want to find a representation of data from R D in some lower-dimenaional space, R F , for F D.
For F ∈ { 2 , 3 }, this is useful for visualization. For other F , it’s useful if we believe that the data is noisy, or
not ideal for our learning algorithm (eg., kNN).
There are two varieties of dimensionality reduction techniques: linear and non-linear. We will talk about
one example of each.
Linear Dimensionality Reduction: PCA
Have data matrix in X ∈ R N ×D
. Want to linearly project X into some Y ∈ R N ×F . We don’t want to lose
much “information.”
Two ways of deriving PCA:
(1) is standard, hence the name “principle component analysis” (a component is a basis vector).
First, center X so it has mean 0.
Now, what do we want? We want Y such that Y Y
is diagonal (so the basis is orthogonal) and so that
Y = ZX. From this, we get:
= (ZX)(ZX)
Z
)Z
Now, linear algebra (i.e., magic) tells us that if A is a symmetric matrix, then A = EDE
, where E is a
matrix of eigenvectors of A and D is a diagonal matrix of eigenvalues.
Letting A = XX
, we select Z to be the matrix of eigenvectors of XX
and D be the eigenvalues, so:
)Z
= Z(Z
DZ)Z
)D(ZZ
)
− 1 )D(ZZ
− 1 )
using the fact that the inverse of an orthogonal matrix is its transpose.
All you really need to know is that you first center your data, find the eigenvectors corresponding to the top
F eigenvalues, and then use these as the new basis for the data.
You can additionally show that PCA minimizes the reconstruction mean-squared error, within the constraint
of being an orthogonal linear projection.
Low-dimensional Representations 2
Nonlinear Dimensionality Reduction: LLE
Locally linear embedding is a “manifold learning” algorithm. A manifold is like a F dimensional space
warped to fit into a D > F dimensional space. Think about a partially folded piece of paper (swiss roll).
We want to “unfold” the manifold so that it lies in its true dimensionality, F. Of course, the problem is that
(a) we only have data from the manifold and (b) the data is noisy.
LLE attempts to unfold the manifold by assuming local linearity.
The algorithm works by considering each data point independently, and only in the context of its k nearest
neighbors. Then, we want to be able to reconstruct the original data point based only on its neighbors, using
a linear function. We then use these linear functions to project the data into low dimensional space.
Algorithm:
xn −
m∈Sn
wnmxm
2
subject to
m wnm^ = 1 for all^ n.
n
yn −
m∈Sn
wnmym
2
The optimal weights (from (2)) are invariant to rotations, rescalings and translations of a data point and its
neighbors.
The second step is a bunch of least squares problems, one for each data point. The third step can be solved
using eigen techniques. (Details in the paper.)