mlsanityData to 7 Oct 2026

Task-Specific Embeddings for Ante-Hoc Explainable Text Classification

arXiv 2212.00086 ↗First posted 30 Nov 2022cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 21 of its 34 references that are in the map. First posted on arXiv 30 Nov 2022.

Builds on

21 of 34 references.

References · 21

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  3. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  4. 2017Prototypical Networks for Few-shot Learningcited by 3,001
  5. 2017Billion-scale similarity search with GPUscited by 2,477
  6. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  7. 2014Convolutional Neural Networks for Sentence Classificationcited by 1,124
  8. 2019Attention is not Explanationcited by 916
  9. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
  10. 2017In Defense of the Triplet Loss for Person Re-Identificationcited by 784
  11. 2019Attention is not not Explanationcited by 629
  12. 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 377
9 more
  1. 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 254
  2. 2019SemEval-2017 Task 4: Sentiment Analysis in Twittercited by 209
  3. 2018Deep k-Nearest Neighbors: Towards Confident, Interpretable and Robust Deep Learningcited by 203
  4. 2019Explainability Fact Sheets: A Framework for Systematic Assessment of Explainable Approachescited by 101
  5. 2020Discriminative Nearest Neighbor Few-Shot Intent Detection by Transferring Natural Language Inferencecited by 47
  6. 2020BERT-kNN: Adding a kNN Search Component to Pretrained Language Models for Better QAcited by 36
  7. 2019Label-Agnostic Sequence Labeling by Copying Nearest Neighborscited by 27
  8. 2018Interpreting Neural Networks With Nearest Neighborscited by 18
  9. 2019Metric Learning for Dynamic Text Classificationcited by 5

Built on by

Not cited yet.