Introduction
Commonsense knowledge bases (KBs), such as ConceptNet, serve as foundational resources for AI, providing structured truths like "a bird has wings." However, the utility of these KBs for training robust models is limited by their lack of negative knowledge. Standard training procedures often rely on random sampling to generate negatives (e.g., "a bird has a supermarket"), resulting in "easy" negatives that are nonsensical and fail to challenge a model's understanding.
To truly master commonsense, AI requires "hard" negatives—statements that are grammatically correct and topically relevant but factually incorrect (e.g., "a bird has a trunk"). NegatER (Negative Entity Ranking) addresses this by automatically discovering hard negatives in an unsupervised manner, leveraging the latent knowledge already present in pretrained language models.
Methods
The NegatER framework operates through a two-stage pipeline designed to extract "plausibly false" statements from a language model's internal beliefs.
1. Fine-tuning for Positive Beliefs
First, a pretrained language model (LM), such as BERT, is fine-tuned on the existing positive triples within a target KB. This step aligns the model's internal representations with the specific "truths" of the knowledge base, establishing a strong baseline for what the model considers positive knowledge.
2. Ranking Potential Negatives
Once the model is primed, NegatER identifies candidate negatives using a $k$-nearest-neighbor approach to find semantically similar entities. These candidates are then ranked using one of two strategies:
- NegatER-$\theta_r$ (Score-based): This method identifies statements that the model classifies as "just barely" false. These are statements that reside near the decision boundary, representing "almost positive" facts.
- NegatER-$\nabla$ (Gradient-based): This more advanced strategy measures "surprisal." It calculates the gradient magnitude required for the model to update its parameters to accept a candidate statement as true. A high gradient indicates a strong contradiction with the model's established positive beliefs, signaling a high-quality negative.
Key Insights: The Nature of "Hard" Negatives
A central contribution of NegatER is its ability to satisfy three core requirements for high-quality negatives: they must be Grammatical (R1), Topically Consistent (R2), and Informative (R3). While random sampling typically fails these criteria by producing irrelevant nonsense, NegatER's ranking mechanisms ensure that the discovered negatives are plausible distractors.
As shown in the comparison above, random sampling produces triples like ("tickle", HAS_SUBEVENT, "supermarket"), which are easily dismissed. In contrast, NegatER produces "hard" negatives such as ("ride horse", HAS_SUBEVENT, "pedal"), which require a deeper understanding of the entities involved to identify as false.
Results and Evaluation
NegatER demonstrates state-of-the-art performance across multiple benchmarks:
- ConceptNet Accuracy: A BERT model fine-tuned using NegatER reached an accuracy of 95.42%, surpassing previous state-of-the-art methods and even exceeding human estimates (95.00%).
- Hard Negative Benchmarks: On the ConceptNet-TN (True Negatives) dataset, which specifically targets negated relations, NegatER provided a 1.90% improvement over random sampling.
- Human Validation: Human evaluators confirmed that NegatER-$\nabla$ effectively balances consistency and truthfulness. It produced negatives that were rated as "never true" nearly 59% of the time while maintaining high topical relevance.
Limitations and Future Directions
While NegatER provides a powerful unsupervised tool, it is not without limitations. The method's reliance on an LM's internal "beliefs" means it can occasionally inherit biases or errors present in the pretrained model. Additionally, the gradient-based ranking approach is computationally intensive, requiring a backward pass for every candidate. Future work may involve applying NegatER to generate high-quality distractors for complex tasks like multiple-choice commonsense Question Answering.
Summary updated