techlist.io

Wikipedia

1 posts

OpenAI2018-02-063 min readCurated summary

Discovering types for entity disambiguation

# Discovering Types for Entity Disambiguation OpenAI's approach to entity disambiguation replaces direct reasoning about which object a word refers to with a "20 questions" game over roughly 100 automatically discovered categories. A neural network predicts whether a word in context belongs to each type, and Bayes' theorem then narrows the candidate entities. The method reaches new state-of-the-art accuracy on CoNLL (YAGO) and TAC KBP 2010, and the authors note that near-perfect type prediction would push accuracy close to 99%. ## Building the Type System - Every Wikipedia-internal link is treated as evidence that the link text can refer to the linked entity (e.g., [jaguar] pointing to the Jaguar animal page). - The Wikipedia category tree, via the Wikidata knowledge graph, assigns each entity a set of categories. - Around 100 categories are selected as the type system, so each entity becomes a ~100-dimensional binary vector of category memberships. - A neural network is trained on words plus context to predict these binary vectors, chaining together the link data, category memberships, and chosen types. ## Probabilistic 20 Questions at Inference - The network's outputs are read as per-category probabilities for the word. - If the category memberships were known exactly, the entity would be identified. Since they are not, Bayes' theorem computes the probability of each candidate entity. ## Cleaning the Training Data - Wikidata's "instance of" relation is applied recursively to assign types, for example marking any descendant of "human" as a human. - Raw link statistics are noisy because of anaphora (linking "king" to Charles I) and metonymy (linking a nickname to the band). For instance, "king" had 974 candidate entities, and "queen" linked to the band Queen 4,920 times but to "monarch" only 32 times. - Rather than pruning rare links, the authors map links to their generic meanings using Wikidata's property graph. After this, "king" has 14 candidate entities, and links from "queen" to "monarch" rise from 32 to 3,553. ## Searching for a Good Type System - The search space is too large for exact solutions, so the authors use heuristic search and evolutionary optimization, with gradient descent to train the type classifier. - Good types must be discriminating (they narrow down candidates) and learnable (context reveals them). - Two heuristics guide the search: learnability, measured by the AUC of a classifier predicting each type, and oracle accuracy, the disambiguation accuracy achievable with perfect type predictions. - Learnability scores come from a smaller proxy model that trains in about 2.5 seconds, since the full model takes several days. - Types with low learnability, such as ISBN numbers, tend to be unnatural categories that context does not predict well. ## Neural Type Classifier and Inference - A bidirectional LSTM trained on about 400M tokens each for English and French predicts type membership per word, reaching an F1 above 0.91. - The selected type system includes categories such as Aviation, Clothing, Games, and the very specific "1754 in Canada," which reflects the small 1,000-article training set used for the search. - Coherence-based methods compare entities pairwise at O(N²) cost in document length. This approach runs in O(N) by looking up phrases in a trie, ranking candidates by Wikipedia link frequency weighted by type-classifier likelihood. - New entities can be added by specifying their type memberships alone. ## Limitations and Future Work - The authors plan to compare this type-based inference with end-to-end learned distributed representations. - The type system was discovered on a small Wikipedia subset, and scaling to all of Wikipedia could produce a more broadly applicable set of types.