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] Interpretation of recurrent neural networks
    Pedersen, MW
    Larsen, J
    NEURAL NETWORKS FOR SIGNAL PROCESSING VII, 1997, : 82 - 91
  • [4] RetainVis: Visual Analytics with Interpretable and Interactive Recurrent Neural Networks on Electronic Medical Records
    Kwon, Bum Chul
    Choi, Min-Je
    Kim, Joanne Taery
    Choi, Edward
    Kim, Young Bin
    Kwon, Soonwook
    Sun, Jimeng
    Choo, Jaegul
    IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS, 2019, 25 (01) : 299 - 309
  • [5] 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
  • [6] 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
  • [7] Visual Analytics in Explaining Neural Networks with Neuron Clustering
    Alicioglu, Gulsum
    Sun, Bo
    AI, 2024, 5 (02) : 465 - 481
  • [8] VIOLET: Visual Analytics for Explainable Quantum Neural Networks
    Ruan S.
    Liang Z.
    Guan Q.
    Griffin P.
    Wen X.
    Lin Y.
    Wang Y.
    IEEE Transactions on Visualization and Computer Graphics, 2024, 30 (06) : 2862 - 2874
  • [9] Refining hidden Markov models with recurrent neural networks
    Wessels, T
    Omlin, CW
    IJCNN 2000: PROCEEDINGS OF THE IEEE-INNS-ENNS INTERNATIONAL JOINT CONFERENCE ON NEURAL NETWORKS, VOL II, 2000, : 271 - 276
  • [10] VINARCH: A Visual Analytics Interactive Tool for Neural Network Archaeology
    An, Seoyoung
    Channing, Georgia
    Schuman, Catherine
    Taufer, Michela
    2023 IEEE INTERNATIONAL CONFERENCE ON CLUSTER COMPUTING WORKSHOPS, CLUSTER WORKSHOPS, 2023, : 50 - 51