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

被引:6
作者
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 条
[31]   Visual Reasoning of Feature Attribution with Deep Recurrent Neural Networks [J].
Wang, Chuan ;
Onishi, Takeshi ;
Nemoto, Keiichi ;
Ma, Kwan-Liu .
2018 IEEE INTERNATIONAL CONFERENCE ON BIG DATA (BIG DATA), 2018, :1661-1668
[32]   Restricted Recurrent Neural Networks [J].
Diao, Enmao ;
Ding, Jie ;
Tarokh, Vahid .
2019 IEEE INTERNATIONAL CONFERENCE ON BIG DATA (BIG DATA), 2019, :56-63
[33]   Visualizing Deep Neural Networks for Text Analytics [J].
Nie, Shaoliang ;
Healey, Christopher G. ;
Padia, Kalpesh ;
Leeman-Munk, Samuel ;
Benson, Jordan Riley ;
Caira, Dave ;
Sethi, Saratendu ;
Devarajan, Ravi .
2018 IEEE PACIFIC VISUALIZATION SYMPOSIUM (PACIFICVIS), 2018, :180-189
[34]   Recurrent neural networks for classifying relations in clinical notes [J].
Luo, Yuan .
JOURNAL OF BIOMEDICAL INFORMATICS, 2017, 72 :85-95
[35]   PIRANHA:: Policy iteration for recurrent. artificial neural networks with hidden activities [J].
Szita, Istvan ;
Lorincz, Andras .
NEUROCOMPUTING, 2006, 70 (1-3) :577-591
[36]   RCAnalyzer: visual analytics of rare categories in dynamic networks [J].
Pan, Jia-cheng ;
Han, Dong-ming ;
Guo, Fang-zhou ;
Zhou, Da-Wei ;
Cao, Nan ;
He, Jing-rui ;
Xu, Ming-liang ;
Chen, Wei .
FRONTIERS OF INFORMATION TECHNOLOGY & ELECTRONIC ENGINEERING, 2020, 21 (04) :491-506
[37]   Customs Risk Analysis through the ConTraffic Visual Analytics Tool [J].
Poulymenopoulou, Mikaela ;
Tsois, Aris .
2017 EUROPEAN INTELLIGENCE AND SECURITY INFORMATICS CONFERENCE (EISIC), 2017, :107-114
[38]   Application of Convolutional Neural Networks and Recurrent Neural Networks in Food Safety [J].
Ding, Haohan ;
Hou, Haoke ;
Wang, Long ;
Cui, Xiaohui ;
Yu, Wei ;
Wilson, David I. .
FOODS, 2025, 14 (02)
[39]   State-space recurrent neural networks for predictive analytics and latent state estimation [J].
Moghaddass, Ramin ;
Chen, Cheng-Bang .
APPLIED SOFT COMPUTING, 2025, 174
[40]   ATICVis: A Visual Analytics System for Asymmetric Transformer Models Interpretation and Comparison [J].
Wu, Jian-Lin ;
Chang, Pei-Chen ;
Wang, Chao ;
Wang, Ko-Chih .
APPLIED SCIENCES-BASEL, 2023, 13 (03)