Visual analytics tool for the interpretation of hidden states in recurrent neural networks

被引:5
|
作者
Garcia, Rafael [1 ]
Munz, Tanja [1 ]
Weiskopf, Daniel [1 ]
机构
[1] Univ Stuttgart, VISUS, D-70569 Stuttgart, Germany
关键词
Visual analytics; Visualization; Machine learning; Classification; Recurrent neural networks; Long short-term memory; Hidden states; Interpretability; Natural language processing; Nonlinear projection;
D O I
10.1186/s42492-021-00090-0
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
In this paper, we introduce a visual analytics approach aimed at helping machine learning experts analyze the hidden states of layers in recurrent neural networks. Our technique allows the user to interactively inspect how hidden states store and process information throughout the feeding of an input sequence into the network. The technique can help answer questions, such as which parts of the input data have a higher impact on the prediction and how the model correlates each hidden state configuration with a certain output. Our visual analytics approach comprises several components: First, our input visualization shows the input sequence and how it relates to the output (using color coding). In addition, hidden states are visualized through a nonlinear projection into a 2-D visualization space using t-distributed stochastic neighbor embedding to understand the shape of the space of the hidden states. Trajectories are also employed to show the details of the evolution of the hidden state configurations. Finally, a time-multi-class heatmap matrix visualizes the evolution of the expected predictions for multi-class classifiers, and a histogram indicates the distances between the hidden states within the original space. The different visualizations are shown simultaneously in multiple views and support brushing-and-linking to facilitate the analysis of the classifications and debugging for misclassified input sequences. To demonstrate the capability of our approach, we discuss two typical use cases for long short-term memory models applied to two widely used natural language processing datasets.
引用
收藏
页数:13
相关论文
共 50 条
  • [1] Visual analytics tool for the interpretation of hidden states in recurrent neural networks
    Rafael Garcia
    Tanja Munz
    Daniel Weiskopf
    Visual Computing for Industry, Biomedicine, and Art, 4
  • [2] LSTMVis: A Tool for Visual Analysis of Hidden State Dynamics in Recurrent Neural Networks
    Strobelt, Hendrik
    Gehrmann, Sebastian
    Pfister, Hanspeter
    Rush, Alexander M.
    IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS, 2018, 24 (01) : 667 - 676
  • [3] Understanding Hidden Memories of Recurrent Neural Networks
    Ming, Yao
    Cao, Shaozu
    Zhang, Ruixiang
    Li, Zhen
    Chen, Yuanzhe
    Song, Yangqiu
    Qu, Huamin
    2017 IEEE CONFERENCE ON VISUAL ANALYTICS SCIENCE AND TECHNOLOGY (VAST), 2017, : 13 - 24
  • [4] Classifying Process Instances Using Recurrent Neural Networks
    Hinkka, Markku
    Lehto, Teemu
    Heljanko, Keijo
    Jung, Alexander
    BUSINESS PROCESS MANAGEMENT WORKSHOPS, BPM 2018 INTERNATIONAL WORKSHOPS, 2019, 342 : 313 - 324
  • [5] An In-Situ Visual Analytics Framework for Deep Neural Networks
    Li, Guan
    Wang, Junpeng
    Wang, Yang
    Shan, Guihua
    Zhao, Ying
    IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS, 2024, 30 (10) : 6770 - 6786
  • [6] Toward Knowledge Extraction in Classification of Volcano-Seismic Events: Visualizing Hidden States in Recurrent Neural Networks
    Titos, Manuel
    Garcia, Luz
    Kowsari, Milad
    Benitez, Carmen
    IEEE JOURNAL OF SELECTED TOPICS IN APPLIED EARTH OBSERVATIONS AND REMOTE SENSING, 2022, 15 : 2311 - 2325
  • [7] Neural network training fingerprint: visual analytics of the training process in classification neural networks
    Ferreira, Martha Dais
    Cantareira, Gabriel D.
    de Mello, Rodrigo F.
    Paulovich, Fernando V.
    JOURNAL OF VISUALIZATION, 2022, 25 (03) : 593 - 612
  • [8] Neural network training fingerprint: visual analytics of the training process in classification neural networks
    Martha Dais Ferreira
    Gabriel D. Cantareira
    Rodrigo F. de Mello
    Fernando V. Paulovich
    Journal of Visualization, 2022, 25 : 593 - 612
  • [9] Visual Analytics in Explaining Neural Networks with Neuron Clustering
    Alicioglu, Gulsum
    Sun, Bo
    AI, 2024, 5 (02) : 465 - 481
  • [10] CNNPruner: Pruning Convolutional Neural Networks with Visual Analytics
    Li, Guan
    Wang, Junpeng
    Shen, Han-Wei
    Chen, Kaixin
    Shan, Guihua
    Lu, Zhonghua
    IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS, 2021, 27 (02) : 1364 - 1373