arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2103.14625cs.CLcs.AIcs.HCcs.LG
收藏

Dodrio:通过交互式可视化探索Transformer模型

Dodrio: Exploring Transformer Models with Interactive Visualization

Georgia Tech(佐治亚理工学院)

Zijie J. Wang, Robert Turko, Duen Horng Chau

摘要:

为什么基于transformer的大型预训练模型在各种NLP任务中表现如此出色?最近的研究表明,关键可能在于多头注意力机制对语言信息的学习和表征能力。理解这些模型如何表示句法和语义知识对于研究它们为什么成功和失败,它们学到了什么,以及它们如何改进是至关重要的。我们提出了Dodrio,一个开源的交互式可视化工具,以帮助NLP研究人员和从业者分析注意力机制在基于transformer的模型与语言知识。Dodrio紧密集成了概述,总结了不同注意力头部的角色,以及详细的视图,帮助用户将注意力权重与输入文本中的语法结构和语义信息进行比较。为了便于注意力权重和语言知识的视觉比较,Dodrio应用了不同的图形可视化技术来表示可扩展到较长输入文本的注意力权重。案例研究强调了Dodrio如何为理解基于transformer的模型中的注意力机制提供见解。Dodrio可在https://poloclub.github.io/dodrio/上获得。

英文摘要:

Why do large pre-trained transformer-based models perform so well across a wide variety of NLP tasks? Recent research suggests the key may lie in multi-headed attention mechanism's ability to learn and represent linguistic information. Understanding how these models represent both syntactic and semantic knowledge is vital to investigate why they succeed and fail, what they have learned, and how they can improve. We present Dodrio, an open-source interactive visualization tool to help NLP researchers and practitioners analyze attention mechanisms in transformer-based models with linguistic knowledge. Dodrio tightly integrates an overview that summarizes the roles of different attention heads, and detailed views that help users compare attention weights with the syntactic structure and semantic information in the input text. To facilitate the visual comparison of attention weights and linguistic knowledge, Dodrio applies different graph visualization techniques to represent attention weights scalable to longer input text. Case studies highlight how Dodrio provides insights into understanding the attention mechanism in transformer-based models. Dodrio is available at https://poloclub.github.io/dodrio/.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑