Symbolic Knowledge Distillation: from General Language Models to Commonsense Models

Peter West, Chandra Bhagavatula, Jack Hessel, Jena D. Hwang, Liwei Jiang, Ronan Le Bras, Ximing Lu, Sean Welleck, Yejin Choi

Abstract

Large language models (LLMs) like GPT-3 possess vast latent knowledge but often struggle with consistent commonsense reasoning. This paper introduces Symbolic Knowledge Distillation, a "machine-to-corpus-to-machine" framework that extracts commonsense knowledge from a large teacher model into a massive symbolic knowledge graph (ATOMIC$^{10x}$). By filtering this data with a critic model, the authors train a specialized student model (COMET$^{distil}$) that is 100x smaller than GPT-3 yet achieves superior performance on commonsense tasks.

Introduction

Artificial Intelligence has long struggled with a "common sense" problem. While large language models (LLMs) like GPT-3 demonstrate impressive linguistic capabilities, their underlying knowledge is often brittle. They may excel at factual recall but fail at basic causal reasoning—for instance, understanding the social implications of an action or the likely intent behind a behavior.

Historically, researchers have addressed this through two primary methods:

  1. Human-authored Knowledge Graphs (KGs): Datasets like ATOMIC involve humans manually writing millions of "if-then" rules. While high-quality, this approach is prohibitively expensive and slow to scale.
  2. Machine-authored KGs: These use algorithms to extract knowledge from raw text. While scalable, they often produce noisy, low-quality data that results in unreliable models.

This paper proposes a middle ground: using the vast, latent knowledge inside an LLM to build a high-quality symbolic KG automatically, which then serves as training data for a smaller, more efficient "commonsense expert."

Methods: Symbolic Knowledge Distillation

The authors introduce a framework called Symbolic Knowledge Distillation. Unlike standard neural distillation, where a student model mimics a teacher's internal probability distributions (logits), this approach distills knowledge into textual symbols first.

The Symbolic Knowledge Distillation pipeline: from GPT-3 to ATOMIC10x to COMETdistil.

The pipeline follows a machine-to-corpus-to-machine flow:

  1. Symbolic Distillation (Machine-to-Corpus): GPT-3 (the "loose teacher") is prompted to generate millions of commonsense triples in the format of Event → Relation → Inference. An example triple might be: "X starts running" → xEffect → "gets in shape."
  2. The Critic: To address "logical misalignments" (e.g., contradictory or nonsensical inferences), the researchers trained a RoBERTa-based critic model on a small set of human-labeled examples. This critic filters the raw GPT-3 generations, creating a "critical teacher" that ensures high data quality.
  3. Neural Distillation (Corpus-to-Machine): The resulting high-quality, filtered corpus is used to fine-tune a GPT-2 XL model (1.5B parameters), dubbed COMET$^{distil}$.

Datasets and Scale

The primary output of this process is ATOMIC$^{10x}$, a new dataset containing 6.5 million unique commonsense triples. This is roughly ten times the size of the human-authored ATOMIC$^{20}_{20}$ baseline. Remarkably, generating ATOMIC$^{10x}$ cost approximately $6,000 in API fees, a fraction of the estimated $40,000 required for the human-authored version.

Key Results

The study yielded several surprising results regarding the quality of machine-generated knowledge and the performance of the distilled student model.

Comparison of human acceptance rates across different corpora and models.

As shown in the evaluation results, the machine-generated ATOMIC$^{10x}$ (when filtered by the high-quality critic) achieved a human acceptance rate of 96.4%, actually surpassing the 86.8% acceptance rate of the human-authored ATOMIC$^{20}_{20}$.

Furthermore, the student model, COMET$^{distil}$, achieved an 87.5% acceptance rate on held-out events. This performance significantly outperformed:

  • The teacher, GPT-3 (73.3%).
  • The human-trained COMET$^{20}_{20}$ (81.5%).

These findings suggest a "Critical Teacher" effect: the quality of the training data, ensured by the critic model, is more important than the sheer quantity of data or the size of the model.

Discussion and Limitations

The success of COMET$^{distil}$ demonstrates that specialized distillation can condense and refine knowledge that is otherwise diluted in a general-purpose LLM. By distilling into symbols (text), the researchers could inspect and curate the knowledge before passing it to the student.

However, some limitations remain. The current study focused on seven causal "if-then" relations (such as intent, effect, and reaction). It does not yet encompass physical commonsense (e.g., gravity) or complex temporal reasoning. Additionally, the method still relies on a high-quality initial teacher like GPT-3 and requires a few thousand human-labeled examples to train the critic effectively.

Future work may involve expanding this framework to broader types of reasoning or using these high-quality symbolic KGs to "patch" reasoning gaps in other large-scale models.

Summary updated

BibTeX
@inproceedings{west2022symbolic,
  author = {Peter West and Chandra Bhagavatula and Jack Hessel and Jena D. Hwang and Liwei Jiang and Ronan Le Bras and Ximing Lu and Sean Welleck and Yejin Choi},
  title = {{Symbolic Knowledge Distillation: from General Language Models to Commonsense Models}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.naacl-main.341},
}
Figure