Master how LLE preserves local linear reconstruction relationships. Learn the algorithm that finds local neighborhoods, computes reconstruction weights, and solves for low-dimensional coordinates.
Locally Linear Embedding (LLE) is a nonlinear dimensionality reduction method that preserves local linear relationships. Unlike Isomap which preserves global geodesic distances, LLE focuses on preserving how each sample can be reconstructed as a linear combination of its neighbors.
Each sample can be reconstructed from its local neighborhood using linear weights . These reconstruction weights should be preserved in the low-dimensional embedding.
Where is the neighborhood of .
The complete LLE algorithm:
For each sample , find its k nearest neighbors based on Euclidean distance.
Solve for weights that minimize reconstruction error:
Subject to (normalization constraint).
Find low-dimensional coordinates that preserve the reconstruction weights:
For each sample , the reconstruction weights have a closed-form solution:
Define the local covariance matrix:
The weights are:
This ensures the weights sum to 1 and minimize reconstruction error.
The optimization problem in Step 3 can be solved via eigenvalue decomposition:
Define matrix where is the weight matrix. The optimization becomes:
Solution: Take the bottom eigenvectors of (excluding the smallest eigenvalue which is 0). These form the rows of .