Argumentative explanations for pattern-based text classifiers

Piyawat Lertvittayakumjorn, Francesca Toni

TL;DR

AXPLR is a novel XAI method that uses computational argumentation to explain pattern-based logistic regression models. By treating textual patterns as arguments that support or attack one another based on their specificity, it generates structured explanations that are significantly more aligned with human reasoning than traditional feature-importance lists.

What Problem Does This Paper Address?

Even "interpretable" models like Logistic Regression (LR) can be hard for humans to truly understand. The standard way to explain an LR model is to list the features with the highest weights. However, this "flat" approach ignores how features interact.

In text classification, this is a major hurdle. Consider the phrase "nothing better." A model might have a positive feature for "better" and a negative one for "nothing." A flat explanation would list both, potentially confusing the user. In reality, the specific pattern "nothing better" overrides the general sentiment of the individual words. The authors address this gap by moving beyond flat lists to structured, dialectical explanations that capture these agreements and disagreements between features.

Methods

The authors introduce AXPLR (Argumentative eXplanations for Pattern-based Logistic Regression). The process involves four main steps:

  1. QBAFc Construction: The system extracts features (patterns) from a trained PLR model and represents them as arguments in a Quantitative Bipolar Argumentation Framework (QBAF). Relationships are drawn based on specificity: if pattern A is a more specific version of pattern B (e.g., "nothing better" vs. "better"), they are linked.
  2. Strength Calculation: They propose a new "logistic regression semantics" to calculate the dialectical strength of each argument. Crucially, they prove that the strength of the top-level "default" argument is mathematically equivalent to the original model's prediction.
  3. Post-processing: Raw strengths can be negative, which is counterintuitive for humans (e.g., a "negative" argument supporting a "negative" class). This step flips these values and relations to ensure the framework satisfies formal dialectical properties, making it "plausible" for human consumption.
  4. Explanation Generation: The final output can be presented as Shallow AXPLR (showing only direct evidence for/against a class) or Deep AXPLR (allowing users to expand arguments to see their underlying sub-arguments and interactions).
Overview of the AXPLR generation process, showing how a standard prediction is transformed into a structured argumentative framework.

Datasets

The researchers evaluated AXPLR using three English text datasets:

  • SMS Spam Collection: A classic imbalanced dataset for detecting spam vs. ham messages.
  • Amazon Clothes: A balanced sentiment analysis dataset (positive vs. negative reviews).
  • Deceptive Hotel Reviews: A challenging dataset for identifying whether a review is genuine or fake (truthful vs. deceptive).

Key Insights and Ideas

  • Contextual Weakening: AXPLR naturally handles cases where one feature weakens another. For example, the presence of "nothing" attacks the positive sentiment of "better," reducing its overall contribution to a "Positive" prediction.
  • The Necessity of Post-processing: The authors found that raw model weights often violate basic principles of human debate (e.g., adding a supporter should not decrease the strength of a claim). Their post-processing step is essential for aligning machine logic with human intuition.
  • Specificity as Hierarchy: By using pattern specificity to define the structure of the argument, the model moves from general concepts at the top to granular details at the bottom, mimicking how humans often drill down into evidence.

Key Results

  • Higher Plausibility: In human trials using the Amazon Clothes dataset, AXPLR explanations showed a significantly higher Pearson correlation with human judgment compared to standard flat logistic regression explanations (FLX).
  • Effective Tutoring: In a "human-AI collaboration" experiment, AXPLR helped participants improve their ability to detect deceptive hotel reviews—a task humans are notoriously bad at.
  • Competitive Performance: While AXPLR didn't vastly outperform simple word-highlighting (SVM) in speed, qualitative feedback showed that users learning from AXPLR were better able to recall complex, non-obvious patterns used by the model.

Limitations and Future Work

The authors note that Deep AXPLR (the hierarchical view) did not provide a significant performance boost over Shallow AXPLR in real-time assistance tasks, suggesting that for quick decisions, simpler argumentative summaries might be sufficient.

Currently, AXPLR is model-specific to pattern-based logistic regression. Future work includes extending this argumentative approach to other architectures like Convolutional Neural Networks (CNNs) and exploring more interactive explanation formats, such as conversational agents or counterfactual ("what if") explanations.

Summary updated

BibTeX
@article{lertvittayakumjorn2023argumentative,
  author = {Piyawat Lertvittayakumjorn and Francesca Toni},
  title = {{Argumentative explanations for pattern-based text classifiers}},
  journal = {Argument Comput.},
  year = {2023},
  doi = {10.3233/aac-220004},
}
Figure