KnowledGPT
A knowledge-grounded dialogue generator: BERT selects knowledge sentences and GPT-2 writes the response.
Language · 863 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Language
- Parameters
- 235.2M
- Operations
- 863
- Framework
- PyTorch
- Recurrent
- No
- Published
- EMNLP 2020
- Cited by
- 5 (as of 26 October 2026)
- Authors
- Xueliang Zhao, Wei Wu, Can Xu and others
- Source
- GitHub: zhaoxlpku/KnowledGPT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m17686
- Graph hash
- 5d1a1769d9b1fdf3651cdb5155d18ad7e155c63091fc6faea1f8e4f32d2803b8
- Skeleton hash
- 0dc2c28e47b550cd3a3dabe0534cef4123c5cf6dbe975077d6403da8afc61fdd
- Architecture hash
- 26603eb1d21c60dfe2932155379eb49b3a49ac0f95c645cd1b4085c6eeceb5b4
- Diagram SHA-256
- 9aa9a30a15ae599deaa93fc39446f4b042f0dcb33b9329b5d009ec15641de0dc
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
KnowledGPT is a model for knowledge-grounded dialogue generation built on pre-trained language models. The problem it starts from is capacity: pre-trained language models limit the number of tokens they can handle, and the paper gives 1024 as the maximum for GPT-2.
The answer is a knowledge selection module placed in front of the response generator, so that redundant knowledge input is cut down to the relevant information. The selection module is made up of a context-aware knowledge encoder, which uses BERT as its backbone, and a sequential knowledge selector. The response generator is defined on the basis of GPT-2. The two parts are optimized jointly on unlabeled dialogues: training alternates between updating the knowledge selection model with reinforcement learning and the response generation model with curriculum learning.
The paper tests the method on two benchmarks of knowledge-grounded dialogue generation, Wizard of Wikipedia and CMU Document Grounded Conversations. In its experiments the sequential knowledge selector has a hidden size of 256 and 1 layer, and the pre-trained language models are BERT (110M) and GPT2 (117M).
Key idea. KnowledGPT equips a GPT-2 response generator with a BERT-based knowledge selection module and optimizes the two jointly on unlabeled dialogues.
- KnowledGPT
- knowledge-grounded dialogue generation
- knowledge selection
- dialogue generation
- response generation
- Wizard of Wikipedia
- CMU DoG
- curriculum learning
- pre-trained language model
- unlabeled dialogues
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhao2020knowledgegroundeddialoguegenerationpretrained,
title={Knowledge-Grounded Dialogue Generation with Pre-trained Language Models},
author={Xueliang Zhao and Wei Wu and Can Xu and Chongyang Tao and Dongyan Zhao and Rui Yan},
year={2020},
eprint={2010.08824},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2010.08824},
}