Diffusion map

From Infogalactic: the planetary knowledge core
Jump to: navigation, search

Diffusion maps is a dimensionality reduction or feature extraction algorithm introduced by R. R. Coifman and S. Lafon.[1][2][3][4] It computes a family of embeddings of a data set into Euclidean space (often low-dimensional) whose coordinates can be computed from the eigenvectors and eigenvalues of a diffusion operator on the data. The Euclidean distance between points in the embedded space is equal to the "diffusion distance" between probability distributions centered at those points. Different from linear dimensionality reduction methods such as principal component analysis (PCA) and multi-dimensional scaling (MDS), diffusion maps is part of the family of nonlinear dimensionality reduction methods which focus on discovering the underlying manifold that the data has been sampled from. By integrating local similarities at different scales, diffusion maps gives a global description of the data-set. Compared with other methods, the diffusion maps algorithm is robust to noise perturbation and is computationally inexpensive.

Definition of diffusion maps

Following [3] and,[5] diffusion maps can be defined in four steps.

Connectivity

Diffusion maps exploit the relationship between heat diffusion and random walk Markov chain. The basic observation is that if we take a random walk on the data, walking to a nearby data-point is more likely than walking to another that is far away. Let (X, \mathcal{A}, \mu) be a measure space, where X is the data set and \mu represents the distribution on the points on X.

Based on this, the connectivity k between two data points, x and y, can be defined as the probability of walking from x to y in one step of the random walk. Usually, this probability is specified in terms of kernel function on the two points: k: X \times X \rightarrow \mathbb{R}. For example, the popular Gaussian kernel:


k(x,y)=e^{-\frac{||x-y||^2}{\epsilon}}

More generally, the kernel function has the following properties

k(x,y) = k(y,x)

(k is symmetric)

 k(x,y) \geq 0 \,\,\forall x,y

(k is positivity preserving).

The kernel constitutes the prior definition of the local geometry of data-set. Since a given kernel will capture a specific feature of the data set, its choice should be guided by the application that one has in mind. This is a major difference with methods such as principal component analysis, where correlations between all data points are taken into account at once.

Given (X, k), we can then construct a reversible Markov chain on X (a process known as the normalized graph Laplacian construction):


d(x) = \int_X k(x,y) d\mu(y)

and define:


p(x,y) = \frac{k(x,y)}{d(x)}

Although the new normalized kernel does not inherit the symmetric property, it does inherit the positivity-preserving property and gains a conservation property:


\int_X p(x,y) d\mu(y) = 1

Diffusion process

From p(x,y) we can construct a transition matrix of a Markov chain (M) on X. In other words, p(x,y) represents the one-step transition probability from x to y, and M^t gives the t-step transition matrix.

We define the diffusion matrix L (it is also a version of graph Laplacian matrix)


L_{i,j}=k(x_i,x_j) \,

We then define the new kernel


L^{(\alpha)}_{i,j}= k^{(\alpha)}(x_i,x_j) =\frac{L_{i,j}}{(d(x_i) d(x_j))^{\alpha}} \,

or equivalently,


L^{(\alpha)} = D^{-\alpha} L D^{-\alpha} \,

where D is a diagonal matrix and D_{i, i} = \sum_j L_{i, j}.

We apply the graph Laplacian normalization to this new kernel:


M=({D}^{(\alpha)})^{-1}L^{(\alpha)}, \,

where D^{(\alpha)} is a diagonal matrix and {D}^{(\alpha)}_{i, i} = \sum_j L^{(\alpha)}_{i, j}.


p(x_j,t|x_i)=M^t_{i,j} \,

One of the main ideas of diffusion framework is that running the chain forward in time (taking larger and larger powers of M) reveals the geometric structure of X at larger and larger scales (the diffusion process). Specifically, the notion of a cluster in the data set is quantified as a region in which the probability of escaping this region is low (within a certain time t). Therefore, t not only serves as a time parameter, but also has the dual role of scale parameter.

The eigendecomposition of the matrix M^t yields


M^t_{i,j} = \sum_l \lambda_l^t \psi_l(x_i)\phi_l(x_j) \,

where \{\lambda_l \} is the sequence of eigenvalues of M^t and \{\psi_l \} and \{\phi_l \} are the biorthogonal right and left eigenvectors respectively. Due to the spectrum decay of the eigenvalues, only a few terms are necessary to achieve a given relative accuracy in this sum.

Parameter \alpha and the Diffusion Operator

The reason to introduce the normalization step involving \alpha is to tune the influence of the data point density on the infinitesimal transition of the diffusion. In some applications, the sampling of the data is generally not related to the geometry of the manifold we are interested in describing. In this case, we can set \alpha=1 and the diffusion operator approximates the Laplace–Beltrami operator. We then recover the Riemannian geometry of the data set regardless of the distribution of the points. To describe the long-term behavior of the point distribution of a system of stochastic differential equations, we can use \alpha=0.5 and the resulting Markov chain approximates the Fokker-Planck diffusion. With \alpha=0, it reduces to the classical graph Laplacian normalization.

Diffusion distance

The diffusion distance at time t between two points can be measured as the similarity of two points in the observation space with the connectivity between them. It is given by


D_{t}(x_i,x_j)^2 =\sum_y \frac{(p(y,t|x_i)-p(y,t|x_j))^2}{\phi_0(y)}

where \phi_0(y) is the stationary distribution of the Markov chain, given by the first left eigenvector of M. Explicitly:


\phi_0(y) = \frac{d(y)}{\sum_{z \in X} d(z)}

Intuitively, D_t(x_i,x_j) is small if there is a large number of short paths connecting x_i and x_j. There are several interesting features associated with the diffusion distance, based on our previous discussion that t also serves as a scale parameter:

  1. Points are closer at a given scale (as specified by D_t(x_i,x_j)) if they are highly connected in the graph, therefore emphasizing the concept of a cluster.
  2. This distance is robust to noise, since the distance between two points depends on all possible paths of length t between the points.
  3. From a machine learning point of view, the distance takes into account all evidences linking x_i to x_j, allowing us to conclude that this distance is appropriate for the design of inference algorithms based on the majority of preponderance.[3]

Diffusion process and low-dimensional embedding

The diffusion distance can be calculated using the eigenvectors by


D_t(x_i,x_j)^2=\sum_l \lambda_l^{2t} (\psi_l(x_i)-\psi_l(x_j))^2 \,

So the eigenvectors can be used as a new set of coordinates for the data. The diffusion map is defined as:


\Psi_t(x)=(\lambda_1^t\psi_1(x),\lambda_2^t\psi_2(x),\ldots,\lambda_k^t\psi_k(x))

Because of the spectrum decay, it is sufficient to use only the first k eigenvectors and eigenvalues. Thus we get the diffusion map from the original data to a k-dimensional space which is embedded in the original space.

In,[6] it is proved that


D_t(x_i,x_j)^2=||\Psi_t(x_i)-\Psi_t(x_j)||^2 \,

so the Euclidean distance in the diffusion coordinates approximates the diffusion distance.

Algorithm

The basic algorithm framework of diffusion map is as:

Step 1. Given the similarity matrix L

Step 2. Normalize the matrix according to parameter \alpha: L^{(\alpha)} = D^{-\alpha} L D^{-\alpha}

Step 3. Form the normalized matrix M=({D}^{(\alpha)})^{-1}L^{(\alpha)}

Step 4. Compute the k largest eigenvalues of M^t and the corresponding eigenvectors

Step 5. Use diffusion map to get the embedding \Psi_t

Application

In the paper,[6] they showed how to design a kernel that reproduces the diffusion induced by a Fokker-Planck equation. Also, they explained that when the data approximate a manifold, then one can recover the geometry of this manifold by computing an approximation of the Laplace-Beltrami operator. This computation is completely insensitive to the distribution of the points and therefore provides a separation of the statistics and the geometry of the data. Since Diffusion map gives a global description of the data-set, it can measure the distances between pair of sample points in the manifold the data is embedded. Based on diffusion map, there are many applications, such as face recognition,[7] spectral clustering, low dimensional representation of images, image segmentation,[8] 3D model segmentation,[9] speaker verification[10] and identification,[11] sampling on manifolds,anomaly detection,[12] image inpainting,[13] and so on.

See also

References

  1. Lua error in package.lua at line 80: module 'strict' not found.
  2. Lua error in package.lua at line 80: module 'strict' not found.
  3. 3.0 3.1 3.2 Lua error in package.lua at line 80: module 'strict' not found.
  4. Lua error in package.lua at line 80: module 'strict' not found.
  5. Lua error in package.lua at line 80: module 'strict' not found.
  6. 6.0 6.1 Lua error in package.lua at line 80: module 'strict' not found.
  7. Barkan O, Weill J, Wolf L, Aronowitz H. "Fast high dimensional vector multiplication face recognition". In Proceedings of the IEEE International Conference on Computer Vision 2013 (pp. 1960-1967).
  8. Lua error in package.lua at line 80: module 'strict' not found.
  9. Lua error in package.lua at line 80: module 'strict' not found.
  10. Barkan O, Aronowitz H. "Diffusion maps for PLDA-based speaker verification.". In Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2013 (pp. 7639-7643).
  11. Lua error in package.lua at line 80: module 'strict' not found.
  12. Lua error in package.lua at line 80: module 'strict' not found.
  13. Lua error in package.lua at line 80: module 'strict' not found.