A Unified Understanding of Deep NLP Models for Text Classification.

Journal: IEEE transactions on visualization and computer graphics
Published Date:

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.

Authors

  • Zhen Li
    PepsiCo R&D, Valhalla, NY, United States.
  • Xiting Wang
    Academy of Mathematics and Systems Science, Chinese Academy of Sciences, Beijing, 100190, China.
  • Weikai Yang
  • Jing Wu
    School of Pharmaceutical Science, Jiangnan University, Wuxi, 214122, Jiangsu, China.
  • Zhengyan Zhang
  • Zhiyuan Liu
    State Key Laboratory of Intelligent Technology and Systems, Tsinghua National Laboratory for Information Science and Technology, Department of Computer Science and Technology, Tsinghua University, Beijing, China.
  • Maosong Sun
    State Key Laboratory of Intelligent Technology and Systems, Tsinghua National Laboratory for Information Science and Technology, Department of Computer Science and Technology, Tsinghua University, Beijing, China; Jiangsu Collaborative Innovation Center for Language Competence, Jiangsu, China.
  • Hui Zhang
    Department of Pulmonary Vessel and Thrombotic Disease, Sixth Medical Center, Chinese PLA General Hospital, Beijing, China.
  • Shixia Liu
    Institute for Brain and Cognitive Sciences, BNRist, Tsinghua University, Beijing, China; School of Software, Tsinghua University, Beijing, China.