词汇之海:文本数据锚点的深入分析
A Sea of Words: An In-Depth Analysis of Anchors for Text Data
AI总结:
本文首次从理论上分析文本分类中的 Anchors,在 TF-IDF 与固定 OOD 替换词设置下刻画规则、线性及可微模型的锚点选择,并实证神经网络倾向选择逆文档频率加权偏导最高的词。
摘要:
Anchors(Ribeiro 等人,2018)是一种事后的、基于规则的可解释性方法。对于文本数据,它提出通过高亮一小部分词语(一个锚点)来解释一个决策,使得当这些词语出现在文档中时,待解释模型会产生相似的输出。在本文中,我们首次对 Anchors 进行理论分析,并假设对最佳锚点的搜索是穷举式的。在将用于文本分类的该算法形式化之后,当向量化步骤为 TF-IDF,且词语在被移除时由一个固定的词典外标记替代时,我们给出了不同模型类别上的明确结果。我们的研究涵盖了诸如基本 if-then 规则和线性分类器等模型。随后,我们利用这一分析来深入理解 Anchors 对任意可微分类器的行为。对于神经网络,我们通过实验表明,与模型关于输入的最高偏导数相对应、并按逆文档频率重新加权的词语,会被 Anchors 选中。
英文摘要:
Anchors (Ribeiro et al., 2018) is a post-hoc, rule-based interpretability method. For text data, it proposes to explain a decision by highlighting a small set of words (an anchor) such that the model to explain has similar outputs when they are present in a document. In this paper, we present the first theoretical analysis of Anchors, considering that the search for the best anchor is exhaustive. After formalizing the algorithm for text classification, we present explicit results on different classes of models when the vectorization step is TF-IDF, and words are replaced by a fixed out-of-dictionary token when removed. Our inquiry covers models such as elementary if-then rules and linear classifiers. We then leverage this analysis to gain insights on the behavior of Anchors for any differentiable classifiers. For neural networks, we empirically show that the words corresponding to the highest partial derivatives of the model with respect to the input, reweighted by the inverse document frequencies, are selected by Anchors.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。