Abstract: Data coding as a building block of several image processing algorithms has been received great attention recently. Indeed, the importance of the locality assumption in coding approaches is studied in numerous works and several methods are proposed based on this concept. We probe this assumption and claim that taking the similarity between a data point and a more global set of anchor points does not necessarily weaken the coding method as long as the underlying structure of the anchor points are taken into account. Based on this fact, we propose to capture this underlying structure by assuming a random walker over the anchor points. We show that our method is a fast approximate learning algorithm based on the diffusion map kernel. The experiments on various datasets show that making different state-of-the-art coding algorithms aware of this structure boosts them in different learning tasks.
Introduction
Feature coding is a fundamental process in computer vision, where high-dimensional data points, such as image patches, are represented as combinations of anchor points (bases) from a dictionary. Most contemporary methods rely on the locality assumption, which posits that a data point can be accurately represented by a linear combination of its nearest neighbors. However, this leads to the "Large Window Effect." If the neighborhood (window) is too small, global context is lost. If it is too large, the assumption of local linearity is violated because real-world data typically resides on nonlinear manifolds. As shown in Figure 1(a), a large Euclidean window can include points that are far away on the actual manifold.
Local Similarities Global Coding (LSGC)
To address these limitations, we propose Local Similarities Global Coding (LSGC). This method bridges the gap between local and global representations by diffusing local coding coefficients across a graph of anchor points. The core idea is that "global" should be defined by the manifold's structure rather than simple Euclidean distance.
The LSGC framework consists of three primary steps:
- Base Coding: An initial coding is performed using standard methods like Locality-constrained Linear Coding (LLC) or Soft Assignment Coding (SAC) to establish relationships between dictionary anchor points.
- Graph Construction: Dictionary bases are treated as nodes in a weighted graph, where edge weights represent the affinity between bases, capturing the data's underlying manifold.
- Random Walk Diffusion: For a new data point, initial local codes are diffused via a $t$-step random walk on the basis graph. This allows coefficients to "flow" along the manifold, effectively utilizing global information without violating local geometry.
Mathematically, this process approximates the diffusion map kernel. Since the transition matrix for the dictionary can be precomputed, LSGC remains computationally efficient, adding only about 5% CPU overhead to the coding process.
Experimental Evaluation
The performance of LSGC was evaluated across several benchmarks, including object recognition (COIL20), handwritten digit recognition (MNIST, USPS), and synthetic manifold regression. Qualitative results in Figure 1(b) and (c) demonstrate that LSGC (right panels) selects much more relevant bases compared to standard local coding (left panels), which often picks visually dissimilar bases (highlighted in red) due to the large window effect.
Key Results
- Regression: On a 3D spiral manifold, LSGC reduced the Root Mean Squared Error (RMSE) from 1.688 (standard LLC) to 0.300.
- Classification: On the COIL20 dataset with only 5 training samples per class, LSGC+LLC achieved an error rate of 4.41%, a dramatic improvement over the 18.03% error rate of standard LLC.
- Clustering: In unsupervised tasks, LSGC consistently outperformed spectral clustering and K-means. For instance, it achieved a Normalized Mutual Information (NMI) score of approximately 91% on the Digit dataset, compared to ~78% for standard LLC.
Conclusion
LSGC provides a robust "upgrade" for existing coding algorithms by making them manifold-aware. By leveraging the global structure of anchor points through random walk diffusion, it overcomes the traditional trade-off between locality and global context. The method is inductive, fast, and demonstrates substantial performance gains across a variety of learning tasks. Future work includes establishing tighter theoretical bounds on the approximation error and exploring optimal basis distribution strategies.
Summary updated