TL;DR
SELOR is a novel framework that upgrades standard deep learning models into "self-explaining" versions. Instead of relying on post-hoc approximations, SELOR reasons using human-readable logic rules (e.g., awesome AND tasty => Positive Sentiment). By integrating a differentiable rule-generation process directly into the model architecture, it achieves high predictive accuracy while ensuring that explanations are faithful to the model's inner workings and highly intuitive to humans.
The Problem with Black-Box Models
Deep learning models are notoriously opaque. While post-hoc explanation methods like LIME or SHAP allow us to peek inside, they suffer from three major flaws:
- Faithfulness: They provide an approximation that might not accurately reflect how the model actually made its decision.
- Computational Cost: They often require running the model thousands of times to generate a single explanation.
- Human Precision: An explanation might be "easy to read" but logically nonsensical to a human (e.g., predicting a positive review simply because the word "is" appears).
The authors argue for self-explaining models that generate an explanation and a prediction simultaneously. The primary challenge is achieving this without a massive drop in accuracy or requiring humans to pre-define thousands of logic rules.
Introducing SELOR: Methods & Architecture
To solve this, the authors introduce SELOR (Self-Explainable version with LOgic rule Reasoning). The core idea is to decompose the prediction probability into three distinct, trainable modules:
- Deep Antecedent Generation: This module takes the latent representation from a deep backbone (like BERT) and uses a recursive neural network (GRU or Transformer) to "pick" atoms (features) and logical connectives to form a rule (the antecedent). A recursive Gumbel-Softmax makes this discrete selection process differentiable, allowing the entire system to be trained via standard backpropagation.
- Consequent Estimation: This ensures "local coherency." It estimates how likely a label is, given the generated rule, by checking the rule's performance across the entire training set. A neural estimator generalizes this to rare or unseen rules.
- Human Prior: This module allows developers to bake in "global coherency" by restricting the length of rules or the types of features allowed, ensuring the output matches human reasoning structures.
Datasets and Evaluation
The framework was evaluated on three diverse datasets:
- Yelp: A text dataset for sentiment analysis (Positive/Negative).
- Clickbait News Detection: A text dataset identifying if a headline is clickbait.
- Adult: A tabular dataset from the UCI repository used to predict whether an individual's income exceeds $50k/year.
The authors used BERT and RoBERTa as backbones for text, and a 3-layer DNN for the tabular data.
Key Insights and Results
- The "Human Precision" Metric: The authors distinguish between mere "readability" and actual "precision." A rule is precise if a human agrees that the features cited are a valid rationale for the label. SELOR significantly outperforms post-hoc methods here because it anchors its rules in global dataset statistics.
- Robustness to Noisy Labels: Surprisingly, SELOR is more robust to "dirty" data than original black-box models. Because the Consequent Estimation module verifies rules against the whole dataset, it effectively filters out random label noise that might otherwise confuse a standard model.
- Model Steering: Since the model uses explicit logic, humans can "steer" it without retraining. If the model learns a biased rule (e.g., using the word "Vegas" to predict a negative review), a user can simply remove "Vegas" from the candidate atom list. The model will automatically find the next best logical feature.
- Performance Maintenance: SELOR achieves predictive performance (AUC) nearly identical to vanilla "black-box" BERT and RoBERTa models, outperforming previous self-explaining baselines like SENN and RCN by an average of 1.3%.
- User Preference: In a human study, SELOR's explanations were rated as "good" 94.4% of the time on the Yelp dataset, compared to 89.8% for LIME and only 64% for RCN.
- Efficiency: Generating an explanation at inference time is nearly instantaneous (0.015s - 0.055s), making it orders of magnitude faster than post-hoc methods like Anchor.
Limitations and Future Work
While promising, SELOR has a few limitations. It doesn't currently guarantee that two very similar inputs will always produce the exact same rule, though it remains generally stable in practice. Furthermore, the model currently works with "bottom-level" atoms (individual words or categories) and cannot yet synthesize higher-level abstract concepts without explicit design. Finally, while it works well for text and tabular data, applying this framework to images—where "atoms" would be pixels or super-pixels—remains an exciting challenge for future research.
Summary updated