Kernel Coding: General Formulation and Special Cases

Mehrtash Tafazzoli Harandi, Mathieu SalzmannarXiv 2014

TL;DR

This paper introduces a unified framework for "kernel coding," extending popular image representation techniques like bag-of-words and sparse coding into high-dimensional Hilbert spaces. This allows for more discriminative representations and better class separability, leading to improved performance on various visual recognition tasks, especially when the kernel, dictionary, and classifier are learned jointly.

What Problem Does This Paper Address?

Traditional methods for representing images as compact codes (like bag-of-words or sparse coding) operate directly in the image's feature space. This space often suffers from entangled class distributions, making it difficult for linear classifiers to separate them effectively. While non-linear classifiers can help, they might still struggle if the underlying feature representations are not well-suited for discrimination. The paper addresses this by proposing to perform the coding process in a high-dimensional Hilbert space, where data is expected to be more linearly separable, thus enabling better classification.

Methods

The core contribution is a general formulation for coding that unifies several existing techniques, including bag-of-words, sparse coding, and locality-based coding. The key innovation is kernelizing this general formulation. This means transforming the coding problem into a Reproducing Kernel Hilbert Space (RKHS) using a kernel function. The paper shows that the reconstruction term in the coding objective can be expressed entirely in terms of kernel values.

Beyond kernelizing existing methods, the paper also proposes novel learning strategies within this framework:

  • Kernel Learning: Methods for learning the optimal kernel parameters or a combination of kernels.
  • Dictionary Learning: Optimizing the dictionary of "codewords" to better suit the problem in the kernel space.
  • Supervised Kernel Coding: Integrating class labels to learn discriminative codes, dictionaries, and classifiers, including both linear and bilinear classifiers.

The paper also details how specific coding schemes like Bag of Words (BoW), Sparse Coding (SC), and Locality-Constrained Coding (LCC) can be kernelized.

Datasets

The paper evaluates its methods on several standard datasets:

  • Flicker Material Database (FMD): Used for material categorization.
  • MIT Indoor: A challenging dataset for scene classification.
  • Pascal VOC2007: A benchmark for object classification.
  • Extended YaleB: A dataset for face recognition.
  • Virus dataset: Used to demonstrate handling data on a Riemannian manifold.

Key Insights and Ideas

  • Hilbert Space for Separability: Moving the coding process into a high-dimensional Hilbert space is a principled way to improve class separability, which is crucial for effective recognition.
  • Unified Kernel Coding Framework: The general formulation provides a powerful abstraction that allows for kernelizing a wide range of coding techniques, revealing commonalities and enabling new extensions.
  • Joint Learning is Key: The most significant gains are achieved when the kernel, dictionary, and classifier are learned jointly. This allows the entire system to adapt to the specific recognition task, leading to state-of-the-art performance.
  • Kernelization of Existing Methods: The paper demonstrates that popular methods like sparse coding and local coordinate coding can be effectively kernelized, leading to substantial performance improvements over their linear counterparts.
  • Handling Non-linear Data: Kernel coding proves effective even on data with non-linear geometry, such as images lying on a Riemannian manifold, where traditional linear methods fail.

Key Results

The experimental evaluation consistently shows the superiority of kernel coding methods over their linear counterparts across various datasets and tasks.

  • FMD: Kernel coding techniques significantly outperformed linear ones, with a gap of up to 4% for LLC vs. kLLC. Supervised kernel sparse coding with a bilinear classifier achieved the best accuracy of 61.8%, a new state-of-the-art on this dataset.
  • MIT Indoor: Kernel coding (kSC, kLLC) significantly outperformed linear methods (SC, LLC). Supervised learning further improved performance, with 1-SkLLC achieving the maximum mAP of 50.4%.
  • Pascal VOC2007: Kernel coding consistently outperformed linear methods. KSC outperformed SC by almost 5% with 500 atoms. Supervised coding further boosted performance, with kLLC improving from 50.7% to 54.3% with a linear classifier.
  • Extended YaleB: Both unsupervised (kSC, kLLC) and supervised kernel coding methods outperformed the state-of-the-art LC-KSVD. kLLC achieved the highest accuracy of 97.2% (unsupervised) and 98.4% (supervised).
  • Virus Dataset: Kernel coding methods achieved 79.1% (kSC) and 80.0% (kLLC) accuracy using log-Euclidean RBF kernels, significantly outperforming prior work (54.5%) and demonstrating applicability to manifold data.

Limitations and Future Work

  • Limitations: The paper notes that learning kernel parameters is not jointly convex with the codes, requiring iterative optimization. For the Gaussian kernel, the objective function can be ill-posed with respect to the bandwidth parameter, necessitating a strategy to maximize discrepancy between dictionary atoms.
  • Future Work: The authors plan to investigate max-margin approaches for supervised kernel coding. They are also interested in extending their kernel coding framework to other coding schemes like VLAD and Fisher vectors.

Summary updated

BibTeX
@misc{harandi2014kernel,
  author = {Mehrtash Tafazzoli Harandi and Mathieu Salzmann},
  title = {{Kernel Coding: General Formulation and Special Cases}},
  year = {2014},
  eprint = {1409.0084},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1409.0084},
}
Figure