Advancing Interpretability in Text Classification through Prototype Learning

Bowen Wei, Ziwei Zhu
10/23/2024
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Deep neural networks have achieved remarkable performance in various text-based tasks but often lack interpretability, making them less suitable for applications where transparency is critical. To address this, we propose ProtoLens, a novel prototype-based model that provides fine-grained, sub-sentence level interpretability for text classification. ProtoLens uses a Prototype-aware Span Extraction module to identify relevant text spans associated with learned prototypes and a Prototype Alignment mechanism to ensure prototypes are semantically meaningful throughout training. By aligning the prototype embeddings with human-understandable examples, ProtoLens provides interpretable predictions while maintaining competitive accuracy. Extensive experiments demonstrate that ProtoLens outperforms both prototype-based and non-interpretable baselines on multiple text classification benchmarks. Code and data are available at \url{https://anonymous.4open.science/r/ProtoLens-CE0B/}.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wei2024advancing,
  title  = {Advancing Interpretability in Text Classification through Prototype Learning},
  author = {Bowen Wei and Ziwei Zhu},
  year   = {2024},
  eprint = {2410.17546},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.17546v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.17546.svg)](https://codeofpaper.com/paper/2410.17546)

Discussion