cs.LGFeb 27, 2026

What You Read is What You Classify: Highlighting Attributions to Text and Text-Like Inputs

Authors: Daniel S. Berman, Brian Merritt, Stanley Ta, Dana Udwin, Amanda Ernlund, Jeremy Ratcliff, Vijay Narayan

Organizations: Johns Hopkins Applied Physics Laboratory, 11100 Johns Hopkins Rd., Laurel, MD 20723, USA. · Current affiliation: Google DeepMind, 14–18 Handyside Street, London, N1C 4DN, United Kingdom

Abstract

At present, there are no easily understood explainable artificial intelligence (AI) methods for discrete token inputs, like text. Most explainable AI techniques do not extend well to token sequences, where both local and global features matter, because state-of-the-art models, like transformers, tend to focus on global connections. Therefore, existing explainable AI algorithms fail by (i) identifying disparate tokens of importance, or (ii) assigning a large number of tokens a low value of importance. This method for explainable AI for tokens-based classifiers generalizes a mask-based explainable AI algorithm for images. It starts with an Explainer neural network that is trained to create masks to hide information not relevant for classification. Then, the Hadamard product of the mask and the continuous values of the classifier's embedding layer is taken and passed through the classifier, changing the magnitude of the embedding vector but keeping the orientation unchanged. The Explainer is trained for a taxonomic classifier for nucleotide sequences and it is shown that the masked segments are less relevant to classification than the unmasked ones. This method focused on the importance the token as a whole (i.e., a segment of the input sequence), producing a human-readable explanation.

Explore similar work

CardsList
  1. VISTA: Visualization of Token Attribution via Efficient Analysis

    Apr 2, 2026Syed Ahmed, Bharathi Vokkaliga Ganesh, Jagadish Babu P +8LLM InterpretabilityPerturbation-Based Feature Attribution

  2. Evaluating Explainable AI Attribution Methods in Neural Machine Translation via Attention-Guided Knowledge Distillation

    Mar 11, 2026Aria Nourbakhsh, Salima Lamsiyah, Adelaide Danilov +1Attention-Guided DistillationExplainability Evaluation

  3. Explainable AI: Context-Aware Layer-Wise Integrated Gradients for Explaining Transformer Models

    Feb 18, 2026Melkamu Abay Mersha, Jugal KalitaTransformer InterpretabilityGradient-Based Attribution