Random Manhattan Integer Indexing: Incremental L1 Normed Vector Space Construction

Behrang Q. Zadeh, Siegfried HandschuhEMNLP 2014

Abstract

High-dimensional vector space models are foundational to modern distributional semantics but are often hindered by noise and extreme computational demands. This paper presents Random Manhattan Indexing (RMI) and its quantized variant, Random Manhattan Integer Indexing (RMII). These methods leverage sparse Cauchy random projections to incrementally build compressed vector spaces that specifically preserve Manhattan ($L_1$) distances. By utilizing the 1-stable property of Cauchy distributions, the authors offer a scalable solution to the "curse of dimensionality" while maintaining robust similarity measures suited for the Zipfian distributions of natural language data.

Introduction

In distributional semantics, words are represented as vectors within a high-dimensional space defined by their contexts. As corpora scale, these spaces can reach millions of dimensions, leading to extreme sparsity and the inclusion of irrelevant, noisy features. Traditional dimensionality reduction techniques, such as Singular Value Decomposition (SVD) or standard Random Indexing (RI), are typically optimized for Euclidean ($L_2$) distances. However, $L_2$ norms are highly sensitive to outliers—a significant drawback given the power-law distribution of linguistic data. Manhattan ($L_1$) distance offers a more robust alternative, yet until now, no scalable, incremental method existed for constructing $L_1$-normed reduced spaces.

Methodology

The authors propose two primary techniques to address this gap:

Random Manhattan Indexing (RMI)

RMI integrates vector space construction with dimensionality reduction using Cauchy random projections. The Cauchy distribution is "1-stable," meaning it is mathematically guaranteed to preserve $L_1$ distances during projection. In RMI, each context element is assigned a sparse "index vector" with entries drawn from a Cauchy-like distribution. Word vectors are then built incrementally by accumulating these index vectors as the corpus is processed. Because Cauchy distributions lack a defined mean, distances are estimated using the sample median or a log-transformed geometric mean.

Random Manhattan Integer Indexing (RMII)

To optimize for computational efficiency, RMII replaces floating-point Cauchy values with integers. This quantization reduces memory overhead and avoids the costs associated with floating-point arithmetic and potential overflow, all while retaining the essential $L_1$-preserving properties of the original RMI method.

Experimental Evaluation

The methods were evaluated using the UKWaC corpus, a 2-billion-token crawl of the .uk domain. A benchmark subset of 31 words (nouns, adjectives, and verbs) was used to compare similarity rankings in the original 2.69-million-dimensional space against the compressed RMI/RMII spaces. The primary performance metric was Spearman’s rank correlation ($\rho$).

Results and Analysis

The experiments demonstrated that RMI and RMII achieve high fidelity to the original high-dimensional space.

Spearman’s rank correlation (ρ) across different target dimensions (m) and varying numbers of non-zero elements.

As shown in Figure 2, when the reduced dimensionality ($m$) reaches 400 or higher, the correlation ($\rho$) consistently exceeds 0.90. Furthermore, the stability of the method increases with dimensionality; the variance between the best and worst observed correlations narrows significantly at higher values of $m$. Notably, the integer-based RMII performed nearly identically to the floating-point RMI, confirming that high-precision floats are not required to preserve semantic structure.

Parameter Sensitivity and Future Work

The effectiveness of RMI/RMII is influenced by two key parameters: the target dimensionality ($m$) and the number of non-zero elements in the index vectors ($s$).

Surface plot showing the average Spearman correlation (ρ̄) as a function of dimension and the number of non-zero elements.

Figure 6 illustrates the relationship between these parameters. While the method is robust, performance peaks at specific configurations of $s$ relative to $m$. Future research is needed to establish more precise heuristics for these settings. Additionally, while this work focuses on preserving the original space, future studies should investigate whether $L_1$-normed spaces provide superior performance in downstream NLP tasks, such as document classification or sentiment analysis, compared to traditional $L_2$ models.

Conclusion

Random Manhattan Indexing provides a mathematically grounded, incremental, and computationally efficient framework for $L_1$ dimensionality reduction. By enabling the robust processing of massive linguistic datasets, RMI and RMII represent a significant step forward in the scalable construction of semantic vector spaces.

Summary updated

BibTeX
@inproceedings{zadeh2014random,
  author = {Behrang Q. Zadeh and Siegfried Handschuh},
  title = {{Random Manhattan Integer Indexing: Incremental L1 Normed Vector Space Construction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2014},
  doi = {10.3115/v1/d14-1178},
}
Figure