Second-order co-occurrence pointwise mutual information

From HandWiki
Revision as of 05:10, 10 May 2022 by imported>John Marlo (fix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In computational linguistics, second-order co-occurrence pointwise mutual information is a semantic similarity measure. To assess the degree of association between two given words, it uses pointwise mutual information (PMI) to sort lists of important neighbor words of the two target words from a large corpus.

History

The PMI-IR method used AltaVista's Advanced Search query syntax to calculate probabilities. Note that the "NEAR" search operator of AltaVista is an essential operator in the PMI-IR method. However, it is no longer in use in AltaVista; this means that, from the implementation point of view, it is not possible to use the PMI-IR method in the same form in new systems. In any case, from the algorithmic point of view, the advantage of using SOC-PMI is that it can calculate the similarity between two words that do not co-occur frequently, because they co-occur with the same neighboring words. For example, the British National Corpus (BNC) has been used as a source of frequencies and contexts.

Methodology

The method considers the words that are common in both lists and aggregate their PMI values (from the opposite list) to calculate the relative semantic similarity. We define the pointwise mutual information function for only those words having [math]\displaystyle{ f^b (t_i, w)\gt 0 }[/math],

[math]\displaystyle{ f^\text{pmi}(t_i,w)=\log_2 \frac{f^b (t_i,w)\times m}{f^t (t_i)f^t (w)}, }[/math]

where [math]\displaystyle{ f^t (t_i) }[/math] tells us how many times the type [math]\displaystyle{ t_i }[/math] appeared in the entire corpus, [math]\displaystyle{ f^b(t_i, w) }[/math] tells us how many times word [math]\displaystyle{ t_i }[/math] appeared with word [math]\displaystyle{ w }[/math] in a context window and [math]\displaystyle{ m }[/math] is total number of tokens in the corpus. Now, for word [math]\displaystyle{ w }[/math], we define a set of words, [math]\displaystyle{ X^w }[/math], sorted in descending order by their PMI values with [math]\displaystyle{ w }[/math] and taken the top-most [math]\displaystyle{ \beta }[/math] words having [math]\displaystyle{ f^\text{pmi}(t_i, w)\gt 0 }[/math].

The set [math]\displaystyle{ X^w }[/math], contains words [math]\displaystyle{ X_i^w }[/math],

[math]\displaystyle{ X^w=\{X_i^w\} }[/math], where [math]\displaystyle{ i=1, 2, \ldots ,\beta }[/math] and
[math]\displaystyle{ f^\text{pmi}(X_1^w, w)\geq f^\text{pmi}(X_2^w, w)\geq \cdots f^\text{pmi}(X_{\beta-1}^w, w)\geq f^\text{pmi}(X_\beta^w, w) }[/math]

A rule of thumb is used to choose the value of [math]\displaystyle{ \beta }[/math]. The [math]\displaystyle{ \beta }[/math]-PMI summation function of a word is defined with respect to another word. For word [math]\displaystyle{ w_1 }[/math] with respect to word [math]\displaystyle{ w_2 }[/math] it is:

[math]\displaystyle{ f(w_1,w_2,\beta)=\sum_{i=1}^\beta (f^\text{pmi}(X_i^{w_1},w_2))^\gamma }[/math]

where [math]\displaystyle{ f^\text{pmi}(X_i^{w_1},w_2)\gt 0 }[/math] which sums all the positive PMI values of words in the set [math]\displaystyle{ X^{w_2} }[/math] also common to the words in the set [math]\displaystyle{ X^{w_1} }[/math]. In other words, this function actually aggregates the positive PMI values of all the semantically close words of [math]\displaystyle{ w_2 }[/math] which are also common in [math]\displaystyle{ w_1 }[/math]'s list. [math]\displaystyle{ \gamma }[/math] should have a value greater than 1. So, the [math]\displaystyle{ \beta }[/math]-PMI summation function for word [math]\displaystyle{ w_1 }[/math] with respect to word [math]\displaystyle{ w_2 }[/math] having [math]\displaystyle{ \beta=\beta_1 }[/math] and the [math]\displaystyle{ \beta }[/math]-PMI summation function for word [math]\displaystyle{ w_2 }[/math] with respect to word [math]\displaystyle{ w_1 }[/math] having [math]\displaystyle{ \beta=\beta_2 }[/math] are

[math]\displaystyle{ f(w_1,w_2,\beta_1)=\sum_{i=1}^{\beta_1}(f^\text{pmi}(X_i^{w_1},w_2))^\gamma }[/math]

and

[math]\displaystyle{ f(w_2,w_1,\beta_2)=\sum_{i=1}^{\beta_2}(f^\text{pmi}(X_i^{w_2},w_1))^\gamma }[/math]

respectively.

Finally, the semantic PMI similarity function between the two words, [math]\displaystyle{ w_1 }[/math] and [math]\displaystyle{ w_2 }[/math], is defined as

[math]\displaystyle{ \mathrm{Sim}(w_1,w_2)=\frac{f(w_1,w_2,\beta_1)}{\beta_1}+\frac{f(w_2,w_1,\beta_2)}{\beta_2}. }[/math]

The semantic word similarity is normalized, so that it provides a similarity score between [math]\displaystyle{ 0 }[/math] and [math]\displaystyle{ 1 }[/math] inclusively. The normalization of semantic similarity algorithm returns a normalized score of similarity between two words. It takes as arguments the two words, [math]\displaystyle{ r_i }[/math] and [math]\displaystyle{ s_j }[/math], and a maximum value, [math]\displaystyle{ \lambda }[/math], that is returned by the semantic similarity function, Sim(). For example, the algorithm returns 0.986 for words cemetery and graveyard with [math]\displaystyle{ \lambda=20 }[/math] (for SOC-PMI method).

References