Improving Sign Random Projections With Additional Information

Keegan Kang, Wong Wei PinICML 2018

TL;DR

This paper introduces an efficient method to boost the accuracy of Sign Random Projections (SRP) by leveraging a small amount of "additional information"—specifically, the pre-calculated angles between data points and a fixed reference vector. By using a Maximum Likelihood Estimator (MLE) that incorporates these known angles, the authors achieve a mathematically proven reduction in variance compared to standard SRP. This leads to more precise similarity estimates with minimal computational overhead.

What Problem Does This Paper Address?

In the world of big data, comparing high-dimensional vectors (like images or text embeddings) is computationally expensive. Sign Random Projections (SRP) is a popular Locality Sensitive Hashing (LSH) technique used to solve this by compressing high-dimensional vectors into short binary codes. The core mechanism of SRP is that the Hamming distance between these binary codes provides an estimate of the angle $\theta$ between the original vectors.

Theoretical variance of the standard SRP estimator against the angle $\theta$.

However, SRP has a catch: to get a highly accurate estimate, you often need a very large number of bits ($k$). Storing and processing these bits can quickly become a bottleneck, and as shown above, the theoretical variance of the standard estimator peaks when vectors are orthogonal ($\theta = \pi/2$). The authors tackle the challenge of improving the precision of these angular estimates without simply throwing more random projections at the problem.

Methods

The authors propose a new estimator that uses a "reference vector" $e$ to anchor the projections.

  1. Pre-processing: They choose a fixed vector $e$ (often the first singular vector of the dataset) and pre-calculate the angle $\theta_{x_i, e}$ between every data point $x_i$ and this reference vector.
  2. The Projection: During the standard SRP process, they also project the reference vector $e$ using the same random hyperplanes.
  3. The Contingency Table: For any two vectors $x_1$ and $x_2$, they look at the signs of their projections alongside the sign of the projection of $e$. This creates a $2 \times 2$ contingency table of sign matches and mismatches.
  4. Maximum Likelihood Estimation (MLE): Standard SRP only uses the bits of $x_1$ and $x_2$. This new method uses the bits of $x_1, x_2, \text{ and } e$, combined with the known angles $\theta_{x_1, e}$ and $\theta_{x_2, e}$. They formulate a log-likelihood function and use the Newton-Raphson method to find the most likely value for the angle $\theta_{x_1, x_2}$.

This approach is "plug-and-play"—it can be used to improve standard SRP or more advanced versions like Super-Bit LSH (SBLSH).

Datasets

The researchers evaluated their method on two well-known high-dimensional benchmarks:

  • MNIST: A dataset of 10,000 handwritten digit images, each with 784 features.
  • Gisette: A dataset from a NIPS 2003 feature selection challenge, containing 13,500 observations with 5,000 features.

In both cases, vectors were normalized to unit length before processing.

Key Insights and Ideas

  • Information Anchoring: By knowing the relationship of two vectors to a common "anchor" (the vector $e$), we gain extra constraints on where those two vectors can be relative to each other. This extra information effectively "shrinks" the uncertainty of the estimate.
Variance reduction contours at $\theta = \pi/9$.
  • Guaranteed Improvement: The authors provide a rigorous proof showing that the variance of their MLE estimator is strictly lower than or equal to the variance of the standard SRP estimator. The contour plots map out exactly how much variance reduction is achieved based on the angles to the reference vector.
  • The "Free" Bit Tradeoff: Storing the angle to the reference vector takes 64 bits (a double precision float). The authors show that their method is so efficient that it usually outperforms a standard SRP that is given 64 extra random bits to compensate for the storage difference.
  • Heuristic Selection: While any vector $e$ works, using the first singular vector of the data is a powerful heuristic. It ensures that $e$ is "close" to the majority of the data, which maximizes the variance reduction for the most common pairs.

Key Results

  • Lower Error: On the Gisette dataset with $k=1024$ bits, the proposed estimator (SRP-est) achieved an average RMSE of 0.0419, compared to 0.0466 for standard SRP.
  • Best in Class: When combined with Super-Bit LSH, the "SBLSH-est" method achieved the lowest error across all tests (0.0378 on MNIST).
  • Consistency: The new estimator showed significantly lower standard deviation in its error across multiple simulations, meaning the results are not just better on average, but more reliable.
  • Efficiency: The computational cost of the MLE (via Newton-Raphson) is $O(1)$ per pair, making it extremely fast to implement once the bits are counted.

Limitations and Future Work

  • Bias at Low Bit-Counts: Like many Maximum Likelihood Estimators, this method can be biased when the number of bits $k$ is very small (e.g., $k < 64$). The benefits truly shine as $k$ increases.
  • Optimal Reference Selection: While the first singular vector is a good heuristic, the authors note that the "optimal" $e$ might depend on the specific downstream task (e.g., classification vs. clustering).
  • Scaling to Multiple Vectors: The paper outlines how to use multiple reference vectors ($e_1, e_2, \dots, e_s$), but this increases storage and pre-processing costs. Finding the point of diminishing returns is a subject for future study.
  • Broader Applications: The authors suggest this "additional information" framework could be extended beyond SRP to conventional random projections, stable random projections, and minwise hashing.

Summary updated

BibTeX
@inproceedings{kang2018improving,
  author = {Keegan Kang and Wong Wei Pin},
  title = {{Improving Sign Random Projections With Additional Information}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
}
Figure