Rule By Example: Harnessing Logical Rules for Explainable Hate Speech Detection
Christopher Clarke, Matthew Hall, Gaurav Mittal, Ye Yu, Sandra Sajeev,, Jason Mars, Mei Chen

TL;DR
This paper introduces Rule By Example (RBE), a contrastive learning method that leverages logical rules for explainable hate speech detection, outperforming deep learning models while providing transparent, rule-grounded predictions.
Contribution
The paper presents a novel exemplar-based contrastive learning approach that learns from logical rules, enhancing explainability and performance in hate speech classification.
Findings
RBE outperforms state-of-the-art deep learning classifiers.
RBE provides explainable, rule-grounded predictions.
Effective with few data examples.
Abstract
Classic approaches to content moderation typically apply a rule-based heuristic approach to flag content. While rules are easily customizable and intuitive for humans to interpret, they are inherently fragile and lack the flexibility or robustness needed to moderate the vast amount of undesirable content found online today. Recent advances in deep learning have demonstrated the promise of using highly effective deep neural models to overcome these challenges. However, despite the improved performance, these data-driven models lack transparency and explainability, often leading to mistrust from everyday users and a lack of adoption by many platforms. In this paper, we present Rule By Example (RBE): a novel exemplar-based contrastive learning approach for learning from logical rules for the task of textual content moderation. RBE is capable of providing rule-grounded predictions, allowing…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsHate Speech and Cyberbullying Detection
MethodsContrastive Learning
