CLAIJul 24, 2023

Rule By Example: Harnessing Logical Rules for Explainable Hate Speech Detection

arXiv:2307.12935v1222 citations
Originality Incremental advance
AI Analysis

This addresses the need for transparent and customizable hate speech detection for online platforms, though it is an incremental improvement by combining rule-based and deep learning approaches.

The paper tackles the problem of content moderation by introducing Rule By Example (RBE), a method that uses logical rules for explainable hate speech detection, and it outperforms state-of-the-art deep learning classifiers on three datasets.

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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes