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

AllenNLP Interpret:一个解释NLP模型预测的框架

AllenNLP Interpret: A Framework for Explaining Predictions of NLP Models

Allen Institute for Artificial Intelligence(艾伦人工智能研究所);University of California, Irvine(加州大学欧文分校)

Eric Wallace, Jens Tuyls, Junlin Wang, Sanjay Subramanian, Matt Gardner, Sameer Singh

摘要:

神经NLP模型越来越准确,但不完美和不透明-它们以违反直觉的方式打破,并让最终用户对其行为感到困惑。模型解释方法通过为特定的模型预测提供解释来改善这种不透明性。不幸的是,现有的解释代码库使这些方法难以应用于新的模型和任务,这阻碍了从业者的采用,并给可解释性研究人员带来负担。我们介绍AllenNLP Interpret,一个用于解释NLP模型的灵活框架。该工具包提供了解释原语(例如,输入梯度),一套内置的解释方法,以及一个前端可视化组件库。我们通过对五种解释方法(例如,显著图和对抗攻击)对各种模型和任务(例如,使用BERT的掩蔽语言建模和使用Biodog的阅读理解)。这些演示以及我们的代码和教程都可以在https://allennlp.org/interpret上找到。

英文摘要:

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 .

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

↑