Cross-Domain Toxic Spans Detection

Stefan F. Schouten, Baran Barbarestani, Wondimagegnhue Tufa, Piek Vossen, Ilia Markov
6/16/2023
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

Given the dynamic nature of toxic language use, automated methods for detecting toxic spans are likely to encounter distributional shift. To explore this phenomenon, we evaluate three approaches for detecting toxic spans under cross-domain conditions: lexicon-based, rationale extraction, and fine-tuned language models. Our findings indicate that a simple method using off-the-shelf lexicons performs best in the cross-domain setup. The cross-domain error analysis suggests that (1) rationale extraction methods are prone to false negatives, while (2) language models, despite performing best for the in-domain case, recall fewer explicitly toxic words than lexicons and are prone to certain types of false positives. Our code is publicly available at: https://github.com/sfschouten/toxic-cross-domain.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{schouten2023crossdomain,
  title  = {Cross-Domain Toxic Spans Detection},
  author = {Stefan F. Schouten and Baran Barbarestani and Wondimagegnhue Tufa and Piek Vossen and Ilia Markov},
  year   = {2023},
  eprint = {2306.09642},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.09642v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.09642.svg)](https://codeofpaper.com/paper/2306.09642)

Discussion