Mem2Seq
Memory-to-sequence dialog model that combines multi-hop attention over memories with a pointer network.
Language · 315 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
- 170.7K
- Operations
- 315
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- ACL 2018
- Paper
- Mem2Seq: Effectively Incorporating Knowledge Bases into End-to-End Task-Oriented Dialog Systems
- Cited by
- 307 (as of 28 October 2026)
- Authors
- Andrea Madotto, Chien-Sheng Wu, Pascale Fung
- Source
- GitHub: HLTCHKUST/Mem2Seq
- License
- MIT
- 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
- m18392
- Graph hash
- ecd5d5a4cfea76c66b36329f982b94e2d853adbc36f5ec3de20c1c2c01038d53
- Skeleton hash
- 37181ca7d8b835deae54113114149a567294c7417d48a35cf0419e10f7b9500f
- Architecture hash
- 284d28cf88ab46e143c235fee1892f42eb04949a162226b49019b7e8e9107a55
- Diagram SHA-256
- dbbced6c27685af70aa7421572e5ac4c44c2e5e65970909433c7262fd5de5610
- 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
Mem2Seq, short for memory-to-sequence, is an end-to-end differentiable model for task-oriented dialog. Its paper starts from the observation that end-to-end task-oriented dialog systems usually have difficulty incorporating knowledge bases. The paper describes Mem2Seq as the first neural generative model that combines multi-hop attention over memories with the idea of a pointer network. The authors show empirically how the model controls each generation step and how its multi-hop attention helps in learning correlations between memories. The paper reports that Mem2Seq can be trained faster and that it reached the best results of the time on three task-oriented dialog datasets.
The authors' repository implements Mem2Seq and several baselines in PyTorch. Each model file is a class that builds an encoder and a decoder. The README adds that Mem2Seq can be considered a general sequence-to-sequence model with the ability to address external memories, and it includes a basic translation example to show this. That example uses a flat memory instead of the triples described in the paper.
Key idea. Mem2Seq combines multi-hop attention over memories with the idea of a pointer network to bring knowledge bases into end-to-end task-oriented dialog generation.
- Mem2Seq
- memory-to-sequence
- task-oriented dialog
- dialog system
- knowledge base dialog
- multi-hop attention
- end-to-end dialog
- bAbI dialog
- In-Car dialog
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{madotto2018mem2seqeffectivelyincorporatingknowledge,
title={Mem2Seq: Effectively Incorporating Knowledge Bases into End-to-End Task-Oriented Dialog Systems},
author={Andrea Madotto and Chien-Sheng Wu and Pascale Fung},
year={2018},
eprint={1804.08217},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/1804.08217},
}