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

Commonsense reasoning is often described as the "dark matter" of artificial intelligence. While Large Language Models (LLMs) like GPT-3 demonstrate impressive capabilities, they frequently struggle with basic logic that humans find intuitive. This paper explores a "machine-to-corpus-to-machine" pipeline that uses GPT-3 to generate a massive commonsense knowledge graph, filters it for quality, and trains a student model 100x smaller than the teacher. Our results show that this distilled student model, COMET$^{distil}$, actually outperforms GPT-3 on commonsense benchmarks, establishing symbolic data as a powerful bridge for knowledge transfer.

Introduction: The Commonsense Bottleneck

Traditionally, commonsense reasoning has relied on human-authored knowledge graphs like ATOMIC, where individuals manually document causal triples (e.g., PersonX goes jogging $\rightarrow$ xNeed $\rightarrow$ to put on shoes). However, human labor is expensive and cannot scale to the infinite variety of everyday situations. Previous attempts at automation often resulted in "noisy" datasets. We introduce Symbolic Knowledge Distillation to generate high-quality, massive-scale commonsense knowledge without the human bottleneck.

Methodology: The Distillation Pipeline

The authors propose a three-stage pipeline to transfer knowledge from a large generalist model to a smaller specialist:

  1. Machine-to-Corpus (The Teacher): Using few-shot prompting, GPT-3 (175B parameters) generates millions of commonsense triples across seven causal relations, such as intent, need, and effect.
  2. The Critic: To mitigate noise, a RoBERTa-Large model is trained on human-judged examples to act as a quality filter, scoring and discarding illogical generations.
  3. Corpus-to-Machine (The Student): A compact model (GPT-2 XL, 1.5B parameters) is trained on this filtered, symbolic dataset.
The Symbolic Knowledge Distillation pipeline: distilling knowledge from GPT-3 into a symbolic graph to train a compact student model.

This approach is unique because knowledge is distilled into a human-readable text format before being passed to the student, enhancing both quality control and interpretability.

Scaling and Evaluating ATOMIC$^{10x}$

The resulting dataset, ATOMIC$^{10x}$, contains 6.5 million triples, making it roughly ten times larger than the human-authored ATOMIC$^{20}_{20}$. Human evaluation via Amazon Mechanical Turk was used to validate the "acceptability" of these generated triples.

Comparison of scale and cost between the human-authored ATOMIC 20/20 and the machine-generated ATOMIC 10x.

Key Results and Insights

The study yielded several surprising insights regarding the efficiency of machine-generated knowledge:

  • The Student Surpasses the Teacher: COMET$^{distil}$ (1.5B parameters) outperformed the 175B parameter GPT-3 on commonsense benchmarks, achieving an 87.5% acceptance rate compared to GPT-3's 73.3%.
  • Quality and Diversity: With a high-threshold Critic filter, ATOMIC$^{10x}$ achieved 96.4% accuracy, surpassing the 86.8% accuracy of human-authored data. Lexical analysis also confirmed that the machine-generated data was more diverse, containing 5.2 million unique words.
  • Economic Efficiency: Generating a triple via GPT-3 costs approximately $0.001, representing a 60x reduction in cost compared to human authorship ($0.06).

Conclusion and Future Work

Symbolic Knowledge Distillation demonstrates that machines can now generate knowledge graphs that surpass human-authored ones in quantity, quality, and diversity. While the current study focused on seven causal relations, future work will aim to expand this to physical commonsense and complex temporal reasoning. This research proves that training smaller models on focused, high-quality symbolic datasets allows them to become specialists that exceed the capabilities of their generalist teachers.

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