Skip to main content
QUICK REVIEW

[Paper Review] Understanding Sparse JL for Feature Hashing

Meena Jagadeesan|arXiv (Cornell University)|Mar 8, 2019
Advanced Image and Video Retrieval TechniquesComputer Science28 references6 citations
TL;DR

This paper provides a tight theoretical analysis of sparse Johnson-Lindenstrauss (JL) transforms with general sparsity $s > 1$ for feature hashing, demonstrating that higher sparsity significantly improves norm preservation on feature vectors with low $\ell_\infty$-to-$\ell_2$ ratio. It generalizes prior work on $s=1$ and confirms empirically that $s>1$ yields better accuracy and lower failure probability in practice.

ABSTRACT

Feature hashing and other random projection schemes are commonly used to reduce the dimensionality of feature vectors. The goal is to efficiently project a high-dimensional feature vector living in $\mathbb{R}^n$ into a much lower-dimensional space $\mathbb{R}^m$, while approximately preserving Euclidean norm. These schemes can be constructed using sparse random projections, for example using a sparse Johnson-Lindenstrauss (JL) transform. A line of work introduced by Weinberger et. al (ICML '09) analyzes the accuracy of sparse JL with sparsity 1 on feature vectors with small $\ell_\infty$-to-$\ell_2$ norm ratio. Recently, Freksen, Kamma, and Larsen (NeurIPS '18) closed this line of work by proving a tight tradeoff between $\ell_\infty$-to-$\ell_2$ norm ratio and accuracy for sparse JL with sparsity $1$. In this paper, we demonstrate the benefits of using sparsity $s$ greater than $1$ in sparse JL on feature vectors. Our main result is a tight tradeoff between $\ell_\infty$-to-$\ell_2$ norm ratio and accuracy for a general sparsity $s$, that significantly generalizes the result of Freksen et. al. Our result theoretically demonstrates that sparse JL with $s > 1$ can have significantly better norm-preservation properties on feature vectors than sparse JL with $s = 1$; we also empirically demonstrate this finding.

Motivation & Objective

  • To close the theoretical gap in understanding sparse JL transforms with sparsity $s > 1$ for feature hashing.
  • To establish a tight tradeoff between $\ell_\infty$-to-$\ell_2$ norm ratio and accuracy for general sparsity $s$.
  • To demonstrate theoretically and empirically that $s > 1$ significantly improves norm-preservation properties compared to $s = 1$.
  • To resolve the practical tradeoff between sparsity and projection efficiency in high-dimensional feature spaces.

Proposed method

  • Derives a tight upper bound on the failure probability of sparse JL transforms for general sparsity $s$, based on moment and tail probability analysis.
  • Uses a generalized analysis of the $\ell_q$-norm of random projections to characterize the behavior of sparse matrices with $s > 1$.
  • Applies concentration inequalities and moment bounds to relate the $\ell_\infty$-to-$\ell_2$ norm ratio to the distortion of the projected vector.
  • Introduces a refined analysis of the random projection matrix with $s$ non-zero entries per column, each $\pm 1/\sqrt{s}$, to bound the $\ell_2$-norm preservation.
  • Employs a phase transition analysis to evaluate the failure probability $\delta$ as a function of $m$, $s$, $\epsilon$, and the $\ell_\infty$-to-$\ell_2$ ratio.
  • Validates theoretical findings through experiments on synthetic and real-world datasets (e.g., News20, Enron), measuring $\hat{v}(m,\epsilon,\delta,s)$ and $\hat{\delta}(m,s,\epsilon)$.

Experimental results

Research questions

  • RQ1How does increasing sparsity $s$ beyond 1 affect the norm-preservation accuracy of sparse JL transforms on feature vectors?
  • RQ2What is the tightest possible tradeoff between the $\ell_\infty$-to-$\ell_2$ norm ratio and the failure probability $\delta$ for general $s > 1$?
  • RQ3Can theoretical improvements in norm preservation with $s > 1$ be empirically observed in real-world and synthetic datasets?
  • RQ4Why does the failure probability $\delta$ exhibit non-monotonic behavior as a function of $s$ in practice, despite asymptotic theory?

Key findings

  • The paper establishes a tight tradeoff between $\ell_\infty$-to-$\ell_2$ norm ratio and accuracy for sparse JL with general sparsity $s$, generalizing prior results that were limited to $s=1$.
  • It is theoretically demonstrated that sparse JL with $s > 1$ provides significantly better norm-preservation properties than $s=1$ for feature vectors with low $\ell_\infty$-to-$\ell_2$ ratio.
  • Empirical results confirm that higher $s$ leads to lower failure probability $\delta$ and improved accuracy, especially in the phase transition regime.
  • The failure probability $\delta$ shows non-monotonic behavior as a function of $s$, with local maxima observed in $s \in [12,16]$ and $[24,32]$ for certain $m$ and $\epsilon$, suggesting complex tradeoffs.
  • Theoretical bounds show that $\|R(v,\ldots,v,0,\ldots,0)\|_q / \|R(v,\ldots,v,0,\ldots,0)\|_{2q} \geq D$ for some constant $D$, confirming robust norm preservation.
  • The analysis confirms that $\|R(v,\ldots,v,0,\ldots,0)\|_q \geq 2048\epsilon$, indicating strong concentration of measure for $s > 1$.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.