Litcius/Paper detail

Offensive keyword extraction based on the attention mechanism of BERT and the eigenvector centrality using a graph representation

Gretel Liz De la Peña Sarracén, Paolo Rosso

2021Personal and Ubiquitous Computing19 citationsDOIOpen Access PDF

Abstract

Abstract The proliferation of harmful content on social media affects a large part of the user community. Therefore, several approaches have emerged to control this phenomenon automatically. However, this is still a quite challenging task. In this paper, we explore the offensive language as a particular case of harmful content and focus our study in the analysis of keywords in available datasets composed of offensive tweets. Thus, we aim to identify relevant words in those datasets and analyze how they can affect model learning. For keyword extraction, we propose an unsupervised hybrid approach which combines the multi-head self-attention of BERT and a reasoning on a word graph. The attention mechanism allows to capture relationships among words in a context, while a language model is learned. Then, the relationships are used to generate a graph from what we identify the most relevant words by using the eigenvector centrality. Experiments were performed by means of two mechanisms. On the one hand, we used an information retrieval system to evaluate the impact of the keywords in recovering offensive tweets from a dataset. On the other hand, we evaluated a keyword-based model for offensive language detection. Results highlight some points to consider when training models with available datasets.

Topics & Concepts

Computer scienceOffensiveCentralityArtificial intelligenceRepresentation (politics)GraphNatural language processingFocus (optics)Language modelKeyword extractionMachine learningInformation retrievalTheoretical computer scienceManagementOpticsPoliticsPolitical sciencePhysicsEconomicsMathematicsLawCombinatoricsHate Speech and Cyberbullying DetectionAdvanced Malware Detection TechniquesSpam and Phishing Detection