Abstract
In large-scale machine learning, high-dimensional data poses significant challenges for storage and computation. This paper introduces Sign Stable Projections, a technique that reduces data to a single bit per dimension while preserving similarity metrics. Specifically, we show that the signs of Cauchy random projections ($\alpha=1$) provide a robust approximation for the Chi-Square ($\chi^2$) similarity, which is widely used for histogram-based data. Our method allows for the use of efficient linear classifiers to achieve performance comparable to non-linear $\chi^2$ kernels, offering a 64-fold reduction in storage and enabling real-time processing in streaming environments.
Introduction
Measuring similarity between high-dimensional vectors is a fundamental task in computer vision and natural language processing. For histogram-based features, the Chi-Square ($\chi^2$) similarity often yields superior results compared to standard Euclidean distance. However, the non-linear nature of $\chi^2$ makes it computationally expensive at scale. Furthermore, in streaming data scenarios, storing original high-dimensional vectors for non-linear transformations is often infeasible. This work addresses these challenges by proposing a 1-bit projection method that approximates $\chi^2$ similarity using only linear operations and sign thresholds.
Methodology
The core of our approach lies in Sign Stable Projections. Traditional $\alpha$-stable random projections estimate $l_\alpha$ distances by storing real-valued results. We simplify this by keeping only the sign of the projection:
- Projection: A high-dimensional vector is multiplied by a random matrix with entries drawn from a symmetric $\alpha$-stable distribution.
- Thresholding: Only the sign (positive or negative) of each result is stored, reducing each dimension to 1 bit.
- Estimation: Similarity is estimated via the "collision probability"—the frequency with which signs match between two vectors.
We specifically focus on Cauchy projections ($\alpha=1$). We derive analytical approximations demonstrating that the sign mismatch probability is a monotone function of the $\chi^2$ similarity. This allows linear SVMs trained on these 1-bit features to approximate the behavior of complex $\chi^2$ kernels.
Experimental Results
We evaluated the method on several benchmarks, including the UCI-PEMS and MNIST-Small datasets.
As shown in the figure above, $\chi^2$-based kernels significantly outperform standard linear kernels. On MNIST-Small, accuracy improves from ~90% to ~95%. Crucially, the proposed sign-projection method (labeled as "acos $\chi^2$") closely tracks the performance of the full $\chi^2$ kernel while using significantly fewer resources.
We also validated the theoretical collision probability formulas against empirical data.
The experiments on massive word-pair datasets confirmed that our theoretical approximations for stable projections accurately reflect real-world collision probabilities, even for sparse data. The maximum approximation error for binary data was found to be less than 0.0192.
Conclusion
Sign Stable Projections provide a powerful mechanism for scaling similarity-based machine learning. By reducing data to 1-bit signs, we achieve massive storage savings and enable the use of fast bitwise operations. The discovered link between Cauchy projections and $\chi^2$ similarity bridges the gap between efficient linear processing and high-performance non-linear metrics. Future work will explore the use of very sparse projection matrices to further reduce initial computation costs and extend these principles to other kernel types.
Summary updated