arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.06149cs.CLcs.CYcs.MM
收藏

提示LLM能否跨语言解锁仇恨言论检测?一项零样本与少样本研究

Can Prompting LLMs Unlock Hate Speech Detection across Languages? A Zero-shot and Few-shot Study

School of Computation, Information and Technology, TU Munich(技术计算与信息学院,慕尼黑工业大学);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心)

Faeze Ghorbanpour, Daryna Dementieva, Alexander Fraser

AI总结:

本研究评估多语言LLM在零样本与少样本提示下跨八种非英语语言的仇恨言论检测,发现其虽在真实数据上逊于微调编码器,但泛化更优,且提示设计需针对语言定制。

摘要:

尽管对自动化仇恨言论检测的兴趣日益增长,但大多数现有方法忽视了在线内容的语言多样性。多语言指令微调的大型语言模型,如LLaMA、Aya、Qwen和BloomZ,在跨语言方面展现出有前景的能力,但它们在零样本和少样本提示下识别仇恨言论的有效性仍未得到充分探索。本研究评估了基于LLM提示的检测方法在八种非英语语言上的表现,利用了多种提示技术,并将其与微调的编码器模型进行比较。我们表明,尽管在大多数真实世界评估集上,零样本和少样本提示落后于微调的编码器模型,但它们在仇恨言论检测的功能测试中实现了更好的泛化。我们的研究还揭示了提示设计起着关键作用,每种语言通常需要定制化的提示技术以最大化性能。

英文摘要:

Despite growing interest in automated hate speech detection, most existing approaches overlook the linguistic diversity of online content. Multilingual instruction-tuned large language models such as LLaMA, Aya, Qwen, and BloomZ offer promising capabilities across languages, but their effectiveness in identifying hate speech through zero-shot and few-shot prompting remains underexplored. This work evaluates LLM prompting-based detection across eight non-English languages, utilizing several prompting techniques and comparing them to fine-tuned encoder models. We show that while zero-shot and few-shot prompting lag behind fine-tuned encoder models on most of the real-world evaluation sets, they achieve better generalization on functional tests for hate speech detection. Our study also reveals that prompt design plays a critical role, with each language often requiring customized prompting techniques to maximize performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑