Abstract
Random projections reduce the dimension of a set of vectors while preserving structural information, such as distances between vectors in the set. This paper proposes a novel use of row-product random matrices in random projection, termed Tensor Random Projection (TRP). TRP requires substantially less memory than existing dimension reduction maps. The TRP map is formed as the Khatri-Rao product of several smaller random projections and is compatible with any base random projection, including sparse maps, which enable dimension reduction with very low query cost and no floating point operations. We also develop a reduced variance extension. We provide a theoretical analysis of the bias and variance of the TRP, and a non-asymptotic error analysis for a TRP composed of two smaller maps. Experiments on both synthetic and MNIST data show that our method performs as well as conventional methods with substantially less storage.
Introduction
The Johnson-Lindenstrauss (JL) Lemma is a cornerstone of modern data science, allowing high-dimensional vectors to be projected into a lower-dimensional space while nearly preserving pairwise distances. This technique is essential for tasks ranging from similarity search to privacy-preserving data mining. However, as the input dimension ($d$) grows, the random projection matrix itself becomes massive. Storing a $k \times d$ matrix in memory can be impractical for very high-dimensional data, such as large-scale lexicons or high-order tensors. Tensor Random Projection (TRP) addresses this "storage burden" by leveraging structured randomness to significantly reduce memory and computational costs.
Methodology
The TRP Map
The core innovation of this work is the construction of the projection matrix using the Khatri-Rao product (a matching column-wise Kronecker product) of $N$ smaller random matrices. By using $N$ smaller maps, the storage required scales as $N \sqrt[N]{d}$ instead of $d$. For example, a 2nd-order TRP reduces storage from $d$ to $2\sqrt{d}$.
TRP is compatible with any "base" random projection, including Gaussian, Sparse, and Very Sparse maps. The use of sparse base maps is particularly advantageous as it allows for dimension reduction with zero floating-point operations and very low query costs, making it highly suitable for large-scale database applications.
Variance Reduction: TRP(T)
To mitigate the error inherent in structured projections, the authors introduce a "replicate" version, TRP(T), which averages $T$ independent TRPs. This method allows users to reduce the variance of the projection without needing to increase the target dimension $k$. The paper provides a rigorous theoretical framework, proving that TRP functions as an "expected isometry," meaning it preserves distances on average.
Experimental Results
The performance of TRP was evaluated using synthetic normal vectors (dimensions up to $d=125,000$) and the MNIST dataset (784-dimensional vectors).
Key results include:
- Performance Parity: In experiments on both synthetic and real-world data, TRP performed nearly as well as conventional Random Projections (RP) in preserving pairwise distances and cosine similarity. On MNIST data, the Root Mean Square Error (RMSE) for inner product estimation for TRP(5) was 0.1262, very close to the 0.1198 achieved by standard RP.
- Massive Storage Savings: For a dataset with $d=40,000$, the TRP(5) method required only 1/20th of the storage of a standard Gaussian RP.
- Sketching Success: When applied to low-rank tensor approximation (sketching), TRP showed a similar rate of convergence to standard methods but with significantly lower memory overhead, especially as the order of the tensor ($N$) increased.
Discussion and Future Work
The structured nature of the Khatri-Rao product does not significantly degrade the distance-preserving quality of the projection, which is a key insight of the paper. While the current theoretical bounds for the required dimension $k$ are mathematically looser than standard RP ($O(\epsilon^{-2} \log^4 n)$ vs $O(\epsilon^{-2} \log n)$), empirical results suggest these bounds are pessimistic and that TRP performs better in practice than the current theory predicts.
Future research will focus on closing the theoretical gap for high-order TRPs ($N \ge 3$) and expanding the formal analysis of TRP in the context of low-rank tensor sketching.
Summary updated