Scaling to Large3 Data: An Efficient and Effective Method to Compute Distributional Thesauri

Martin Riedl, Chris BiemannEMNLP 2013

Introduction

Distributional Thesauri (DTs) are built on the "distributional hypothesis," which posits that words appearing in similar contexts share similar meanings. While DTs are foundational to many Natural Language Processing (NLP) tasks, constructing them at scale presents a significant computational challenge. As the size of a text corpus increases, the number of terms and context features grows exponentially. Traditional similarity measures, such as those proposed by Lin or Curran, typically involve $O(N^2)$ complexity, requiring every word to be compared against every other word. This makes processing "Large³" data—datasets containing billions of sentences—computationally prohibitive for most researchers. This paper introduces a highly scalable MapReduce-based approach designed to achieve high-quality results using relatively modest computational resources.

Methodology: The JoBimText Framework

The authors utilize the JoBimText framework, implementing a pipeline based on the MapReduce paradigm. The process is divided into two primary stages:

  1. The Holing System: Observations, such as dependency parses, are decomposed into <term, context> pairs. For instance, in the sentence "the dog barked," the term "dog" is associated with the context "subject-of:barked."
  2. Distributional Similarity with Aggressive Pruning: To overcome the $O(N^2)$ bottleneck, the authors implement several pruning strategies:
  3. Frequency Counting and Feature Filtering: Contexts that appear with an excessive number of terms (e.g., >1,000) are discarded as they are too generic to provide semantic signal.
  4. Significance Scoring: Term-context associations are scored using Pointwise Mutual Information (PMI) or Lexicographer’s Mutual Information (LMI).
  5. Saliency Pruning: For each term, only the top $p$ (e.g., 1,000) most salient context features are retained.
  6. Simplified Similarity Measure: Instead of complex vector-based calculations like Cosine similarity, the method simply counts the number of shared salient features between two terms.

This "counting" approach, combined with aggressive pruning, significantly reduces memory overhead and computational time while simultaneously improving accuracy by removing noisy, low-saliency data.

Experimental Evaluation

The method was evaluated across three major datasets: English Wikipedia (36 million sentences), a Newspaper Corpus (120 million sentences), and the massive Google Books Syntactic N-grams (17.6 billion sentences). Performance was measured against a gold standard of 2,000 nouns (1,000 frequent and 1,000 infrequent) using resources like WordNet, Roget’s Thesaurus, and Merriam-Webster.

Key Results and Scaling Behavior

The experiments revealed that pruning is not merely an optimization but a feature that improves quality. By removing "low saliency" features, the algorithm avoids spurious similarity scores caused by noise.

Scaling of similarity measures for frequent words across Wikipedia and Newspaper datasets.

As shown in the scaling analysis, the choice of significance measure is critical as data scales. While PMI is popular, it tends to over-emphasize rare, unreliable contexts, leading to a performance drop as the corpus grows. In contrast, Lexicographer’s Mutual Information (LMI), which weights PMI by frequency, consistently improves with more data. On the 120-million-sentence newspaper corpus, the LMI-based method outperformed the classic Lin and Curran measures.

Performance comparison for infrequent words in the Newspaper corpus.

The method also proved robust for infrequent words, as illustrated in the comparative performance charts. On the massive Google Books dataset, the authors achieved a Precision@1 of 76% for frequent nouns. Remarkably, the DT for this 17.6-billion-sentence corpus was computed in under 30 hours on a Hadoop cluster with only 192 cores—a task that would crash standard vector-based tools even on high-RAM servers.

Conclusion

The study demonstrates that simplicity and aggressive pruning are key to scaling distributional semantics to "Large³" data. By reducing similarity calculations to simple counts of shared salient features and favoring LMI over PMI, the authors provide a pathway for high-quality thesaurus construction on modest hardware. While dependency parsing remains a significant pre-processing bottleneck, the efficiency of the similarity calculation itself represents a major step forward for large-scale lexical semantics.

Summary updated

BibTeX
@inproceedings{riedl2013scaling,
  author = {Martin Riedl and Chris Biemann},
  title = {{Scaling to Large3 Data: An Efficient and Effective Method to Compute Distributional Thesauri}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2013},
  doi = {10.18653/v1/d13-1089},
}
Figure