AI
ChatGPT shows promise at detecting toxic content, but struggles with targeted harassment
A new study finds that ChatGPT excels at identifying general inappropriate language but performs less reliably when flagging targeted or harassing comments online.
Researchers have put ChatGPT to the test on a critical task that social platforms grapple with daily: identifying harmful and inappropriate language in user-generated content. The findings reveal a model that handles some moderation duties effectively, but with notable blind spots.
How the study measured performance#
The evaluation compared ChatGPT's judgments against both crowdsourced annotations and expert assessments. Researchers examined the model's ability to spot two distinct types of problematic content: general inappropriate language and targeting remarks (such as harassment directed at specific individuals or groups).
Strong results for general toxicity detection#
ChatGPT performed well when tasked with flagging broadly inappropriate content. The research also uncovered an important insight about optimization: nearly all performance gains from iterative prompt refinement came from a single intervention—simplifying the labeling scheme and upgrading to GPT-4. Once this change was made, further tinkering with prompt wording and sampling temperature produced minimal improvement.
Weakness in identifying harassment#
The model's performance on targeting language was less consistent and more problematic. Before refinement, it exhibited higher false positive rates than human experts (incorrectly flagging benign comments). After switching to a more advanced model, however, the pattern reversed—the system began missing actual cases of targeting language, raising false negative rates.
Implications for content moderation#
The research underscores that automating content moderation requires careful attention to both model selection and prompt design. While AI systems like ChatGPT can meaningfully support moderation workflows, their limitations in understanding context and recognizing nuanced harassment suggest they work best as a tool rather than a replacement for human judgment.

