Sign-Full Random Projections.

Ping Li

Abstract

Traditional 1-bit random projections achieve high storage efficiency by quantizing both database and query vectors into single bits. However, this symmetric quantization discards significant information, particularly for high-similarity items. This paper introduces "sign-full" random projections, an asymmetric approach that retains the full values of query projections while using only the signs of stored data. We derive several new estimators, including a normalized version for non-negative data that significantly reduces variance and approaches the theoretical accuracy limits of the Maximum Likelihood Estimator (MLE).

Introduction

In large-scale similarity search, high-dimensional data is often projected into lower-dimensional spaces to manage computational and storage costs. 1-bit random projections (sign-sign) are popular for their extreme efficiency, storing only the sign of each projection. While effective for massive datasets, this method suffers from a loss of resolution, especially when distinguishing between highly similar items.

Research identifies a missed opportunity in this standard workflow: while the database must be compressed for storage, the query vector is processed in real-time. Quantizing the query projections to 1-bit signs is an unnecessary loss of information. By keeping the "full" query values, we can significantly improve similarity estimation accuracy at virtually no additional storage cost.

Methodology: From Sign-Sign to Sign-Full

The standard 1-bit approach estimates cosine similarity ($\rho$) based on the "collision probability"—the frequency with which the signs of two projected vectors match. In contrast, Sign-Full Random Projections utilize the sign of the stored database vector ($sgn(x)$) and the unquantized value of the query vector ($y$).

This asymmetric approach leads to several new estimators. For the common case of non-negative data (e.g., text histograms or image features), the paper proposes the $\hat{\rho}_{s,n}$ estimator. This "hero" estimator incorporates a normalization step for the query projections, which is critical for reducing variance and ensuring stable similarity scores.

Theoretical Performance and Variance Reduction

A primary contribution of this work is the theoretical derivation of the variance for these new estimators. The analysis shows that sign-full projections drastically reduce estimation error compared to traditional methods.

Variance ratios for general sign-full estimators ($V_f, V_{f,n}$) compared to the standard 1-bit baseline ($V_1$) and the MLE ($V_m$).

As shown in Figure 1, the standard 1-bit estimator ($V_1$) exhibits the highest variance. The sign-full estimators, particularly when normalized ($V_{f,n}$), significantly close the gap toward the Maximum Likelihood Estimator ($V_m$).

For non-negative data, the improvements are even more pronounced. The normalization step in $\hat{\rho}_{s,n}$ allows the estimator to nearly reach the Cramer-Rao bound (the MLE performance) at high similarities.

Variance ratios for estimators optimized for non-negative data, highlighting the 'hero' estimator $V_{s,n}$ which closely approaches the MLE performance ($V_m$).

Figure 2 illustrates that the normalized sign-full estimator ($V_{s,n}$) significantly outperforms the unnormalized version ($V_s$). At high similarity ($\rho \to 1$), the variance of the recommended sign-full estimator is only about 40% of the traditional 1-bit estimator. This translates to a massive gain in search precision or the ability to achieve the same accuracy with half the number of bits.

Empirical Results

The proposed methods were evaluated on diverse real-world datasets, including MNIST (handwritten digits), RCV1 (newswire stories), and YouTube audio/description features.

  • Accuracy Boost: In high-similarity regimes ($\rho = 0.99$), the Mean Squared Error (MSE) was reduced by up to 8x compared to 1-bit projections for small sample sizes.
  • Ranking Performance: Precision-Recall curves on RCV1 and MNIST consistently favored the sign-full estimators over the standard sign-sign approach.
  • Practicality: The $\hat{\rho}_{s,n}$ estimator is computationally efficient—essentially a modified inner product—making it ready for deployment in production search engines.

Conclusion

Sign-full random projections offer a "free lunch" for similarity search. By exploiting the inherent asymmetry between stored data and incoming queries, this method provides a significant boost in accuracy and storage efficiency. The normalized estimator for non-negative data, in particular, represents a major step forward in making 1-bit storage schemes viable for high-precision applications.

Summary updated

BibTeX
@inproceedings{li2019sign,
  author = {Ping Li},
  title = {{Sign-Full Random Projections.}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33014205},
}
Figure