Abstract
While Wikidata is a massive repository of human knowledge, its current structure is too inconsistent to support complex analogical reasoning "out of the box." This paper identifies the gaps in Wikidata's relational modeling and proposes a new set of ontological metrics to automatically extract high-quality analogies for AI training.
Introduction
Analogical reasoning—the ability to understand that "a heart is to a pump as a brain is to a computer"—is a cornerstone of human intelligence. While Large Language Models (LLMs) have popularized simple word analogies (like man:woman :: king:queen), they often struggle with more complex, domain-specific relational thinking.
Knowledge Graphs (KGs) like Wikidata seem like the perfect resource to solve this, as they contain millions of structured facts. However, a major gap exists: the internal logic of Wikidata has not been rigorously tested for consistency in supporting analogical tasks. If the "subclass-of" relation for "red wine" is modeled differently than for "electric charge," a reasoning system will likely fail. This research investigates this consistency and proposes a framework to turn Wikidata's crowd-sourced data into a robust resource for analogy research.
Methodology
The researchers approached the problem through three distinct phases:
1. Manual Consistency Audit
The team sampled subclass-of (P279) relations and manually categorized them into seven semantic types: PURPOSE, PROPERTY, LOCATION, OWNERSHIP, MATERIAL, INSTANCE, and TEMPORAL. They then checked if Wikidata provided "qualifiers" (extra details) to explain these relationships.
2. Analogy Classification Benchmark
They built a dataset of 200 "quadruples" (two pairs of words) and tested how well standard NLP models (GloVe, Word2Vec, and BERT) could distinguish between true analogies and random pairs. The benchmark included three levels of difficulty:
- Pos-direct: Pairs sharing a common object (e.g., computer science:science :: food science:science).
- Pos-parent: Pairs whose objects share a parent.
- Pos-distant: Pairs with semantically related but distant ancestors (e.g., computer keyboard:keyboard :: display device:device).
3. Ontological Metric Design
To move away from manual effort, the authors proposed four mathematical metrics to identify "good" analogies based on the graph's structure:
- Instance Count (Generality): Ensuring the concepts aren't too niche.
- Reduction Ratio (Selectivity): Measuring how distinct a child class is from its parent.
- Class Overlap (Salience): Using Jaccard similarity to ensure sibling classes (like "painting" and "film") are distinct enough to be compared.
- Entropy (Diversity): Ensuring a parent class has a healthy variety of subclasses.
Key Insights and Analysis
The Sparsity of Structured Knowledge
The audit revealed that Wikidata is remarkably "sparse." Only 20% of the sampled relations had qualifiers to explain the nature of the subclass. This means the "why" behind a relationship is often missing from the structured data, leaving reasoning systems to guess the semantic intent.
The "Goldilocks" Problem
A high-quality analogy needs to be "just right." If concepts are too specific (like "butter mill"), they are inaccessible to most models. Conversely, if they are too similar to their parents, the analogy becomes trivial. The proposed ontological metrics aim to find this middle ground automatically.
Limitations of Vector Math
While BERT achieved the highest accuracy at 81.5% on the classification task, t-SNE visualizations showed it cannot distinguish between types of analogies (e.g., it confuses a "material" analogy with a "location" one). Furthermore, similarity scores for true analogies were surprisingly low (peaking around 0.2–0.3), suggesting that simple embedding calculations are insufficient for capturing the complex relational links found in a Knowledge Graph.
Results
- Supervised BERT: 81.5% accuracy.
- Word2Vec: 74% accuracy.
- GloVe: 72% accuracy.
- Distance Impact: Accuracy dropped significantly as the "ontological distance" between the pairs increased, confirming that "distant analogies" remain a significant challenge for current AI.
Conclusion and Future Work
The study concludes that while Wikidata is a goldmine of information, its crowd-sourced nature leads to inherent modeling inconsistencies. Future work will focus on fully automating the extraction process using the four proposed ontological metrics and investigating "reframing" techniques to normalize how knowledge is stored, making it more "reasoning-ready" for the next generation of AI models.
Summary updated