Parameter-efficient counter-speech generation for hate speech mitigation in code-mixed Hinglish via large language models

Online hate speech in code-mixed languages poses a challenge for online safety that moderation systems built for monolingual text address poorly. This study concerns Hinglish, the variety in which Hindi and English are mixed within a single utterance and the Hindi component is written in Roman script. Counter-speech offers a proactive alternative to content removal, but adapting large language models to generate it is computationally expensive, and code-mixed settings are under-resourced. We curate a custom Hinglish hate-speech–counter-speech corpus of 2,204 human-authored pairs, split 70/20/10 (1,542/441/221 for train/val/test), and apply Low-Rank Adaptation (LoRA) to Gemma-7B using rank-32 adapters on the query and value projections. We extend the comparison to a second recent open-weight backbone, Qwen3.5-4B, evaluated both zero-shot and under identical LoRA adaptation, so that each fine-tuned system is measured against its own base model. Adaptation updates 0.2748% of backbone parameters and peaks at 16.48 GB of GPU memory during training on a single A100-40GB. Fine-tuning improves semantic alignment with the human references for both backbones (SBERT cosine similarity 0.4969 for Gemma-7B-LoRA against 0.2828 for the FLAN-T5 baseline; 0.598 against 0.4701 zero-shot for Qwen3.5-4B) and reduces mean toxicity (0.0616 against 0.1231). In a blinded evaluation, three bilingual annotators preferred Gemma-7B-LoRA over FLAN-T5 on relevance, respect and effectiveness (all $$p < 0.001$$; Fleiss’ $$\kappa$$ 0.74–0.80). The automatic metrics are less clear-cut: a fine-tuned FLAN-T5 attains a marginally higher BERTScore F1 (0.8620) than Gemma-7B-LoRA (0.8541), and lexical diversity falls under adaptation for Qwen3.5-4B. A controlled ablation over adapter rank, run identically on both backbones, shows validation loss falling monotonically with rank, with the trend replicating across the two architectures. We report results on a single corpus authored by one research team, and we treat semantic similarity as proximity to a reference response rather than as evidence of persuasive effect; generalisation to other corpora and to deployed moderation settings is untested.

Authors

Institutions

Publication Details

Journal
Discover Computing
Published
2026-11-27
DOI
https://doi.org/10.1007/s10791-026-10624-w
Primary Topic
Hate Speech and Cyberbullying Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Parameter-efficient counter-speech generation for hate speech mitigation in code-mixed Hinglish via large language models

Bhawani Singh Rathore, Sandeep Chaurasia
Discover Computing
Hate Speech and Cyberbullying Detection
article

Parameter-efficient counter-speech generation for hate speech mitigation in code-mixed Hinglish via large language models

Bhawani Singh Rathore, Sandeep Chaurasia
article en

Abstract

Online hate speech in code-mixed languages poses a challenge for online safety that moderation systems built for monolingual text address poorly. This study concerns Hinglish, the variety in which Hindi and English are mixed within a single utterance and the Hindi component is written in Roman script. Counter-speech offers a proactive alternative to content removal, but adapting large language models to generate it is computationally expensive, and code-mixed settings are under-resourced. We curate a custom Hinglish hate-speech–counter-speech corpus of 2,204 human-authored pairs, split 70/20/10 (1,542/441/221 for train/val/test), and apply Low-Rank Adaptation (LoRA) to Gemma-7B using rank-32 adapters on the query and value projections. We extend the comparison to a second recent open-weight backbone, Qwen3.5-4B, evaluated both zero-shot and under identical LoRA adaptation, so that each fine-tuned system is measured against its own base model. Adaptation updates 0.2748% of backbone parameters and peaks at 16.48 GB of GPU memory during training on a single A100-40GB. Fine-tuning improves semantic alignment with the human references for both backbones (SBERT cosine similarity 0.4969 for Gemma-7B-LoRA against 0.2828 for the FLAN-T5 baseline; 0.598 against 0.4701 zero-shot for Qwen3.5-4B) and reduces mean toxicity (0.0616 against 0.1231). In a blinded evaluation, three bilingual annotators preferred Gemma-7B-LoRA over FLAN-T5 on relevance, respect and effectiveness (all $$p < 0.001$$; Fleiss’ $$\kappa$$ 0.74–0.80). The automatic metrics are less clear-cut: a fine-tuned FLAN-T5 attains a marginally higher BERTScore F1 (0.8620) than Gemma-7B-LoRA (0.8541), and lexical diversity falls under adaptation for Qwen3.5-4B. A controlled ablation over adapter rank, run identically on both backbones, shows validation loss falling monotonically with rank, with the trend replicating across the two architectures. We report results on a single corpus authored by one research team, and we treat semantic similarity as proximity to a reference response rather than as evidence of persuasive effect; generalisation to other corpora and to deployed moderation settings is untested.

Discover ComputingVol. 29(1)
Manipal University Jaipur (IN)
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.

Laika access coming soon