Rule By Example: Harnessing Logical Rules for Explainable Hate Speech Detection
Not on the map. Why?
Abstract (arXiv)
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 for more explainable and customizable predictions compared to typical deep learning-based approaches. We demonstrate that our approach is capable of learning rich rule embedding representations using only a few data examples. Experimental results on 3 popular hate speech classification datasets show that RBE is able to outperform state-of-the-art deep learning classifiers as well as the use of rules in both supervised and unsupervised settings while providing explainable model predictions via rule-grounding.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 12 of its 34 references that are in the map. First posted on arXiv 24 Jul 2023.
Builds on
12 of 34 references.
References · 12
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 973
- 2017Automated Hate Speech Detection and the Problem of Offensive Languagecited by 724
- 2020HateXplain: A Benchmark Dataset for Explainable Hate Speech Detectioncited by 403
- 2022A Systematic Study of Bias Amplificationcited by 65
- 2020Learning from Rules Generalizing Labeled Exemplarscited by 59
- 2022LaPraDoR: Unsupervised Pretrained Dense Retriever for Zero-Shot Text Retrievalcited by 24
- 2021Controlling Neural Networks with Rule Representationscited by 16
- 2022Deep Learning for Hate Speech Detection: A Comparative Studycited by 13
- 2022Automatic Rule Induction for Interpretable Semi-Supervised Learningcited by 6
Built on by
Not cited yet.