Abstract
Codifying commonsense knowledge in machines is a longstanding goal of artificial intelligence. Recently, much progress toward this goal has been made with automatic knowledge base (KB) construction techniques. However, such techniques focus primarily on the acquisition of positive (true) KB statements, even though negative (false) statements are often also important for discriminative reasoning over commonsense KBs. As a first step toward the latter, this paper proposes NegatER, a framework that ranks potential negatives in commonsense KBs using a contextual language model (LM). Importantly, as most KBs do not contain negatives, NegatER relies only on the positive knowledge in the LM and does not require ground-truth negative examples. Experiments demonstrate that, compared to multiple contrastive data augmentation approaches, NegatER yields negatives that are more grammatical, coherent, and informative -- leading to statistically significant accuracy improvements in a challenging KB completion task and confirming that the positive knowledge in LMs can be "re-purposed" to generate negative knowledge.
Introduction
Most Commonsense Knowledge Bases (KBs), such as ConceptNet, are collections of positive truths like “A bird can fly” or “A kitchen contains a stove.” However, for an AI to truly understand the world, it also needs to know what is not true. Discriminative models require negative examples to learn the boundaries of "truth."
The challenge is that KBs rarely contain explicit negatives. The standard workaround is "random negative sampling"—swapping a part of a true statement with a random word (e.g., “A bird can [skyscraper]”). This produces "easy" negatives that are nonsensical and uninformative. To build robust models, we need "hard" negatives: statements that are grammatically correct and topically related but factually false (e.g., “A bird can [gallop]”). Manually annotating these is too expensive at scale, creating a need for an automated, unsupervised approach.
Methods
NegatER (Discovery of Negatives in Entity and Relation form) is an unsupervised framework that discovers high-quality negative commonsense facts by repurposing the internal knowledge of pretrained language models. The process operates in three main stages:
- Fine-tuning for Positive Beliefs: A pretrained language model (like BERT) is minimally fine-tuned on a target KB using contrastive learning. This ensures the model has a strong internal "belief" system regarding what is true in that specific KB.
- Candidate Generation via $k$-NN: To ensure negatives are topically relevant (e.g., discussing animals when the subject is a horse), the system uses a $k$-nearest-neighbors search in the embedding space to find similar entities to swap into existing true triples.
- Ranking by Contradiction: This core innovation ranks candidates to find the most "informative" negatives. Two primary ranking methods are proposed:
- $\theta_r$ Ranking: Selecting statements the model classifies as "almost true" but just below the threshold.
- $\nabla$ (Gradient) Ranking: Measuring "surprisal" by calculating the magnitude of the gradient required to make the model "believe" the candidate is true. A high gradient suggests the statement strongly contradicts the model’s fine-tuned knowledge, making it a potent negative example.
Results
The performance of NegatER was evaluated on ConceptNet 5 and a new, more challenging benchmark, ConceptNet-TN (True Negatives), which identifies rare negated relations to create a test set of "hard" negatives.
As shown in the results, NegatER-fine-tuned BERT achieved an accuracy of 95.42% on the standard ConceptNet benchmark, exceeding human estimates (95.00%). Furthermore, training models with NegatER-generated negatives led to a statistically significant improvement of up to 1.90% on the challenging ConceptNet-TN task compared to random sampling. Human validation also confirmed that the gradient-based ranking (NegatER-$\nabla$) was the most effective method for balancing grammatical correctness, topical consistency, and actual falsehood.
Conclusion
NegatER demonstrates that the positive knowledge trapped in language models can be effectively repurposed to identify what is false. By providing "hard" negatives that follow a "Goldilocks" rule—neither too random nor too close to the truth—NegatER manages the tradeoff between informativeness and correctness better than generative baselines. Future work will explore applying NegatER to improve multiple-choice commonsense Question Answering (QA), where high-quality distractors are essential for training robust reasoning systems.
Summary updated