A Unified Understanding of Deep NLP Models for Text Classification
- 20 June 2022
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Visualization and Computer Graphics
- Vol. 28 (12) , 4980-4994
Abstract
The rapid development of deep natural language processing (NLP) models for text classification has led to an urgent need for a unified understanding of these models proposed individually. Existing methods cannot meet the need for understanding different models in one framework due to the lack of a unified measure for explaining both low-level (e.g., words) and high-level (e.g., phrases) features. We have developed a visual analysis tool, DeepNLPVis, to enable a unified understanding of NLP models for text classification. The key idea is a mutual information-based measure, which provides quantitative explanations on how each layer of a model maintains the information of input words in a sample. We model the intra- and inter-word information at each layer measuring the importance of a word to the final prediction as well as the relationships between words, such as the formation of phrases. A multi-level visualization, which consists of a corpus-level, a sample-level, and a word-level visualization, supports the analysis from the overall training set to individual samples. Two case studies on classification tasks and comparison between models demonstrate that DeepNLPVis can help users effectively identify potential problems caused by samples and model architectures and then make informed improvements.Keywords
All Related Versions
Funding Information
- National Key R&D Program of China (2020YFB2104100)
- National Natural Science Foundation of China (U21A20469, 61936002)
- Institute Guo Qiang
- THUIBCS
- BLBCI
- Tsinghua-Kuaishou Institute of Future Media Data
This publication has 34 references indexed in Scilit:
- LSTMVis: A Tool for Visual Analysis of Hidden State Dynamics in Recurrent Neural NetworksIEEE Transactions on Visualization and Computer Graphics, 2017
- Analyzing the Training Processes of Deep Generative ModelsIEEE Transactions on Visualization and Computer Graphics, 2017
- "Why Should I Trust You?"2016
- Squares: Supporting Interactive Performance Analysis for Multiclass ClassifiersIEEE Transactions on Visualization and Computer Graphics, 2016
- Visualizing and Understanding Neural Models in NLP2016
- Convolutional Neural Networks for Sentence Classification2014
- StoryFlow: Tracking the Evolution of StoriesIEEE Transactions on Visualization and Computer Graphics, 2013
- Design Considerations for Optimizing Storyline VisualizationsIEEE Transactions on Visualization and Computer Graphics, 2012
- TextFlow: Towards Better Understanding of Evolving Topics in TextIEEE Transactions on Visualization and Computer Graphics, 2011
- Clustering Methods2006