COMET: Commonsense Transformers for Automatic Knowledge Graph Construction

Antoine Bosselut, Hannah Rashkin, Maarten Sap, Chaitanya Malaviya, Asli Celikyilmaz, Yejin Choi

Introduction

Building on research from the University of Washington and the Allen Institute for AI (AI2), COMET (COMmonsEnse Transformers) represents a paradigm shift in knowledge base construction. Rather than relying on extractive methods to pull facts from text, COMET uses large-scale generative language models to synthesize commonsense knowledge.

The Challenge of Commonsense

Traditional Knowledge Bases (KBs) like DBpedia or Freebase are effective for encyclopedic facts (e.g., "Paris is the capital of France"). However, capturing commonsense knowledge—the intuitive, unwritten rules of the world—presents unique hurdles:

  1. The Sparsity Problem: Commonsense is rarely explicitly stated because it is considered obvious. Humans seldom write "people eat because they are hungry."
  2. The Schema Problem: Commonsense is often best expressed in open-text natural language (e.g., "PersonX needs to buy a gift") rather than rigid, predefined templates.
Figure 1: COMET aims to automatically complete knowledge bases by generating inferences for unseen events based on existing commonsense graphs like ATOMIC and ConceptNet.

Methodology: Generative Knowledge Construction

COMET treats knowledge graph construction as a language generation task, leveraging the GPT (Generative Pre-trained Transformer) architecture. The core idea is to "externalize" the implicit world knowledge absorbed by the model during its massive unsupervised pre-training phase.

Architecture and Training

The model is fine-tuned on knowledge tuples structured as {subject, relation, object}. For instance, given the tuple {"take a nap", Causes, "have energy"}, COMET is trained to generate the object string when provided with the subject and relation.

Figure 2: The COMET architecture adapts the Transformer block and multi-headed attention mechanism to generate knowledge objects from subject-relation input sequences.
  • Input Encoding: Subjects and relations are concatenated into a token sequence. Special "mask" tokens signal the model to begin generating the target object.
  • Language as a Schema: By treating relations as natural language tokens (e.g., mapping HasSubevent to a linguistic representation), the model utilizes its pre-trained linguistic intuition to understand conceptual relationships.

Datasets and Evaluation

The researchers evaluated COMET on two primary benchmarks:

  • ATOMIC: A dataset focusing on "if-then" social commonsense (e.g., "If PersonX gives PersonY a gift, PersonX is seen as generous").
  • ConceptNet: A general-purpose graph covering taxonomic and physical commonsense (e.g., "A bird has the property of being fragile").

Key Results

COMET significantly outperformed previous LSTM-based baselines in both quality and novelty:

  • Human-Level Precision: Human evaluators rated 77.5% of ATOMIC generations and 91.7% of ConceptNet generations as "plausible," approaching the quality of human-curated data.
  • Novelty and Synthesis: On ConceptNet, 59.25% of generated tuples were entirely new, demonstrating that the model isn't merely memorizing training data but synthesizing logical extensions.
  • Data Efficiency: The model maintained strong performance even when trained on only 10% of the available data, highlighting the importance of the pre-training "head start."

Discussion and Limitations

While COMET marks a significant advancement, several challenges remain. The model occasionally struggles with the "None" problem—deciding when an event has no effect—and can produce semantically overlapping results (e.g., "to get food" vs. "to buy food"). Furthermore, the choice of decoding strategy (Greedy vs. Beam Search) involves a trade-off between precision and diversity.

Ultimately, COMET demonstrates that generative models can effectively distill implicit commonsense into structured, human-readable formats, opening new doors for downstream tasks like story understanding and automated reasoning.

Summary updated

BibTeX
@inproceedings{bosselut2019comet,
  author = {Antoine Bosselut and Hannah Rashkin and Maarten Sap and Chaitanya Malaviya and Asli Celikyilmaz and Yejin Choi},
  title = {{COMET: Commonsense Transformers for Automatic Knowledge Graph Construction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1470},
}
Figure