Improved Local Coordinate Coding using Local Tangents

Kai Yu, Tong ZhangICML 2010

TL;DR

This paper enhances Local Coordinate Coding (LCC) by incorporating local tangent directions to better capture the underlying geometry of high-dimensional data. By upgrading LCC from a local linear approximation to a local quadratic one, the new method drastically reduces the number of anchor points required, speeding up computation while achieving state-of-the-art performance on standard image classification benchmarks.

What Problem Does This Paper Address?

In machine learning, high-dimensional data often suffers from the "curse of dimensionality," making it difficult to learn complex, nonlinear functions without overfitting. However, real-world data (like images) usually lies on a much lower-dimensional, locally flat geometric structure called a manifold.

Local Coordinate Coding (LCC) is a highly successful method that exploits this manifold structure. It works by learning a dictionary of "anchor points" on the manifold and representing each data point as a sparse, linear combination of its nearest anchors. This effectively turns a hard, nonlinear learning problem into a simpler linear one.

The catch? To get highly accurate approximations, original LCC requires a massive number of anchor points. Because encoding each data point requires solving a computationally expensive Lasso optimization problem across all anchors, scaling up the number of anchors creates a severe computational bottleneck. The authors aim to achieve better approximation accuracy with fewer anchor points.

Methods

The authors view LCC through the lens of Taylor approximations:

  • Vector Quantization (VQ) acts as a 0th-order (constant) approximation.
  • Original LCC acts as a 1st-order (linear) approximation.
  • Improved LCC (This Paper) introduces a 2nd-order (quadratic) approximation.

To achieve this 2nd-order approximation, the authors extend the LCC feature representation to include correction terms based on the distance between a data point and its anchors. However, adding these terms in the original high-dimensional space ($d$) would be too computationally expensive.

Instead, the authors leverage the fact that the data manifold has a low intrinsic dimensionality ($m$). They use local Principal Component Analysis (PCA) at each anchor point to find $m$ local tangent directions. The final algorithm works as follows:

  1. Learn standard LCC anchor points.
  2. Use local PCA to find the top $m$ principal components (tangents) around each anchor.
  3. Encode each data point using both the original LCC weights and its projection onto these local tangents.
  4. Train a standard linear classifier (like an SVM) on these new, extended features.

Datasets

The authors evaluated their method on two standard image classification benchmarks:

  • MNIST: A dataset of 28x28 grayscale handwritten digits (normalized into 784-dimensional vectors).
  • CIFAR-10: A dataset of 32x32 color images across 10 classes. The 3072-dimensional raw pixel vectors were reduced to 512 dimensions using PCA (retaining 99% variance) before applying LCC.

Key Insights and Ideas

  • Geometry dictates error bounds: By moving to a 2nd-order approximation, the theoretical error bound drops from $O(||x-v||^2)$ to $O(||x-v||^3)$, where $||x-v||$ is the distance to the anchor. This means the approximation is significantly tighter when the underlying manifold is locally flat.
  • Quality over quantity for anchor points: Because the local tangent features provide a much richer description of the space around each anchor, the algorithm requires far fewer anchors to map the manifold accurately.
  • Local PCA is a natural fit for manifolds: You don't need to compute quadratic corrections in the full ambient space. Projecting the corrections onto a few local tangent directions captures almost all the necessary geometric variance, keeping the feature size manageable.

Key Results

The improved LCC method demonstrated significant quantitative leaps over both the original LCC and contemporary unsupervised feature learning methods:

  • MNIST: The improved LCC achieved a 1.64% error rate, outperforming the original LCC (1.90%) and state-of-the-art Deep Belief Networks (1.90%) trained without convolutions. Impressively, improved LCC achieved a comparable 1.95% error rate using only 512 anchor points, whereas original LCC needed 4096 points to reach 1.90%.

    MNIST Error Rates
  • CIFAR-10: The method achieved 74.5% accuracy, beating the original LCC (72.3%) and crushing the prior state-of-the-art set by Restricted Boltzmann Machines (64.8%).

    CIFAR-10 Accuracy Rates

Limitations and Future Work

  • Assumption of Local Flatness: The theoretical guarantees of this method rely heavily on the assumption that the data manifold is "locally flat." The authors acknowledge that if a manifold is highly curved or far from locally flat, it is unclear how much value the local tangents actually add. Furthermore, empirically measuring this "flatness" in real-world datasets remains difficult.
  • Spatial Invariance: In these experiments, entire images were treated as single vectors. The authors note that for robust image classification, coding methods should ideally be applied to local image patches and combined with pooling strategies (similar to Convolutional Neural Networks). Understanding the theoretical interplay between local patch coding and global image classification remains an open problem for future work.

Summary updated

BibTeX
@inproceedings{yu2010improved,
  author = {Kai Yu and Tong Zhang},
  title = {{Improved Local Coordinate Coding using Local Tangents}},
  booktitle = {International Conference on Machine Learning},
  year = {2010},
}
Figure