Near-optimal sample complexity bounds for circulant binary embedding

Samet Oymak, Christos Thrampoulidis, Babak HassibiICASSP 2017

Abstract

Binary embedding is a fundamental technique for mapping high-dimensional data into compact binary codes while preserving pairwise distances. While traditionally performed using dense Gaussian random matrices, which are computationally expensive, practitioners often turn to structured matrices for faster processing. This paper provides the first near-optimal sample complexity bounds for circulant binary embeddings, demonstrating that structured projections can match the theoretical performance of dense matrices with significantly lower computational overhead. We show that for a set of $N$ points, an embedding dimension of $k \sim \delta^{-3} \log N$ is sufficient to maintain distortion $\delta$, achieving a computational complexity of $O(n \log n)$.

Introduction

In the era of big data, high-dimensional vectors are ubiquitous in fields ranging from computer vision to information retrieval. To process this data efficiently, binary embedding is used to map these vectors into a lower-dimensional Hamming cube. This transformation allows for massive reductions in storage requirements and enables rapid similarity searches using bitwise operations.

Historically, the gold standard for binary embedding has been the use of dense Gaussian random matrices. By taking the sign of a linear projection—$\text{sgn}(Ax)$—one can preserve the angular distance between vectors. However, the computational cost of this operation is $O(kn)$, where $n$ is the original dimension and $k$ is the target dimension. For large-scale applications, this $O(kn)$ bottleneck is often prohibitive. This paper addresses the theoretical gap between the fast, structured matrices used in practice and the rigorous guarantees previously only available for slow, dense matrices.

The Computational Challenge: Fast vs. Slow Projections

To accelerate the embedding process, researchers utilize Fast Johnson-Lindenstrauss Transforms (FJLT). These transforms replace dense matrices with structured ones, such as circulant matrices, which can be applied using the Fast Fourier Transform (FFT) in $O(n \log n)$ time.

While the theory for linear fast embeddings is well-established, the introduction of the nonlinear sign function—$\text{sgn}(\cdot)$—complicates the analysis significantly. Previous attempts to prove the efficacy of circulant binary embeddings resulted in suboptimal dimensions or required restrictive assumptions about the "coherence" (or spikiness) of the input data. This research provides a breakthrough by establishing near-optimal bounds that do not rely on such data-specific assumptions.

Methodology

The paper analyzes a specific fast embedding pipeline. The mapping process involves three primary steps:

  1. Random Modulation: The input vector $\boldsymbol{x}$ is multiplied by a random diagonal matrix $\text{diag}(\boldsymbol{r})$.
  2. Circulant Multiplication: The result is multiplied by a Gaussian circulant matrix $\boldsymbol{C_h}$.
  3. Subsampling and Quantization: The coordinates are subsampled via a matrix $\boldsymbol{R}$ and passed through a sign function: $\boldsymbol{x} \mapsto \text{sgn}(\boldsymbol{R}\boldsymbol{C_h}\text{diag}(\boldsymbol{r})\boldsymbol{x})$.

To ensure the bounds are universal and independent of the dataset's geometry, the author incorporates an optional pre-processing step using a randomized Hadamard transform. The mathematical proof utilizes advanced tools from random matrix theory, including the Hanson-Wright inequality and a novel extension of Tropp’s incoherent subdictionary theorem to bound the spectral norms of subsampled random shift vectors.

Key Insights and Theoretical Results

1. Near-Optimal Sample Complexity

The study proves that a set of $N$ points in $\mathbb{R}^n$ can be embedded into a Hamming cube of dimension $k$ with distortion $\delta$ using $k \sim \delta^{-3} \log N$ samples. This result is significant because it matches the optimal dependency on the number of points ($N$) and comes very close to the optimal $\delta^{-2}$ dependency for distortion found in dense Gaussian embeddings.

2. Overcoming the Coherence Trap

A common failure mode for fast transforms occurs when the input data is "spiky" (i.e., most of the energy is concentrated in a few coordinates). By utilizing a randomized Hadamard transform layer, this analysis demonstrates that the success of the embedding is entirely independent of the input data's geometry. This makes the circulant approach robust for any arbitrary dataset.

3. Efficiency Regimes

The paper establishes two primary regimes for success:

  • Optimal Finite Set Embedding: If $\log N \lesssim n^{1/3}$, the embedding succeeds for all $N$ points with high probability.
  • High-Probability Success for Most Points: Under the more relaxed condition of $\log N \lesssim \sqrt{n}$, the embedding still succeeds optimally for the vast majority of the dataset.

Discussion and Future Work

This work confirms that practitioners do not need to sacrifice theoretical rigor for computational speed. The $O(n \log n)$ circulant projection is theoretically as robust as the $O(kn)$ dense projection for binary embedding tasks.

However, some open questions remain. The current proof is limited to the regime where the embedding dimension $k$ scales up to $O(\sqrt{n})$. Whether these near-optimal bounds hold in the linear regime ($k \sim O(n)$) is still unknown. Additionally, while the theory currently requires Gaussian modulation, empirical evidence suggests that Rademacher (binary $\pm 1$) modulation may perform equally well, which would further simplify hardware implementations. Finally, extending this analysis to other nonlinearities, such as ReLU or sigmoid functions used in neural networks, represents a promising frontier for future research.

Summary updated

BibTeX
@inproceedings{oymak2017near,
  author = {Samet Oymak and Christos Thrampoulidis and Babak Hassibi},
  title = {{Near-optimal sample complexity bounds for circulant binary embedding}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2017},
  doi = {10.1109/icassp.2017.7953380},
}
Figure