Augmenting Transformers with KNN-Based Composite Memory for Dialog

Angela Fan, Claire Gardent, Chloé Braud, Antoine Bordes


Abstract
Various machine learning tasks can benefit from access to external information of different modalities, such as text and images. Recent work has focused on learning architectures with large memories capable of storing this knowledge. We propose augmenting generative Transformer neural networks with KNN-based Information Fetching (KIF) modules. Each KIF module learns a read operation to access fixed external knowledge. We apply these modules to generative dialog modeling, a challenging task where information must be flexibly retrieved and incorporated to maintain the topic and flow of conversation. We demonstrate the effectiveness of our approach by identifying relevant knowledge required for knowledgeable but engaging dialog from Wikipedia, images, and human-written dialog utterances, and show that leveraging this retrieved information improves model performance, measured by automatic and human evaluation.
Anthology ID:
2021.tacl-1.6
Volume:
Transactions of the Association for Computational Linguistics, Volume 9
Month:
Year:
2021
Address:
Cambridge, MA
Editors:
Brian Roark, Ani Nenkova
Venue:
TACL
SIG:
Publisher:
MIT Press
Note:
Pages:
82–99
Language:
URL:
https://aclanthology.org/2021.tacl-1.6
DOI:
10.1162/tacl_a_00356
Bibkey:
Cite (ACL):
Angela Fan, Claire Gardent, Chloé Braud, and Antoine Bordes. 2021. Augmenting Transformers with KNN-Based Composite Memory for Dialog. Transactions of the Association for Computational Linguistics, 9:82–99.
Cite (Informal):
Augmenting Transformers with KNN-Based Composite Memory for Dialog (Fan et al., TACL 2021)
Copy Citation:
PDF:
https://preview.aclanthology.org/naacl24-info/2021.tacl-1.6.pdf