Abstract
Standard linear kernels often fail to capture the nuances of non-negative data, such as word counts or pixel intensities. This paper explores the min-max kernel, a robust similarity measure that generalizes Jaccard similarity for non-binary data. We demonstrate its superiority over linear and intersection kernels across diverse datasets and introduce a simplified "0-bit" Consistent Weighted Sampling (CWS) scheme. This scheme linearizes the min-max kernel, enabling high-performance classification on massive scales with efficient linear SVMs.
Introduction
In machine learning, the choice of kernel—the function defining similarity between data points—is a primary determinant of model performance. For non-negative datasets, the standard linear kernel (inner product) frequently underperforms. While nonlinear kernels like the min-max kernel offer significant accuracy improvements, their computational complexity often limits their use in large-scale industrial applications.
The min-max kernel for two vectors $u, v$ is defined as: $$K_{MM}(u, v) = \frac{\sum_{i=1}^D \min(u_i, v_i)}{\sum_{i=1}^D \max(u_i, v_i)}$$
This paper addresses the scalability challenge by proposing a "0-bit" hashing scheme that approximates this nonlinear kernel in a sparse binary space, allowing the use of fast linear solvers like LIBLINEAR.
Methodology: The 0-bit Hashing Scheme
Consistent Weighted Sampling (CWS) is a known technique for hashing data to approximate the min-max kernel. Traditionally, CWS produces a pair $(i^*, t^*)$, where $t^*$ is theoretically unbounded, complicating compact bit representations.
The core innovation presented here is the 0-bit CWS scheme, which suggests that the $t^*$ value is largely redundant for classification tasks. By discarding $t^*$ and retaining only the index $i^*$, we transform the data into a sparse binary space. This "linearization" allows a standard Linear SVM to achieve performance comparable to a nonlinear Min-Max Kernel SVM.
Experimental Evaluation
The study evaluates the min-max kernel against linear, normalized min-max (N-Min-Max), and intersection kernels across over 30 datasets, including OCR (MNIST, Isolet), text (RCV1), and general classification (Covertype, IJCNN).
As shown in Figure 1, the min-max and its normalized variant reach significantly higher peak accuracies compared to the linear kernel on the Isolet dataset.
In Figure 2, the performance gap is even more evident. The min-max kernel achieves approximately 80% accuracy, while the linear kernel plateaus around 70%.
Key Insights
- Superiority over Intersection Kernels: While intersection kernels are popular in computer vision, the min-max kernel's denominator provides a robust normalization that better captures relative similarity.
- Information Content of $t^*$: Empirical evidence suggests that $t^*$ carries negligible essential information for classification. Discarding it simplifies the hashing process without sacrificing accuracy.
- Feature Engineering via Hashing: CWS acts as a powerful feature engineering tool, enabling linear models to capture complex nonlinear relationships.
Results and Discussion
Across nearly all 30+ datasets, the min-max kernel provided the highest accuracy. For instance, on the "Letter" dataset, accuracy jumped from 62.4% (linear) to 96.2% (min-max). The linearized "0-bit" version successfully converged to the exact kernel performance with a sufficient number of hashes (typically $k=512$ or $1024$). Furthermore, storing the $i^*$ index using only 8 bits was found to be sufficient for near-optimal performance, making the approach highly practical for large-scale systems.
Conclusion
The min-max kernel is a powerful tool for non-negative data classification. By employing the simplified 0-bit CWS hashing scheme, researchers and practitioners can leverage the accuracy of nonlinear kernels with the efficiency of linear models. Future work includes providing a rigorous mathematical proof for the effectiveness of discarding $t^*$ and exploring combinations with other kernel types.
Summary updated