Neural NLP models are increasingly accurate but are imperfect and opaque---they break in counterintuitive ways and leave end users puzzled at their behavior. Model interpretation methods ameliorate this opacity by providing explanations for specific model predictions. Unfortunately, existing interpretation codebases make it difficult to apply these methods to new models and tasks, which hinders adoption for practitioners and burdens interpretability researchers. We introduce AllenNLP Interpret, a flexible framework for interpreting NLP models. The toolkit provides interpretation primitives (e.g., input gradients) for any AllenNLP model and task, a suite of built-in interpretation methods, and a library of front-end visualization components. We demonstrate the toolkit's flexibility and utility by implementing live demos for five interpretation methods (e.g., saliency maps and adversarial attacks) on a variety of models and tasks (e.g., masked language modeling using BERT and reading comprehension using BiDAF). These demos, alongside our code and tutorials, are available at https://allennlp.org/interpret .
The Role of Interactive Visualization in Explaining (Large) NLP Models: from Data to Inference
Uncharted Software Inc(未知软件公司);University of Konstanz(康斯坦茨大学);University of Stuttgart(斯图加特大学);University of Maryland, BC(马里兰大学巴尔的摩县分校);Vrije Universiteit Amsterdam(阿姆斯特丹自由大学);IBM Research Cambridge(IBM剑桥研究院)
Explaining the Effectiveness of Multi-Task Learning for Efficient Knowledge Extraction from Spine MRI Reports
Covera Health
基于领域特定语料库的预训练Transformer模型已经改变了NLP的前景。然而,为单个任务训练或微调这些模型可能是耗时且资源密集的。因此,当前的许多研究集中在使用Transformers进行多任务学习(Raffel等人,2020)以及如何对任务进行分组以帮助多任务模型学习可以跨任务共享的有效表示(Standley et al.,2020; Fifty等人,2021年)。在这项工作中,我们表明,一个单一的多任务模型可以匹配特定于任务的模型的性能时,任务特定的模型在其所有的隐藏层显示类似的表示,其梯度是对齐的,即它们的梯度遵循相同的方向。我们假设上述观察结果解释了多任务学习的有效性。我们验证了我们的观察我们的内部放射科医生注释的数据集上的颈椎和腰椎。我们的方法简单直观,可用于广泛的NLP问题。
Explaining Character-Aware Neural Networks for Word-Level Prediction: Do They Discover Linguistic Rules?
IDLab, Ghent University - imec(根特大学-imec IDLab实验室)
当前,在不同的基于神经网络的自然语言处理算法中使用了语义级特征。然而,人们对这些模型学习的字符级模式知之甚少。此外,模型往往只是定量比较,而缺乏定性分析。在本文中,我们研究了神经网络学习哪些字符级模式,以及这些模式是否与手动定义的分词和注释一致。为此,我们将上下文分解技术(Murdoch et al. 2018)扩展到卷积神经网络,这使我们能够比较卷积神经网络和双向长短期记忆网络。我们评估和比较这些模型的任务,形态标记三种不同的语言,并表明这些模型隐含地发现可理解的语言规则。我们的实现可以在https://github.com/FredericGodin/ContextualDecomposition-NLP上找到。
Challenges in Explaining Pretrained Clinical Text Classifiers
Faculty of Computer and Information Science, University of Ljubljana, Slovenia(卢布尔雅那大学计算机与信息科学学院);ICAM - Advanced Environmental Research Institute, West University of Timisoara, Romania(蒂米什瓦德西大学先进环境研究所)