Visualizing Attention in Transformer-Based Language models
Visualizing Attention in Transformer-Based Language models
复制标题
基于 Transformer 的语言模型中的注意力可视化
DOI:
--
复制
发表时间:
2019
期刊:
影响因子:
--
通讯作者:
Jesse Vig
中科院分区:
文献类型:
--
作者:
Jesse Vig
We present an open-source tool for visualizing multi-head self-attention in Transformer-based language models. The tool extends earlier work by visualizing attention at three levels of granularity: the attention-head level, the model level, and the neuron level. We describe how each of these views can help to interpret the model, and we demonstrate the tool on the OpenAI GPT-2 pretrained language model. We also present three use cases showing how the tool might provide insights on how to adapt or improve the model.
DOI:
10.18653/v1/n18-2003
发表时间:
2018-04
期刊:
ArXiv
影响因子:
--
作者:
Jieyu Zhao;Tianlu Wang;Mark Yatskar;Vicente Ordonez;Kai-Wei Chang
通讯作者:
Jieyu Zhao;Tianlu Wang;Mark Yatskar;Vicente Ordonez;Kai-Wei Chang