arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.09355cs.CLcs.LG
收藏

文本分类的深度NLP模型的统一认识

A Unified Understanding of Deep NLP Models for Text Classification

Tsinghua University(清华大学);Microsoft Research Asia(微软亚洲研究院);Cardiff University(卡迪夫大学)

Zhen Li, Xiting Wang, Weikai Yang, Jing Wu, Zhengyan Zhang, Zhiyuan Liu, Maosong Sun, Hui Zhang, Shixia Liu

摘要:

用于文本分类的深度自然语言处理(NLP)模型的快速发展导致了对单独提出的这些模型的统一理解的迫切需要。现有的方法不能满足在一个框架中理解不同模型的需要,这是由于缺乏一个统一的措施来解释低水平(例如,字)和高级(例如,短语)特征。我们开发了一个可视化分析工具DeepNLPVis,以实现对文本分类的NLP模型的统一理解。其核心思想是一个基于互信息的度量,它提供了关于模型的每一层如何保持样本中输入单词信息的定量解释。我们在每一层对词内和词间信息进行建模,以测量词对最终预测的重要性以及词之间的关系,例如短语的形成。一个多层次的可视化,它包括语料库级,样本级,和单词级的可视化,支持从整体训练集到单个样本的分析。两个关于分类任务和模型之间比较的案例研究表明,DeepNLPVis可以帮助用户有效地识别样本和模型架构引起的潜在问题,然后做出明智的改进。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑