Grammarly develops DeTexD benchmark dataset and RoBERTa-based classifier for delicate text detection
Existing toxic text detection methods leave a gap for the broader category of delicate text — emotionally charged or potentially triggering writing that may not be explicitly offensive but still carries risk for users and LLMs exposed to it.
All evaluated toxic and hate-speech detection methods underperform on delicate text, missing coverage on medical and mental health topics or showing lower precision on texts containing offensive keywords that are not actually delicate.
Grammarly created the DeTexD dataset (40,000 training samples and 1,023 benchmark paragraphs) and a RoBERTa-based baseline model achieving 79.3% F1, outperforming all evaluated methods.
Annotation guidelines, dataset, and baseline model were made publicly available.
Show all 5 reported metrics
Frequently asked questions
What did this team achieve with this AI workflow?
Grammarly created the DeTexD dataset (40,000 training samples and 1,023 benchmark paragraphs) and a RoBERTa-based baseline model achieving 79.3% F1, outperforming all evaluated methods.
What tools did this team use?
RoBERTa, HateBERT, Google's Perspective API, OpenAPI content filter, OpenAPI moderation API.
What results were reported?
DeTexD training dataset size: 40,000 samples; DeTexD benchmark dataset size: 1,023 paragraphs; Baseline model F1 score: 79.3%; Baseline model precision: 81.4% (source-reported, not independently verified).
What failed first in this deployment?
All evaluated toxic and hate-speech detection methods underperform on delicate text, missing coverage on medical and mental health topics or showing lower precision on texts containing offensive keywords that are not…
How is this compliance monitoring AI workflow structured?
Delicate text data sourcing → Expert linguist annotation → Classifier fine-tuning on DeTexD → Benchmark evaluation of methods → Public artifact release.