# Beyond Fine-Tuning: Evaluating Prompt Engineering and Prompt Tuning for Roman Urdu Hate Speech Detection

DevFeed: [Beyond Fine-Tuning: Evaluating Prompt Engineering and Prompt Tuning for Roman Urdu Hate Speech Detection](<https://devfeed.tech/articles/beyond-fine-tuning-evaluating-prompt-engineering-and-prompt-tuning-for-roman-urdu-hate-speech-detection-117471.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.04342>)

Author: Toneema Zubair, Muhammad Junaid Asif, Faisal Kamiran, Hafiz Hassan Saeed, Rana Fayyaz Ahmad

Published: 2026-11-04T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Prompt Engineering](<https://devfeed.tech/topics/prompt-engineering.md>), [Enhancing AI model performance](<https://devfeed.tech/topics/enhancing-ai-model-performance.md>), [peft](<https://devfeed.tech/topics/peft.md>), [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>)

Tags: [bert](<https://devfeed.tech/tags/bert.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [dataset](<https://devfeed.tech/tags/dataset.md>), [detection](<https://devfeed.tech/tags/detection.md>), [gpt](<https://devfeed.tech/tags/gpt.md>), [language](<https://devfeed.tech/tags/language.md>), [llama](<https://devfeed.tech/tags/llama.md>), [mistral](<https://devfeed.tech/tags/mistral.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [performance](<https://devfeed.tech/tags/performance.md>), [prompt-engineering](<https://devfeed.tech/tags/prompt-engineering.md>), [prompting](<https://devfeed.tech/tags/prompting.md>), [score](<https://devfeed.tech/tags/score.md>), [zero-shot](<https://devfeed.tech/tags/zero-shot.md>)

## AI overview

On the PURUT dataset of about 72,771 Roman Urdu social media comments, few-shot prompting outperformed zero-shot prompting for hate speech detection: Mistral-7B reached 0.67 F1 versus 0.56 for zero-shot models. The abstract reports that a mixed prompt adaptation improved F1 to as high as 0.87, above regular manual prompts. It compares GPT-3.5, LLaMA-3, Mistral-7B and multilingual BERT across prompting settings, and places the result alongside a previously reported PEFT score of about 0.93. The abstract frames the study around low-resource data scarcity, spelling variation, ambiguity and code-mixing; it does not provide further methodological details or per-model results.

## Source excerpt

arXiv:2611.04342v1 Announce Type: new Abstract: Low Resource Languages (LRLs) pose significant challenges for hate speech detection because of a scarcity of readily available annotated data, language variation, non-standard spelling, and context-dependent ambiguity. Beyond the problem of informal conventions of writing in Roman Urdu, there is also the issue of code-mixing. After working on the previous project about zero-shot learning and parameter-efficient fine-tuning (PEFT), this research systematically compares prompt engineering and prompt tuning for Roman Urdu hate speech detection. To study the effect of in-context examples, we will compare the zero-shot and few-shot prompting approaches. To understand the advantage of structured prompting and learnable prompt representations, we will conduct studies of manual vs. mixed prompt-based adaptation strategies. Experimentations are carried out on the PURUT dataset (~72,771 social media comments) with GPT-3.5, LLaMA-3, Mistral-7B, and multilingual BERT in several settings. Experimental results show that few-shot prompting always outperforms zero-shot prompting, with the Mistral-7B model scoring 0.67 F1 compared to 0.56 of the zero-shot models. Based on this observation, prompt-based adaptation is proposed to introduce additional improvements, with the proposed mixed prompt configuration able to yield a F1-score up to 0.87 which further surpasses the performance of regular manual prompts. Despite the larger size of the model, its performance trade-off between inference-based prompting, prompt optimization, and parameter-efficient model adaptation is compared to the previously reported PEFT-based F1-score, which is ~0.93.