ferret:一个用于在Transformer上基准测试解释器的框架
ferret: a Framework for Benchmarking Explainers on Transformers
AI总结:
本文提出ferret框架,用于在Transformer分类器上便捷使用、可视化和基准测试多种XAI方法,并通过情感分析与仇恨言论检测实验表明特定方法能提供更忠实且合理的解释。
摘要:
随着Transformer越来越多地被用于解决复杂的自然语言处理(NLP)问题,人们对其决策具备人类可解释性的需求也日益增加。尽管已经提出了多种用于解释基于Transformer模型输出的可解释人工智能(XAI)技术,但在使用和比较这些技术方面仍然缺乏便捷的途径。我们引入了ferret,这是一个Python库,旨在简化在基于Transformer的分类器上使用和比较XAI方法的过程。借助ferret,用户可以在任意自由文本或现有的XAI语料库上,使用最先进的XAI方法对基于Transformer的模型输出解释进行可视化和比较。此外,用户还可以评估即席的XAI指标,以选择最忠实且最合理的解释。为了与近期形成的从Hugging Face共享和使用基于Transformer模型的流程保持一致,ferret直接与其Python库进行接口对接。在本文中,我们展示了ferret用于基准测试在Transformer上应用于情感分析和仇恨言论检测的XAI方法。我们展示了特定方法如何持续提供更好的解释,并且在Transformer模型的语境下更为可取。
英文摘要:
As Transformers are increasingly relied upon to solve complex NLP problems, there is an increased need for their decisions to be humanly interpretable. While several explainable AI (XAI) techniques for interpreting the outputs of transformer-based models have been proposed, there is still a lack of easy access to using and comparing them. We introduce ferret, a Python library to simplify the use and comparisons of XAI methods on transformer-based classifiers. With ferret, users can visualize and compare transformers-based models output explanations using state-of-the-art XAI methods on any free-text or existing XAI corpora. Moreover, users can also evaluate ad-hoc XAI metrics to select the most faithful and plausible explanations. To align with the recently consolidated process of sharing and using transformers-based models from Hugging Face, ferret interfaces directly with its Python library. In this paper, we showcase ferret to benchmark XAI methods used on transformers for sentiment analysis and hate speech detection. We show how specific methods provide consistently better explanations and are preferable in the context of transformer models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。