Skip to main content
QUICK REVIEW

[Paper Review] Google distance between words

Bjørn Kjos-Hanssen, Alberto J. Evangelista|arXiv (Cornell University)|Jan 27, 2009
Computability, Logic, AI AlgorithmsComputer Science2 references15 citations
TL;DR

This paper identifies a critical flaw in Cilibrasi and Vitányi's Normalized Google Distance (NGD) by demonstrating that it violates the triangle inequality—a foundational property of metric spaces. Using empirical data from Google search frequencies and simulated annealing, the authors present counterexamples (e.g., 'Rolling Stones', 'Beatles', 'salmonflies') where NGD fails to satisfy triangle inequality, challenging NGD's validity as a true distance metric in semantic similarity applications.

ABSTRACT

Cilibrasi and Vitanyi have demonstrated that it is possible to extract the meaning of words from the world-wide web. To achieve this, they rely on the number of webpages that are found through a Google search containing a given word and they associate the page count to the probability that the word appears on a webpage. Thus, conditional probabilities allow them to correlate one word with another word's meaning. Furthermore, they have developed a similarity distance function that gauges how closely related a pair of words is. We present a specific counterexample to the triangle inequality for this similarity distance function.

Motivation & Objective

  • To evaluate the theoretical and empirical validity of the Normalized Google Distance (NGD) as a metric for word similarity.
  • To investigate whether NGD satisfies the triangle inequality, a key requirement for any distance function.
  • To identify and validate counterexamples where NGD fails the triangle inequality using real-world web search data.
  • To assess the frequency and implications of such violations in practical applications of NGD.
  • To propose a more robust alternative metric that satisfies the triangle inequality without relying on a global corpus size M.

Proposed method

  • The authors compute NGD using the standard formula: NGD(x,y) = [max{log f(x), log f(y)} - log f(x,y)] / [log M - min{log f(x), log f(y)}], where f(x) is the Google search hit count for word x and M is the total indexed webpages.
  • They test the triangle inequality using the triangle difference: TD = NGD(x,y) + NGD(y,z) - NGD(x,z), expecting TD ≥ 0 if the triangle inequality holds.
  • Empirical evaluation is performed on multiple word sets, including random words and thematic sets like 'Rolling Stones', 'Beatles', 'salmonflies', to detect violations.
  • A simulated annealing algorithm is used to search for counterexamples by iteratively replacing words in triples to find NGD violations.
  • The authors compare NGD with an alternative metric: the normalized symmetric-set-difference metric d(A,B) = P(Ā ∪ B̄ | A ∪ B), which is proven to satisfy the triangle inequality.
  • Statistical confidence intervals are applied to estimate the upper bound of the violation rate, using a binomial model with n=50 samples and X=0 observed violations.

Experimental results

Research questions

  • RQ1Does the Normalized Google Distance (NGD) satisfy the triangle inequality in practice?
  • RQ2How frequently do NGD violations occur in real-world word triples extracted from web search data?
  • RQ3Can counterexamples to the triangle inequality in NGD be systematically identified using search frequency data?
  • RQ4What are the implications of NGD's failure to satisfy the triangle inequality for its use in semantic similarity and NLP applications?
  • RQ5Can a more robust metric be constructed that satisfies the triangle inequality and avoids reliance on a fixed corpus size M?

Key findings

  • The NGD metric fails to satisfy the triangle inequality, as demonstrated by a counterexample involving the words 'Rolling Stones', 'Beatles', and 'salmonflies', where NGD(Rolling Stones, salmonflies) = 1.06 > NGD(Rolling Stones, Beatles) + NGD(Beatles, salmonflies) = 0.23 + 0.81 = 1.04.
  • The authors found a counterexample using a simulated annealing approach, replacing words in a triple until a violation was found, confirming that such failures are not random anomalies.
  • Based on 50 sampled triples from the COCA corpus, the authors estimate that NGD violations occur in approximately 1 in 200 triples, with a 95% confidence upper bound of p ≤ 1/16 for the violation probability.
  • The expectation value of NGD across multiple word sets was found to be approximately 0.73, with a standard deviation of 0.14, indicating that random word pairs are not independent as assumed in NGD's theoretical derivation.
  • The normalized symmetric-set-difference metric d(A,B) = P(Ā ∪ B̄ | A ∪ B) is shown to satisfy the triangle inequality and does not require a global corpus size M, making it a more theoretically sound alternative.
  • Empirical analysis of 10 triples from COCA revealed specific problematic cases, such as 'burnished' returning more results when combined with 'growth' than alone, indicating non-monotonicity in co-occurrence patterns.

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.