Interpretable and Steerable Sequence Learning via Prototypes

Yao Ming, Panpan Xu, Huamin Qu, Liu RenKDD 2019

Abstract

ProSeNet is a novel deep learning architecture designed for inherently interpretable sequence modeling. By employing case-based reasoning, the model makes predictions by comparing input sequences to a small set of human-readable prototypes. This approach allows users to inspect, edit, or delete prototypes, providing a mechanism to "steer" the model's logic without sacrificing predictive performance.

Introduction

Deep learning models for sequence data, such as Recurrent Neural Networks (RNNs) and LSTMs, are often criticized for their "black-box" nature. While highly effective in domains like sentiment analysis and medical diagnostics, they lack transparency regarding their decision-making processes. Existing post-hoc explanation methods can be unreliable or misleading. Furthermore, these models are typically unsteerable; domain experts cannot easily correct flawed internal logic. ProSeNet addresses these challenges by integrating interpretability and human-in-the-loop steerability directly into the model architecture.

Methodology

ProSeNet (Prototype Sequence Network) consists of three primary components: a sequence encoder, a prototype layer, and a fully connected output layer.

  1. Sequence Encoder: A standard RNN (e.g., LSTM or GRU) maps input sequences into a latent mathematical space.
  2. Prototype Layer: This layer contains $k$ learnable prototype vectors. The model computes similarity scores between the encoded input and these prototypes.
  3. Fully Connected Layer: Final predictions are made using these similarity scores. Weights are constrained to be non-negative to ensure an additive, logical relationship between prototypes and outputs.
The architecture of ProSeNet, illustrating the flow from input sequence to output probabilities via a prototype layer.

To ensure human readability, a Projection Step periodically maps abstract prototype vectors back to the most similar actual sequences or subsequences from the training data. A beam search algorithm is utilized to identify the most concise and meaningful "sub-prototypes." The model is also steerable, allowing users to manually refine prototypes, after which the model fine-tunes its weights under these human-defined constraints.

Experimental Setup

The performance of ProSeNet was evaluated across four diverse real-world domains:

  • Vehicle Fault Logs: Predicting mechanical failures from Diagnostic Trouble Codes (DTCs).
  • Yelp Reviews: Sentiment analysis (binary and 5-star) on restaurant reviews.
  • UniProtKB: Classification of protein sequences into functional families.
  • MIT-BIH Arrhythmia: Categorization of ECG heartbeat waveforms.

Results and Discussion

ProSeNet demonstrates that interpretability does not necessitate a trade-off in accuracy. On the Yelp dataset, ProSeNet achieved 95.5% accuracy, virtually identical to a standard "black-box" Bi-LSTM (95.7%). In ECG analysis, it reached 97.7% accuracy, slightly outperforming some existing ResNet models.

Comparison of accuracy between ProSeNet and Bi-LSTM baselines across different numbers of prototypes (k).

The model successfully identifies meaningful prototypes, such as specific phrases in sentiment analysis or distinct heartbeat anomalies in ECG data. Furthermore, a user study indicated that human intervention ("steering") significantly improved the model's alignment with human logic—increasing from 61.8% to 68.2%—while maintaining predictive power.

Conclusion

ProSeNet represents a significant advancement in transparent sequence modeling. By mimicking human case-based reasoning and allowing for direct expert intervention, it transforms deep learning models from opaque tools into collaborative partners. Future work will focus on reducing the computational complexity of the prototype projection step and developing more intuitive user interfaces for prototype management.

Summary updated

BibTeX
@inproceedings{ming2019interpretable,
  author = {Yao Ming and Panpan Xu and Huamin Qu and Liu Ren},
  title = {{Interpretable and Steerable Sequence Learning via Prototypes}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2019},
  doi = {10.1145/3292500.3330908},
}
Figure