Pruning Literals for Highly Efficient Explainability at Word Level

Lei Jiao, Rohan Kumar Yadav, Bimal Bhattarai, Abhik Jana, Lei Jiao 0001, Seid Muhie YimamarXiv 2024 · DOI

Abstract

Tsetlin Machines (TMs) provide a transparent, logic-based alternative to "black-box" neural networks in Natural Language Processing (NLP). However, their rules often suffer from "literal bloat," containing hundreds of irrelevant conditions that hinder human interpretability. This paper introduces a frequency-based pruning method that removes low-signal literals from these rules. Experimental results demonstrate that pruning not only significantly improves classification accuracy—by up to 9%—but also aligns the model's internal logic more closely with human attention.

Introduction

In Natural Language Processing (NLP), researchers face a persistent trade-off between performance and interpretability. Deep Neural Networks (DNNs) like BERT achieve state-of-the-art accuracy but operate as "black boxes," offering little insight into their decision-making processes. Conversely, Tsetlin Machines (TMs) utilize transparent propositional logic (AND/OR rules) to make decisions.

Despite their inherent transparency, TMs face a "bloat" problem. Because they operate on sparse Boolean bag-of-words inputs, they often learn massive clauses filled with hundreds of irrelevant or negated literals (e.g., "$ eg$ looking" or "$ eg$ thing"). While technically transparent, a rule with 100 conditions is practically uninterpretable for a human. This research aims to bridge this gap by pruning noise from these logic rules without sacrificing performance.

Methodology

The authors propose a post-hoc technique called Pruning by Frequency. The process begins by training a standard Tsetlin Machine on a text classification task. Following training, the frequency of each literal (a word or its negation) is calculated across all learned clauses in the model.

Mapping text to logical clauses and identifying important literals.

The core hypothesis is that literals appearing with very low frequency represent "random noise" that does not contribute meaningfully to the classification. By systematically removing the bottom 5% to 50% of these infrequent literals, the model is forced to rely on high-signal sentiment words. The resulting "Tsetlin Attention Map" (TAM) is then evaluated against Human Attention Maps (HAM) to measure alignment with human reasoning.

Experimental Setup

The study utilizes the YELP-HAT dataset, a specialized version of Yelp reviews that includes "gold standard" human attention maps—data indicating which words humans focused on when determining sentiment. The authors tested the pruning method on three subsets categorized by sentence length: Yelp-50, Yelp-100, and Yelp-200.

Key Results and Discussion

Accuracy and Rule Compression

The most significant finding is that pruning enhances both readability and performance. On the Yelp-200 dataset, the vanilla TM achieved an accuracy of 82.66%. After pruning 30% of the literals, accuracy rose to 91.53%, a 9% improvement. Furthermore, the authors demonstrated that literal counts within a clause could be reduced by 50% to 60%, making the logic far more intuitive for human verification.

Human Alignment

As the model is pruned, its internal focus aligns more closely with human attention. Using a metric called SimMeasure (similarity to human attention), the pruned TM significantly outperformed vanilla TMs and neural baselines like Bi-LSTM.

Similarity measures (SimMeasure) between human attention (HAM) and model attention (TAM/NAM) on Yelp-50.

As shown in the Yelp-50 results, a TM pruned at 40% achieves a SimMeasure of 0.752, compared to 0.69 for the vanilla TM and 0.662 for a Bi-LSTM. This suggests that pruning effectively targets the "negation as noise" problem common in sparse settings, leaving behind a cleaner set of positive indicators like "delicious" or "terrible."

Conclusion and Future Work

While frequency-based pruning significantly reduces literal bloat, some clauses remain large for complex tasks. Additionally, TMs lack the pre-trained "world knowledge" of models like BERT, meaning statistically infrequent but semantically vital words might be accidentally discarded. Future research may involve integrating pre-trained embeddings to help the pruning process distinguish between statistical noise and semantic importance.

Summary updated

BibTeX
@misc{jiao2024pruning,
  author = {Lei Jiao and Rohan Kumar Yadav and Bimal Bhattarai and Abhik Jana and Lei Jiao and Seid Muhie Yimam},
  title = {{Pruning Literals for Highly Efficient Explainability at Word Level}},
  year = {2024},
  eprint = {2411.04557},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.04557},
}
Figure