Detection Method for Offensive Speech Based on Prompting and Parameter Fine-Tuning

With the rapid development of social media, the convenience of online communication has led to the frequent occurrence of offensive speech, posing a threat to the online social environment. Ensuring the safety, health, and friendliness of online platforms has made the automatic detection of offensive speech an urgent necessity. Despite the superior performance of large language models in natural language processing tasks due to their extensive parameter sets, their effectiveness in detecting offensive speech is limited by the complexity and diversity of language and the models' tendency to avoid sensitive content. The inherent biases and imbalances in existing datasets further constrain model performance. To address these issues, this paper proposes an offensive speech detection method that combines prompt engineering and parameter fine-tuning (ChatGLM-PPFT), aiming to improve the shortcomings of the large language model ChatGLM in such tasks. By designing strategies such as role-playing, few-shot prompting, and historical response referencing, ChatGLM-PPFT not only mitigates the problem of non-standard responses to offensive content but also enhances detection performance for Chinese offensive speech through lightweight fine-tuning using the LoRA method. On the TOXICN and SWSR datasets, ChatGLM-PPFT achieves state-of-the-art detection results.

Authors

Institutions

Publication Details

Published
2025-04-25
DOI
https://doi.org/10.1109/icaid65275.2025.11034535
Primary Topic
Hate Speech and Cyberbullying Detection
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Detection Method for Offensive Speech Based on Prompting and Parameter Fine-Tuning

Yingchun Fu, Xiaochao Fan, Debbie M. Cheng, Tian‐You Zhou et al.
Hate Speech and Cyberbullying Detection
article

Detection Method for Offensive Speech Based on Prompting and Parameter Fine-Tuning

Yingchun Fu, Xiaochao Fan, Debbie M. Cheng, Tian‐You Zhou, Jiapeng Liu
article en

Abstract

With the rapid development of social media, the convenience of online communication has led to the frequent occurrence of offensive speech, posing a threat to the online social environment. Ensuring the safety, health, and friendliness of online platforms has made the automatic detection of offensive speech an urgent necessity. Despite the superior performance of large language models in natural language processing tasks due to their extensive parameter sets, their effectiveness in detecting offensive speech is limited by the complexity and diversity of language and the models' tendency to avoid sensitive content. The inherent biases and imbalances in existing datasets further constrain model performance. To address these issues, this paper proposes an offensive speech detection method that combines prompt engineering and parameter fine-tuning (ChatGLM-PPFT), aiming to improve the shortcomings of the large language model ChatGLM in such tasks. By designing strategies such as role-playing, few-shot prompting, and historical response referencing, ChatGLM-PPFT not only mitigates the problem of non-standard responses to offensive content but also enhances detection performance for Chinese offensive speech through lightweight fine-tuning using the LoRA method. On the TOXICN and SWSR datasets, ChatGLM-PPFT achieves state-of-the-art detection results.

Xinjiang Normal University (CN), Xinjiang Institute of Engineering (CN)
Ministry of Education, Xinjiang Normal University
Peace, Justice and strong institutions
Openalex Percentile: Top 93%
Hate Speech and Cyberbullying Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Detection Method for Offensive Speech Based on Prompting and Parameter Fine-Tuning — Yingchun Fu, Xiaochao Fan, et al. · (2025) | TGRS Research Map | TGRS