- Source: Semidefinite embedding
Maximum Variance Unfolding (MVU), also known as Semidefinite Embedding (SDE), is an algorithm in computer science that uses semidefinite programming to perform non-linear dimensionality reduction of high-dimensional vectorial input data.
It is motivated by the observation that kernel Principal Component Analysis (kPCA) does not reduce the data dimensionality, as it leverages the Kernel trick to non-linearly map the original data into an inner-product space.
Algorithm
MVU creates a mapping from the high dimensional input vectors to some low dimensional Euclidean vector space in the following steps:
A neighbourhood graph is created. Each input is connected with its k-nearest input vectors (according to Euclidean distance metric) and all k-nearest neighbors are connected with each other. If the data is sampled well enough, the resulting graph is a discrete approximation of the underlying manifold.
The neighbourhood graph is "unfolded" with the help of semidefinite programming. Instead of learning the output vectors directly, the semidefinite programming aims to find an inner product matrix that maximizes the pairwise distances between any two inputs that are not connected in the neighbourhood graph while preserving the nearest neighbors distances.
The low-dimensional embedding is finally obtained by application of multidimensional scaling on the learned inner product matrix.
The steps of applying semidefinite programming followed by a linear dimensionality reduction step to recover a low-dimensional embedding into a Euclidean space were first proposed by Linial, London, and Rabinovich.
Optimization formulation
Let
X
{\displaystyle X\,\!}
be the original input and
Y
{\displaystyle Y\,\!}
be the embedding. If
i
,
j
{\displaystyle i,j\,\!}
are two neighbors, then the local isometry constraint that needs to be satisfied is:
|
X
i
−
X
j
|
2
=
|
Y
i
−
Y
j
|
2
{\displaystyle |X_{i}-X_{j}|^{2}=|Y_{i}-Y_{j}|^{2}\,\!}
Let
G
,
K
{\displaystyle G,K\,\!}
be the Gram matrices of
X
{\displaystyle X\,\!}
and
Y
{\displaystyle Y\,\!}
(i.e.:
G
i
j
=
X
i
⋅
X
j
,
K
i
j
=
Y
i
⋅
Y
j
{\displaystyle G_{ij}=X_{i}\cdot X_{j},K_{ij}=Y_{i}\cdot Y_{j}\,\!}
). We can express the above constraint for every neighbor points
i
,
j
{\displaystyle i,j\,\!}
in term of
G
,
K
{\displaystyle G,K\,\!}
:
G
i
i
+
G
j
j
−
G
i
j
−
G
j
i
=
K
i
i
+
K
j
j
−
K
i
j
−
K
j
i
{\displaystyle G_{ii}+G_{jj}-G_{ij}-G_{ji}=K_{ii}+K_{jj}-K_{ij}-K_{ji}\,\!}
In addition, we also want to constrain the embedding
Y
{\displaystyle Y\,\!}
to center at the origin:
0
=
|
∑
i
Y
i
|
2
⇔
(
∑
i
Y
i
)
⋅
(
∑
i
Y
i
)
⇔
∑
i
,
j
Y
i
⋅
Y
j
⇔
∑
i
,
j
K
i
j
{\displaystyle 0=|\sum _{i}Y_{i}|^{2}\Leftrightarrow (\sum _{i}Y_{i})\cdot (\sum _{i}Y_{i})\Leftrightarrow \sum _{i,j}Y_{i}\cdot Y_{j}\Leftrightarrow \sum _{i,j}K_{ij}}
As described above, except the distances of neighbor points are preserved, the algorithm aims to maximize the pairwise distance of every pair of points. The objective function to be maximized is:
T
(
Y
)
=
1
2
N
∑
i
,
j
|
Y
i
−
Y
j
|
2
{\displaystyle T(Y)={\dfrac {1}{2N}}\sum _{i,j}|Y_{i}-Y_{j}|^{2}}
Intuitively, maximizing the function above is equivalent to pulling the points as far away from each other as possible and therefore "unfold" the manifold. The local isometry constraint
Let
τ
=
m
a
x
{
η
i
j
|
Y
i
−
Y
j
|
2
}
{\displaystyle \tau =max\{\eta _{ij}|Y_{i}-Y_{j}|^{2}\}\,\!}
where
η
i
j
:=
{
1
if
i
is a neighbour of
j
0
otherwise
.
{\displaystyle \eta _{ij}:={\begin{cases}1&{\mbox{if}}\ i{\mbox{ is a neighbour of }}j\\0&{\mbox{otherwise}}.\end{cases}}}
prevents the objective function from diverging (going to infinity).
Since the graph has N points, the distance between any two points
|
Y
i
−
Y
j
|
2
≤
N
τ
{\displaystyle |Y_{i}-Y_{j}|^{2}\leq N\tau \,\!}
. We can then bound the objective function as follows:
T
(
Y
)
=
1
2
N
∑
i
,
j
|
Y
i
−
Y
j
|
2
≤
1
2
N
∑
i
,
j
(
N
τ
)
2
=
N
3
τ
2
2
{\displaystyle T(Y)={\dfrac {1}{2N}}\sum _{i,j}|Y_{i}-Y_{j}|^{2}\leq {\dfrac {1}{2N}}\sum _{i,j}(N\tau )^{2}={\dfrac {N^{3}\tau ^{2}}{2}}\,\!}
The objective function can be rewritten purely in the form of the Gram matrix:
T
(
Y
)
=
1
2
N
∑
i
,
j
|
Y
i
−
Y
j
|
2
=
1
2
N
∑
i
,
j
(
Y
i
2
+
Y
j
2
−
Y
i
⋅
Y
j
−
Y
j
⋅
Y
i
)
=
1
2
N
(
∑
i
,
j
Y
i
2
+
∑
i
,
j
Y
j
2
−
∑
i
,
j
Y
i
⋅
Y
j
−
∑
i
,
j
Y
j
⋅
Y
i
)
=
1
2
N
(
∑
i
,
j
Y
i
2
+
∑
i
,
j
Y
j
2
−
0
−
0
)
=
1
N
(
∑
i
Y
i
2
)
=
1
N
(
T
r
(
K
)
)
{\displaystyle {\begin{aligned}T(Y)&{}={\dfrac {1}{2N}}\sum _{i,j}|Y_{i}-Y_{j}|^{2}\\&{}={\dfrac {1}{2N}}\sum _{i,j}(Y_{i}^{2}+Y_{j}^{2}-Y_{i}\cdot Y_{j}-Y_{j}\cdot Y_{i})\\&{}={\dfrac {1}{2N}}(\sum _{i,j}Y_{i}^{2}+\sum _{i,j}Y_{j}^{2}-\sum _{i,j}Y_{i}\cdot Y_{j}-\sum _{i,j}Y_{j}\cdot Y_{i})\\&{}={\dfrac {1}{2N}}(\sum _{i,j}Y_{i}^{2}+\sum _{i,j}Y_{j}^{2}-0-0)\\&{}={\dfrac {1}{N}}(\sum _{i}Y_{i}^{2})={\dfrac {1}{N}}(Tr(K))\\\end{aligned}}\,\!}
Finally, the optimization can be formulated as:
Maximize
T
r
(
K
)
subject to
K
⪰
0
,
∑
i
j
K
i
j
=
0
and
G
i
i
+
G
j
j
−
G
i
j
−
G
j
i
=
K
i
i
+
K
j
j
−
K
i
j
−
K
j
i
,
∀
i
,
j
where
η
i
j
=
1
,
{\displaystyle {\begin{aligned}&{\text{Maximize}}&&Tr(\mathbf {K} )\\&{\text{subject to}}&&\mathbf {K} \succeq 0,\sum _{ij}\mathbf {K} _{ij}=0\\&{\text{and}}&&G_{ii}+G_{jj}-G_{ij}-G_{ji}=K_{ii}+K_{jj}-K_{ij}-K_{ji},\forall i,j{\mbox{ where }}\eta _{ij}=1,\end{aligned}}}
After the Gram matrix
K
{\displaystyle K\,\!}
is learned by semidefinite programming, the output
Y
{\displaystyle Y\,\!}
can be obtained via Cholesky decomposition.
In particular, the Gram matrix can be written as
K
i
j
=
∑
α
=
1
N
(
λ
α
V
α
i
V
α
j
)
{\displaystyle K_{ij}=\sum _{\alpha =1}^{N}(\lambda _{\alpha }V_{\alpha i}V_{\alpha j})\,\!}
where
V
α
i
{\displaystyle V_{\alpha i}\,\!}
is the i-th element of eigenvector
V
α
{\displaystyle V_{\alpha }\,\!}
of the eigenvalue
λ
α
{\displaystyle \lambda _{\alpha }\,\!}
.
It follows that the
α
{\displaystyle \alpha \,\!}
-th element of the output
Y
i
{\displaystyle Y_{i}\,\!}
is
λ
α
V
α
i
{\displaystyle {\sqrt {\lambda _{\alpha }}}V_{\alpha i}\,\!}
.
See also
Locally linear embedding
Isometry (disambiguation)
Local Tangent Space Alignment
Riemannian manifold
Energy minimization
Notes
References
Linial, London and Rabinovich, Nathan, Eran and Yuri (1995). "The geometry of graphs and some of its algorithmic applications". Combinatorica. 15 (2): 215–245. doi:10.1007/BF01200757. S2CID 5071936.{{cite journal}}: CS1 maint: multiple names: authors list (link)
Weinberger, Sha and Saul, Kilian Q., Fei and Lawrence K. (4 July 2004a). Learning a kernel matrix for nonlinear dimensionality reduction. Proceedings of the Twenty First International Conference on Machine Learning (ICML 2004). Banff, Alberta, Canada.{{cite conference}}: CS1 maint: multiple names: authors list (link)
Weinberger and Saul, Kilian Q. and Lawrence K. (27 June 2004b). Unsupervised learning of image manifolds by semidefinite programming. 2004 IEEE Computer Society Conference on Computer Vision and Pattern Recognition. Vol. 2.
Weinberger and Saul, Kilian Q. and Lawrence K. (1 May 2006). "Unsupervised learning of image manifolds by semidefinite programming" (PDF). International Journal of Computer Vision. 70: 77–90. doi:10.1007/s11263-005-4939-z. S2CID 291166.
Lawrence, Neil D (2012). "A unifying probabilistic perspective for spectral dimensionality reduction: insights and new models". Journal of Machine Learning Research. 13 (May): 1612. arXiv:1010.4830. Bibcode:2010arXiv1010.4830L.
Additional material
Kilian Q. Weinberger's MVU Matlab code
Kata Kunci Pencarian:
- Semidefinite embedding
- Semidefinite programming
- Isometry
- Dimensionality reduction
- Nonlinear dimensionality reduction
- List of statistics articles
- Unfold
- Outline of machine learning
- Euclidean distance matrix
- Normal matrix