arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.00086cs.CL
收藏

面向特定任务的嵌入式Ante-Hoc可解释文本分类

Task-Specific Embeddings for Ante-Hoc Explainable Text Classification

Zalando;Amazon(亚马逊)

Kishaloy Halder, Josip Krapac, Alan Akbik, Anthony Brew, Matti Lyra

摘要:

当前最先进的文本分类方法通常利用BERT风格的Transformer模型和softmax分类器,联合微调以预测目标任务的类标签。在本文中,我们提出了一个替代的训练目标,在这个目标中,我们学习特定于任务的文本嵌入:我们提出的目标学习嵌入,使得共享相同目标类标签的所有文本在嵌入空间中应该靠近在一起,而所有其他文本应该远离。这使我们能够用更可解释的k-最近邻分类方法取代softmax分类器。在一系列的实验中,我们证明了这会产生一些有趣的好处:(1)嵌入空间中距离引起的顺序可以用来直接解释分类决策。(2)这有助于对训练数据进行定性检查,帮助我们更好地了解问题空间并识别标签质量问题。(3)学习的距离在某种程度上推广到看不见的类,允许我们在不重新训练模型的情况下逐步添加新类。我们提出了广泛的实验表明,前特设的可解释性和增量学习的好处来在整体分类精度没有成本,从而指出我们提出的方法的实用性。

英文摘要:

Current state-of-the-art approaches to text classification typically leverage BERT-style Transformer models with a softmax classifier, jointly fine-tuned to predict class labels of a target task. In this paper, we instead propose an alternative training objective in which we learn task-specific embeddings of text: our proposed objective learns embeddings such that all texts that share the same target class label should be close together in the embedding space, while all others should be far apart. This allows us to replace the softmax classifier with a more interpretable k-nearest-neighbor classification approach. In a series of experiments, we show that this yields a number of interesting benefits: (1) The resulting order induced by distances in the embedding space can be used to directly explain classification decisions. (2) This facilitates qualitative inspection of the training data, helping us to better understand the problem space and identify labelling quality issues. (3) The learned distances to some degree generalize to unseen classes, allowing us to incrementally add new classes without retraining the model. We present extensive experiments which show that the benefits of ante-hoc explainability and incremental learning come at no cost in overall classification accuracy, thus pointing to practical applicability of our proposed approach.

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

↑