[Paper Review] Symbolic Knowledge Distillation: from General Language Models to Commonsense Models
This paper introduces Symbolic Knowledge Distillation, a framework that uses GPT-3 to automatically generate a high-quality commonsense knowledge graph (Atomic${}^{ ext{10x}}$) and train a compact neural commonsense model (Comet${}^{ ext{dis}}_{ ext{til}}$) without human-authored knowledge. Despite being 100x smaller, the student model outperforms both the human-annotated Atomic${}^{20}$ corpus and its teacher GPT-3 in commonsense reasoning across scale, quality, and diversity.
The common practice for training commonsense models has gone from-human-to-corpus-to-machine: humans author commonsense knowledge graphs in order to train commonsense models. In this work, we investigate an alternative, from-machine-to-corpus-to-machine: general language models author these commonsense knowledge graphs to train commonsense models. Our study leads to a new framework, Symbolic Knowledge Distillation. As with prior art in Knowledge Distillation (Hinton et al., 2015), our approach uses larger models to teach smaller models. A key difference is that we distill knowledge symbolically-as text-in addition to the neural model. We also distill only one aspect-the commonsense of a general language model teacher, allowing the student to be a different type, a commonsense model. Altogether, we show that careful prompt engineering and a separately trained critic model allow us to selectively distill high-quality causal commonsense from GPT-3, a general language model. Empirical results demonstrate that, for the first time, a human-authored commonsense knowledge graph is surpassed by our automatically distilled variant in all three criteria: quantity, quality, and diversity. In addition, it results in a neural commonsense model that surpasses the teacher model's commonsense capabilities despite its 100x smaller size. We apply this to the ATOMIC resource, and share our new symbolic knowledge graph and commonsense models.
Motivation & Objective
- To develop a machine-to-corpus-to-machine pipeline that bypasses human-authored commonsense knowledge graphs.
- To improve the quality and scalability of commonsense knowledge by leveraging large language models as teachers.
- To enable distillation of only causal commonsense from a general language model into a specialized, compact neural model.
- To evaluate and enhance the quality of automatically generated symbolic knowledge using a critic model.
- To demonstrate that machine-generated knowledge can surpass human-constructed knowledge in scale, quality, and diversity.
Proposed method
- Use GPT-3 as a teacher model to generate symbolic commonsense triples via carefully engineered prompts focused on causal reasoning.
- Construct a symbolic knowledge graph, Atomic${}^{ ext{10x}}$, from GPT-3’s text outputs, preserving human readability and interpretability.
- Train a separate critic model to evaluate the quality of generated triples, enabling selective distillation of high-quality knowledge.
- Distill knowledge not only into a neural student model (Comet${}^{ ext{dis}}_{ ext{til}}$) but also into a symbolic knowledge graph, enabling dual transfer.
- Fine-tune the critic model using human-labeled data to improve the reliability and precision of quality filtering.
- Train a compact commonsense model (Comet${}^{ ext{dis}}_{ ext{til}}$) on the distilled symbolic corpus, enabling inference with lower compute and higher accuracy.
Experimental results
Research questions
- RQ1Can a general language model like GPT-3 serve as a high-quality teacher for distilling causal commonsense knowledge into a symbolic knowledge graph?
- RQ2Can a neural student model trained on machine-generated knowledge outperform a model trained on human-annotated knowledge?
- RQ3Does the inclusion of a critic model significantly improve the quality of distilled symbolic knowledge compared to direct generation?
- RQ4Can machine-generated commonsense knowledge surpass human-authored knowledge in scale, diversity, and accuracy?
- RQ5Is it possible to distill only a specific aspect (causal commonsense) from a general language model into a different type of model (commonsense model)?
Key findings
- Atomic${}^{ ext{10x}}$, the machine-generated knowledge graph, exceeds the human-annotated Atomic${}^{20}$ in all three criteria: quantity, quality, and diversity across seven commonsense inference types.
- The student model Comet${}^{ ext{dis}}_{ ext{til}}$, despite being 100 times smaller than GPT-3, achieves higher commonsense reasoning accuracy than its teacher model, GPT-3.
- The critic model significantly improves the quality of distilled knowledge, enabling the generation of high-fidelity symbolic triples that surpass human-annotated standards.
- Manual inspection of 100 generated examples revealed only one instance of adult content, indicating low risk of harmful or offensive outputs due to focused, constrained prompting.
- The framework enables a collaborative human-machine pipeline where humans act as evaluators rather than authors, reducing cost and increasing scalability.
- The symbolic knowledge distillation framework demonstrates that machine-generated knowledge can be both more comprehensive and more accurate than human-constructed knowledge in commonsense reasoning tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.