Generalized Intersection Kernel

Ping LiarXiv 2016

Introduction

The intersection kernel has been a cornerstone in computer vision for comparing histograms, primarily due to its ability to capture non-linear relationships effectively. However, its mathematical formulation traditionally restricts it to non-negative data. This paper introduces the Generalized Intersection (GInt) and Normalized Generalized Min-Max (NGMM) kernels, which extend these benefits to datasets containing both positive and negative values. By leveraging a novel data transformation and "0-bit" consistent weighted sampling, the proposed method offers a tuning-free, non-linear approach that can be efficiently linearized for large-scale machine learning.

The Challenge of General Data and Scalability

Many real-world datasets, such as sensor logs or normalized audio features, contain negative values that preclude the use of standard intersection kernels. While the Radial Basis Function (RBF) kernel is a popular alternative for non-linear tasks, it requires intensive hyperparameter tuning (specifically the $\gamma$ parameter) and suffers from quadratic computational complexity relative to the number of data points.

The author addresses these issues by seeking a "tuning-free" kernel that handles general data and supports linearization. Linearization allows non-linear patterns to be processed using fast linear solvers like LIBLINEAR or Stochastic Gradient Descent (SGD), making the approach scalable to massive datasets.

Methodology

The proposed framework consists of three primary components:

  1. Data Transformation: To accommodate negative entries, a $D$-dimensional vector $u$ is transformed into a $2D$-dimensional non-negative space. Each entry $u_i$ is split: if $u_i > 0$, it is placed in the first slot; if $u_i < 0$, its absolute value is placed in the second slot.
  2. Kernel Definition:
    • GInt Kernel: Defined as the sum of the minimums of the transformed components.
  3. NGMM Kernel: A normalized version of the Generalized Min-Max kernel. The paper demonstrates that NGMM is a monotonic transformation of GInt.
  4. Linearization via GCWS: To achieve scalability, the author employs Generalized Consistent Weighted Sampling (GCWS). This hashing technique generates binary features where the collision probability is proportional to the NGMM kernel value, enabling the use of efficient linear classifiers.

Experimental Results

The efficacy of the GInt and NGMM kernels was evaluated across 40 publicly available datasets from the UCI repository, covering domains such as physical activity, audio/speech, and image vision.

Performance comparison of various kernels across different datasets as a function of the regularization parameter C.

As shown in Figure 1, the GInt and NGMM kernels consistently outperform linear models and remain competitive with the best-tuned RBF kernels across a wide range of the regularization parameter $C$. A key advantage highlighted is the "tuning-free" nature of these kernels; unlike RBF, they do not require searching for an optimal scale parameter to achieve high accuracy.

Comprehensive accuracy results for 40 datasets comparing linear, RBF, GMM, NGMM, and GInt kernels.

The comprehensive results in Figure 3 further validate these findings. On nearly all datasets, the non-linear kernels significantly outperform standard linear SVMs. Notably, the NGMM kernel typically outperforms the GInt kernel, suggesting that normalization is a critical factor in classification performance. In several instances, such as the PAMAP and DailySports datasets, the GMM/NGMM kernels achieved accuracies exceeding 99%.

Conclusion

The GInt and NGMM kernels provide a robust and efficient alternative for non-linear classification on general datasets. By eliminating the need for hyperparameter tuning and offering a path toward linearization via GCWS, these kernels bridge the gap between high-performance non-linear modeling and large-scale computational efficiency. Future work may extend these techniques to regression, clustering, and approximate nearest neighbor search.

Summary updated

BibTeX
@misc{li2016generalized,
  author = {Ping Li},
  title = {{Generalized Intersection Kernel}},
  year = {2016},
  eprint = {1612.09283},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1612.09283},
}
Figure