Definitioncore
Resnik similarity
Also called information content similarity.
The similarity of two concepts in a taxonomy as the information content -log P(c) of their most informative common subsumer.
Resnik similarity measures how similar two concepts of a taxonomy are by the information content of the most specific concept that subsumes both. A taxonomy such as the noun hierarchy of WordNet puts "cat" and "dog" under "mammal", and "cat" and "car" only under the root, "entity". Resnik 1995 gives each concept a probability from corpus counts and scores a pair by the self-information of their common subsumer with the largest value. A rare, specific subsumer such as "bird" means a high similarity, and the root, with probability 1, means similarity 0. Unlike counting the edges of the path between two concepts, the measure does not assume that all links of the taxonomy have the same length. That it agrees with human ratings better than edge counting is a measurement.
Definition
Let a taxonomy be a directed acyclic graph of concepts with one root, in which an edge from to says that is a kind of . Concept subsumes if or is an ancestor of . Each word is attached to the concepts that are its senses, and is the set of words attached to or to a concept that subsumes. From a corpus with the count of each word,
where is the frequency of the root. The Resnik similarity of two concepts is
where is the set of concepts that subsume both. For two words, Resnik takes the largest similarity over their senses: over the senses of and of . The base of the logarithm sets the unit; the examples below use base 2, so the values are in bits.
These facts follow from the definition.
- Monotone. If subsumes , then , so and . The information content does not grow toward the root, and the root has .
- Trees. In a tree, is the path from the lowest common ancestor to the root, so by monotonicity the most informative common subsumer is the lowest common ancestor. In a DAG there can be several lowest common subsumers, and the maximum chooses among them.
- Range. . The root is a common subsumer, which gives the lower bound, and every common subsumer subsumes and , so by monotonicity its information content is at most theirs. is symmetric.
- Not a normalized score. , which differs from concept to concept, so the similarity of a concept with itself is not a constant.
- Ambiguous words. Resnik 1995 adds the count of an ambiguous word to every concept of each of its senses. A common variant divides the count among the senses.
Examples and non-examples
A small taxonomy. The tree and the counts below are written for this page, with noun tokens.
| concept | parent | freq | P | IC (bits) |
|---|---|---|---|---|
| entity | (root) | 100 | 1 | 0 |
| animal | entity | 58 | 0.58 | 0.7859 |
| mammal | animal | 50 | 0.50 | 1.0000 |
| cat | mammal | 20 | 0.20 | 2.3219 |
| dog | mammal | 30 | 0.30 | 1.7370 |
| bird | animal | 8 | 0.08 | 3.6439 |
| sparrow | bird | 5 | 0.05 | 4.3219 |
| eagle | bird | 3 | 0.03 | 5.0589 |
| artifact | entity | 42 | 0.42 | 1.2515 |
| vehicle | artifact | 35 | 0.35 | 1.5146 |
| car | vehicle | 25 | 0.25 | 2.0000 |
| bicycle | vehicle | 10 | 0.10 | 3.3219 |
| tool | artifact | 7 | 0.07 | 3.8365 |
| hammer | tool | 7 | 0.07 | 3.8365 |
Only the leaves have counts. The frequency of an inner concept is the sum over the leaves below it.
| pair | most informative subsumer | sim (bits) |
|---|---|---|
| sparrow, eagle | bird | 3.6439 |
| car, bicycle | vehicle | 1.5146 |
| car, hammer | artifact | 1.2515 |
| cat, dog | mammal | 1.0000 |
| cat, sparrow | animal | 0.7859 |
| cat, car | entity | 0 |
Sparrow and eagle come out more similar than cat and dog, because "bird" is rarer in this corpus than "mammal". The measure rewards a specific common class, and here specific means rare. Car and hammer, whose common class is "artifact", also come out more similar than cat and dog, although their path in the tree has 4 edges and the path from cat to dog has 2. The counts decide, not the shape of the tree.
Self-similarity. and , which is less than . So a dog is less similar to itself than a sparrow is to an eagle. This is a known weakness that the normalized measures below fix.
The measurement. Resnik 1995 took the frequencies from the nouns of the Brown corpus over WordNet and compared the measure with the human ratings of 30 noun pairs from Miller and Charles. The correlation was for information content, against for edge counting and for the probability of the subsumer alone. A replication of the ratings with new subjects gave correlations near 0.9 with the original ratings (Resnik reports 0.9015, and 0.8848 as the average per subject), which serves as an upper bound.
Not: a distance. The value grows with similarity and has no fixed maximum, and is not a constant, so it cannot be turned into a distance that is 0 exactly for equal concepts by subtracting it from a constant.
Not: distributional similarity. The counts only give the weights of the concepts. Whether two concepts share a subsumer comes from the hand-built taxonomy, not from the contexts of the words as in the distributional hypothesis. Two words that never occur near each other can be very similar.
Related definitions
- Self-information. is the self-information of the event that a random noun token falls under .
- Lin similarity. , with lcs the most informative common subsumer, is in and gives 1 for a concept with itself. In the table, cat and dog get , and sparrow and eagle .
- Jiang and Conrath distance. is 0 for a concept with itself. In the table, cat and dog get and cat and car .
- Path length. The number of edges between the two concepts, through the lowest common subsumer. Resnik's argument against it is that the links of a taxonomy do not all stand for the same distance in meaning.
- Uses. The similarity of the senses of nearby words is a knowledge source for word sense disambiguation, and taxonomies can be extended with pairs from Hearst patterns. Rank correlation, such as Spearman's, is the usual way to compare a measure with human ratings.
References
- Resnik 1995, the definition of similarity as the information content of the most informative common subsumer, the class frequencies from noun counts in the Brown corpus over WordNet, the maximum over senses for words, and the correlations with human ratings
- Daniel Jurafsky and James H. Martin, Speech and Language Processing, third edition draft, Appendix Word Senses and WordNet, the section on word similarity in a thesaurus
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag QP71HQ Edit this page History Report an error Markdown