Two-Layers Local Coordinate Coding

Wei Xiao, Hong Liu, Hao Tang, Huaping Liu

Abstract

This paper introduces Two-Layers Local Coordinate Coding (Two-layers LCC), a hierarchical extension of sparse coding designed to enhance the representation of high-dimensional data. By employing two layers of anchor points to approximate nonlinear functions, the method achieves "quadratic approximation power." This approach significantly improves performance in image recognition and robotic tactile sensing tasks, particularly when data is noisy or scarce. Experimental results demonstrate that Two-layers LCC consistently outperforms state-of-the-art linear coding methods in both accuracy and robustness.

Introduction

In machine learning and robotics, representing complex signals—such as images or tactile sensor data—often involves using a "dictionary" of basic building blocks called atoms. Traditional Sparse Coding seeks the minimum number of atoms to reconstruct a signal. Local Coordinate Coding (LCC) improved upon this by ensuring chosen atoms are physically "local" to the signal on the data manifold, enabling linear approximation of nonlinear functions.

However, LCC's accuracy is heavily dependent on a large number of high-quality "anchor points." In real-world scenarios where training data is limited, noisy, or poorly distributed, linear approximation often fails. Two-layers LCC addresses this "curse of dimensionality" by empowering anchor points with greater descriptive power through a hierarchical structure, moving from linear to quadratic approximation.

Methodology

The authors propose a hierarchical approach that refines the coding process through two distinct layers. The process is summarized in the following steps:

  1. First-Layer Coding: The input signal is represented as a weighted combination of anchor points from a primary dictionary, similar to standard LCC.
  2. Second-Layer Refinement: Instead of treating first-layer basis vectors as fixed points, the system refines each by representing it as a combination of sub-bases from a second dictionary.
  3. Mathematical Foundation: Utilizing Lipschitz Smoothness, the authors prove that while single-layer LCC provides a 1st-order (linear) approximation, their two-layer structure achieves 2nd-order (quadratic) approximation power.
  4. Optimization: A patterned optimization approach encodes the distance between signals and atoms into the representation. Crucially, second-layer models can be solved in parallel, mitigating increased computational complexity.

Experimental Evaluation

The researchers evaluated Two-layers LCC on three standard computer vision benchmarks and one real-world robotic application:

  • Extended YaleB: A face recognition dataset.
  • Caltech101: A diverse object recognition dataset.
  • MNIST: The classic handwritten digit database.
  • Robotic Tactile Dataset: Data collected from a 7-DOF Schunk modular robot equipped with a Barrett hand, involving multi-object grasping and classification using noise-prone tactile sensor matrices.

Key Results

Two-layers LCC consistently outperformed state-of-the-art methods like LLC (Locality-constrained Linear Coding) and SRC (Sparse Representation-based Classification):

  • Accuracy Gains: On the Extended YaleB dataset, the method achieved 98.13% accuracy, compared to 90.70% for standard LLC.
  • Small Sample Performance: On Caltech101, with only 5 training samples per class, the method achieved 57.83% accuracy, significantly higher than LLC (51.15%) or SRC (48.80%).
  • Robotic Reliability: In tactile sensing experiments, the approach maintained high recognition rates even at high noise levels (e.g., 71% accuracy at 5dB SNR), proving its utility for real-world robot perception where sensors are rarely perfect.
  • Computational Trade-off: While more accurate, the method is slower than single-layer approaches (averaging ~55ms per image on YaleB), though it remains practical for many real-time systems.

Discussion and Conclusion

Key Insights

  • The "Zoom-In" Effect: The two-layer structure acts like a magnifying glass for data manifolds. The first layer provides a global linear "sketch," while the second layer captures finer local geometric details that a single layer would miss.
  • Quadratic Advantage: By moving to a two-layer structure, the approximation error bound is significantly reduced. This allows the model to handle complex nonlinearities with fewer total anchor points.
  • Robustness to Noise: The hierarchy provides a principled way to embed points on a manifold, effectively filtering out noise that typically derails single-layer sparse coders.

Limitations and Future Work

While Two-layers LCC offers superior accuracy, the hierarchical structure increases computational load. Although parallelization helps, it remains heavier than single-layer alternatives. Additionally, performance depends on the quality of the two dictionaries ($V$ and $U$), and optimal strategies for simultaneous dictionary learning remain an area for exploration. Future research could investigate whether adding more layers provides diminishing returns or introduces training instabilities.

Summary updated

BibTeX
@inproceedings{xiao2015two,
  author = {Wei Xiao and Hong Liu and Hao Tang and Huaping Liu},
  title = {{Two-Layers Local Coordinate Coding}},
  booktitle = {CCCV},
  year = {2015},
  doi = {10.1007/978-3-662-48558-3\_4},
}
Figure