LEXPLAIN: Improving Model Explanations via Lexicon Supervision

Orevaoghene Ahia, Hila Gonen, Vidhisha Balachandran, Yulia Tsvetkov, Noah A. Smith

Abstract

As NLP models grow in complexity, the need for faithful and plausible explanations becomes critical. Current feature attribution methods often rely on spurious correlations or require expensive sentence-level human annotations. We present LEXPLAIN, a framework that utilizes task-specific lexicons as a scalable form of supervision. By encouraging models to assign uniform probability distributions when lexicon-derived keywords are missing, LEXPLAIN produces rationales that are significantly more intuitive to humans and more faithful to model logic. Notably, this approach also reduces racial bias in toxicity detection by guiding the model away from dialect-based shortcuts.

Introduction

The demand for "feature attribution" or "rationales" in NLP is driven by the need to understand which parts of an input text lead to specific predictions. However, existing methods struggle with the trade-off between faithfulness (reflecting internal logic) and plausibility (human readability). Models often exploit "spurious correlations"—shortcuts in data that do not relate to the actual task. For instance, toxicity classifiers may incorrectly associate African American English (AAE) with toxicity. While fixing this typically requires costly human-labeled rationales, LEXPLAIN investigates whether high-quality explanations can be achieved using simple, word-level lexicons.

Methodology

LEXPLAIN extends the SELFEXPLAIN architecture, which utilizes a "Local Interpretable Layer" (LIL) to extract phrases and calculate relevance based on prediction changes upon phrase removal. The core innovation is the introduction of a lexicon-based loss component, $L_{LEXPLAIN}$.

This loss encourages the model to be "confused" (i.e., assign a uniform probability distribution across labels) if phrases containing words from a task-specific lexicon are absent. The final training objective is a weighted combination of standard task loss (accuracy), the original SELFEXPLAIN loss (faithfulness), and the new LEXPLAIN loss (lexicon alignment). By forcing the model to treat keywords (e.g., "idiot" for toxicity or "excellent" for sentiment) as primary predictive drivers, LEXPLAIN ensures that explanations are grounded in meaningful features.

Experimental Setup

The framework was evaluated on three benchmarks:

  • SST-2: Sentiment analysis of movie reviews.
  • DWMW17 & FDCL18: Twitter datasets for toxicity detection, including dialect annotations (AAE vs. White American English) to assess fairness.

Lexicons were sourced from established sentiment lists (VADER, Hu & Liu) and a curated list of 350 toxic terms for the toxicity detection tasks.

Results and Discussion

Human Preference and Plausibility

Human evaluation demonstrates a clear preference for LEXPLAIN. In head-to-head comparisons against the baseline SELFEXPLAIN model, judges preferred LEXPLAIN's rationales 3–4 times more frequently across all datasets, finding them more intuitive and satisfactory.

Human preference for LEXPLAIN vs. Baseline across datasets.

Bias Reduction and Fairness

A significant advantage of lexicon supervision is the natural mitigation of spurious correlations. By guiding the model toward task-relevant terms, LEXPLAIN ignores dialectal markers that often lead to false positives in toxicity detection. On the DWMW17 dataset, the False Positive Rate (FPR) for AAE samples was nearly halved, dropping from 21.69% to 12.05%.

Accuracy and error rates across dialects, showing bias reduction in AAE.

Generalization and Performance

LEXPLAIN does not merely "memorize" the lexicon; it learns to prioritize related terms not present in the original list, suggesting a broader conceptual understanding of explanations. Crucially, this improvement in interpretability does not come at the cost of performance; LEXPLAIN maintained or slightly improved classification accuracy compared to the baseline, proving that better explanations are compatible with high performance.

Conclusion

LEXPLAIN offers a scalable, "cheap" supervision method for improving NLP explanations. By leveraging word-level lexicons, it achieves superior human plausibility and significant bias reduction without sacrificing accuracy. Future work will explore the generalization of this approach to larger architectures and the potential impact of lexicon-inherent biases.

Summary updated

BibTeX
@inproceedings{ahia2023lexplain,
  author = {Orevaoghene Ahia and Hila Gonen and Vidhisha Balachandran and Yulia Tsvetkov and Noah A. Smith},
  title = {{LEXPLAIN: Improving Model Explanations via Lexicon Supervision}},
  booktitle = {SEM @ ACL},
  year = {2023},
  doi = {10.18653/v1/2023.starsem-1.19},
}
Figure