Introduction
Commonsense knowledge—the basic facts about the world we all take for granted, such as "a musician can play an instrument"—is rarely stated explicitly in text. This scarcity makes it incredibly difficult for machines to learn. The standard approach to solving this is Commonsense Knowledge Base Completion (CKBC), where a model is trained on a database like ConceptNet to predict if a new "triple" (Head, Relation, Tail) is true.
However, existing supervised models suffer from "train-test leakage." Because many test samples are rephrased versions of training samples, models often appear to "know" commonsense when they are actually just memorizing the specific structure of the database. When these models are tested on entirely new data (like Wikipedia), their performance often plummets. This paper explores an unsupervised approach to mine this knowledge directly from pre-trained language models.
Methodology
The authors propose a two-step unsupervised pipeline that treats a language model as a zero-shot knowledge base without any additional supervised training.
1. Coherency Ranking (Sentence Generation)
To query a language model about a triple like (ferret, AtLocation, pet store), it must first be converted into a natural sentence. The authors use hand-crafted templates and then employ GPT-2 to rank several variations. The variation with the highest log-likelihood—the most "natural" sounding one—is selected for scoring.
2. PMI Scoring
Once a sentence is selected, BERT (a masked bidirectional model) is used to calculate the Pointwise Mutual Information (PMI) between the head and the tail, conditioned on the relation. This essentially measures how much the presence of the tail word (e.g., "pet store") boosts the probability of the head word (e.g., "ferret"). If the presence of the tail significantly increases the likelihood of the head, the triple is considered a valid piece of commonsense.
Experimental Results
The models were evaluated on two primary datasets: ConceptNet 5 (Task 1: CKBC) and a curated set of 1.7M triples from Wikipedia (Task 2: Mining) to test generalization to unseen real-world data.
Key Findings
- Generalization vs. Memorization: While supervised models (like DNN) score higher on ConceptNet (Task 1), they fail to generalize to Wikipedia (Task 2). The unsupervised "Coherency Rank" method achieved a quality score of 3.00 on Task 2, significantly outperforming the best supervised models, which scored between 2.50 and 2.61.
- Language Models as Knowledge Repositories: The results reinforce the idea that large-scale pre-trained models act as compressed repositories of human knowledge rather than simple pattern matchers.
- The Importance of Grammar: The way a question is phrased matters. Triples converted into grammatical sentences resulted in an F1 score of 79.1, compared to only 66.7 for ungrammatical ones, proving that fluency is a strong proxy for truth in these models.
Discussion and Future Work
While effective, the method currently relies on hand-crafted templates, which limits scalability across thousands of relation types. Additionally, the model can struggle with ambiguous triples requiring specific context.
Future research aims to move beyond ranking existing triples toward generating entirely new commonsense facts from scratch. The authors also suggest that this PMI-based approach could be extended to mine specialized facts in fields like science or medicine, potentially automating the verification of complex knowledge bases.
Summary updated