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

07/24/2023
by   Christopher Clarke, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/04/2020

Building a Competitive Associative Classifier

With the huge success of deep learning, other machine learning paradigms...
research
07/13/2020

Learning Reasoning Strategies in End-to-End Differentiable Proving

Attempts to render deep learning models interpretable, data-efficient, a...
research
06/15/2020

A Hybrid Natural Language Generation System Integrating Rules and Deep Learning Algorithms

This paper proposes an enhanced natural language generation system combi...
research
08/26/2022

ESC-Rules: Explainable, Semantically Constrained Rule Sets

We describe a novel approach to explainable prediction of a continuous v...
research
11/09/2022

Deep Explainable Learning with Graph Based Data Assessing and Rule Reasoning

Learning an explainable classifier often results in low accuracy model o...
research
06/14/2021

Controlling Neural Networks with Rule Representations

We propose a novel training method to integrate rules into deep learning...
research
06/05/2020

PLANS: Robust Program Learning from Neurally Inferred Specifications

Recent years have seen the rise of statistical program learning based on...

Please sign up or login with your details

Forgot password? Click here to reset