<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>HASOC-Meme: Enhancing Hate Speech Recognition in Bengali, Hindi, Gujarati, and Bodo Memes Using Multimodal Multitask Transformers</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Asha Hegde</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sharal Coelho</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Amrithkala M Shetty</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Applications, Nitte Institute of Professional Education, Nitte (Deemed to be University)</institution>
          ,
          <addr-line>Karnataka</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Department of Computer Science, Mangalore University</institution>
          ,
          <country country="IN">India</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2026</year>
      </pub-date>
      <abstract>
        <p>The advancement of memes as a medium for communication on social media has introduced challenges in detecting hate speech and ofensive content, particularly in multilingual contexts like India, where languages such as Bengali, Hindi, Gujarati, and Bodo are prevalent. The proposed work is addressed by our team, NLPFusion, by focusing on identifying hate speech in memes across these four Indic languages. This study ofers a multimodal multitask transformer framework to enhance hate speech recognition in memes, integrating advanced vision and language models. For Bangla memes, we employ ConvNeXt-small, a state-of-the-art convolutional architecture inspired by transformers, to extract robust semantic visual features. ResNet-34 is used for Hindi and Bodo memes, while ResNet-18 is applied for Gujarati memes. Textual data is processed using transformer-based models with domain-specific pre-training to handle linguistic diversity and code-mixed content. Evaluated on the HASOC-Meme dataset, the model achieved macro F1-scores of 0.634 (Gujarati, 2nd), 0.631 (Bodo, 1st), 0.623 (Hindi, 2nd), and 0.608 (Bangla, 5th). These results demonstrate the framework's efectiveness in addressing the complexities of multimodal, multilingual hate speech detection, ofering a scalable solution for safer online environments.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Hate Speech</kwd>
        <kwd>HASOC</kwd>
        <kwd>Multimodal</kwd>
        <kwd>Multitask Learning</kwd>
        <kwd>Transformer</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Social media sites like Twitter and Facebook have become hugely popular because they are so easy to
use and are so extensively available, providing users with an influential platform for articulating their
opinions [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Users across all age groups are actively participating on these sites, regularly documenting
and sharing aspects of their everyday lives, which adds to an ever-increasing amount of user-generated
content. While there are numerous benefits to social media, it is not without its disadvantages. A
considerable amount of ofensive and damaging content—such as hate speech—is available online, which
has serious societal implications [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Online toxic content can compromise democratic processes. Most
social media platforms have started actively policing the content their users share. This development
has necessitated a rising demand for automated systems that can identify and mark as suspicious or
potentially harmful posts [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Therefore, online societies, technology firms, and social media platforms
are making significant investments in software and technologies to detect and govern abusive speech
in order to create more secure online spaces.
      </p>
      <p>The detection of hate speech more and more requires the examination of multimodal data, since
toxic online content tends to take advantage of the integration of text and images to express hateful
messages in veiled or coded ways. In most cases, the textual information by itself can look harmless,
without any overt signs of hate or ofense. Likewise, a linked image, when examined independently,
can look harmless or unclear. When presented separately, however, these two modalities may provide a
powerful yet deeply ofensive composite message. Examining both text and image content at the same
time allows for a better understanding of the environment in which hate speech is embedded [4].</p>
      <p>Multimodal analysis can pick up on subtle or hidden hateful messages that may otherwise pass
undetected. Hence, merely the textual data cannot be suficient to judge them as images may provide
additional context in order to make an accurate judgement. Hence, it is crucial to build systems
which are capable of interpreting and processing multimodal inputs properly in order to detect online
hate speech accurately [5]. These systems can dramatically improve the reliability and accuracy of
content moderation tools to identify and deal with ofensive content accurately in a timely manner.
This is essential in developing safer and more welcoming virtual spaces. In the process of stifling the
dissemination of toxic, injurious, and hateful content on social media and virtual societies, multimodal
hate speech detection ultimately helps safeguard democratic dialogue, user wellness, and social concord
in the digital world.</p>
      <p>In this paper we employed domain-specific pre-training to handle the linguistic diversity and cultural
nuances of the target languages, ensuring efective processing of code-mixed text and contextually rich
visual content. This work aims to contribute to safer online environments by providing an eficient and
scalable solution for automated hate speech detection in multilingual memes, addressing a critical need
in the context of India’s diverse linguistic landscape.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>Hate speech detection is a recognized research issue among researchers of diferent languages [ 6][7].
Most of the hate speech detection systems are developed based on textual data, which is collected
from social media and other digital resources. Some works are also performed concerning the
lowresource languages [8][9] [9]. Earlier researchers widely used Recurrent Neural Networks (RNN),
Long Short-Term Memory (LSTM) Networks, and the combination of RNN and Convolutional Neural
Network (CNN) based methods. In contrast to the text-based analysis, in recent years, few pieces of
work have considered multimodal information (i.e., image + text) for hate speech detection. Kiela et
al.[10] presented a multimodal memes dataset for detecting hate speech. In another work,</p>
      <p>Several approaches are employed for detecting hate speech using multimodal learning. Rana and
Jha [11] introduced a multimodal hate speech dataset concerning three modalities (i.e., image, text,
and audio). Similarly, Karim et al. [12] created a dataset for multimodal hate speech detection from
Bengali memes. Some researchers exploited the diferent fusion techniques (i.e., early and late fusion)
to evaluate the image and textual features jointly.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Task Description</title>
      <p>The HASOC 2025 shared Task provide meme for abuse, sentiment, sarcasm, vulgarity detection. The
task is to analyze multimodal data (text and image) in order to detect abuse, find targeted communities,
measure vulgarity and sarcasm, and determine sentiment labels [13], [14]. Therefore, the task will be
divided into five parts.</p>
      <p>1. Sentiment detection: It is a multi-class classification task containing 3 labels: Positive, Neutral,
and Negative. The meme is imparting a positive, funny, or grateful tone / or it is not extremely
positive or negative in tone / or the meme conveys hostility, mockery, or criticism.
2. Sarcasm Detection: It is a binary classification task containing 2 classes, namely, Sarcastic and
Non-Sarcastic. The meme ofers statements or images that convey the opposite of their literal
sense, sometimes to ridicule or scof, and is labelled as Sarcastic. The meme clearly communicates
its message in a non-sarcastic or non-ironic manner and is labelled as Non-Sarcastic.
3. Vulgarity Detection: It is a binary classification task containing 2 classes, namely, Vulgar and Not
Vulgar. Vulgar - The meme has ofensive or insulting words, gestures, or images. Not Vulgar
The meme does not carry any such material.
4. Abuse Detection: It is a binary classification task containing 2 classes, namely, Abusive and
Not abusive. Abusive - The meme carries ofensive, hurtful, or insulting language, images, or
suggestion against a person or a group of people. Not abusive - The meme has no abusive,
ofensive, harmful, or pejorative content.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Methodology</title>
      <sec id="sec-4-1">
        <title>4.1. Pre-processing</title>
        <p>In the proposed work few computational models have been explored to identify hateful memes by
considering the combination of image and text modalities. This section briefly discusses the methods
and parameters utilized to construct the models.</p>
        <p>The methodology includes preprocessing for the two modalities–text and images. Each requires specific
pre-processing techniques, as outlined below.</p>
        <p>(a) Image Preprocessing : In order to improve the visual encoder’s generalization capability, the
following series of augmentation methods were used on images while training:
• Random Resized Crop: Randomly resizes and crops the image to 224×224 with the scaling factor
ranging between 0.8–1.0 to mimic diverse zoom factors.
• Random Horizontal Flip: Adds left-right flipping to enhance orientation invariance.
• Color Jitter: Randomly alters brightness, contrast, and saturation by ±0.2.
• Random Rotation (±15°) and Afine Transformations: Provides strength to geometric distortions.
• Normalization: Images are normalized at last with ImageNet statistics.</p>
        <p>(b) Text Preprocessing Optical Character Recognition (OCR) text extracted was pre-processed to
minimize noise:
• Indic Normalization: Bangla text was normalized with the Indic NLP Library (if available), which
manages canonical variations and cleans from inconsistencies in Unicode representations.
• Noise Removal: Special characters and duplicate punctuation were deleted, without losing strong
sentiment markers such as ! and ?.
• Lowercasing and Stripping: Text was put into lowercase and stripped of extra spaces for
uniformity.</p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Text Encoder</title>
        <p>The text encoder is responsible for encoding the semantic and contextual information of the input
text. The raw text is first tokenized into subword units, enabling the model to represent rare words
and cope with morphologically complex language efectively. Each token is later embedded into a
high-dimensional space and subjected to several layers of a transformer-based model, which employs
self-attention to capture long-range dependencies and contextual relationships between words.
• Bangla - For Bangla Language, we used XLM-RoBERTa Large1, a transformer-based multilingual
language model pre-trained on massive CommonCrawl corpora. It employs subword tokenization,
allowing eficient processing of Bangla’s rich morphology and intricate word constructions. The
input sequence is encoded as contextual embeddings, and the special classification token is taken
out to capture the global semantic sense. Fine-tuning upper layers guarantees adaptation to
Bangla-specific factors like script diferences and contextual sentiment indicators.
• Hindi - We employed Hindi-RoBERTa, a transformer model pre-trained on large-scale Hindi
corpora, for Hindi. Its monolingual nature enables it to acquire detailed linguistic and semantic
properties particular to Hindi, such as dealing with compound words, gender markers, and
honorifics. With the use of strong contextual embeddings, the encoder yields robust representations
for Hindi social media text that may contain code-mixed and colloquial content.
1https://huggingface.co/FacebookAI/xlm-roberta-large
• Gujarati2 - For Gujarati, we used Gujarati-BERT, a transformer model that has been specifically
pre-trained on Gujarati text. The model is aided by a subword-level tokenizer that efectively
deals with Gujarati’s script and morphological richness. Its embeddings capture syntactic as well
as semantic information and thus perform well in modeling subtle expressions, idiomatic uses,
and sentiment-carrying indicators frequently encountered in Gujarati discourse. Fine-tuning
further brings the encoder in line with downstream classification tasks.
• Bodo - For Bodo, we used Multilingual BERT (mBERT), which is trained on 104 languages’
Wikipedia texts. With its shared subword vocabulary, it generalizes to low-resource languages
such as Bodo, in which there are no large annotated corpora. The encoder generates contextual
embeddings that reflect sentence-level semantics, and fine-tuning enables it to adjust to the
particular syntactic and semantic characteristics of Bodo text. This makes it suitable for tasks
such as sentiment and abuse detection in resource-limited settings.</p>
      </sec>
      <sec id="sec-4-3">
        <title>4.3. Image encoder</title>
        <p>For Bangla memes, we used ConvNeXt-small, a state-of-the-art convolutional architecture motivated by
transformer design yet refined for CNN eficacy. ConvNeXt uses depthwise convolutions, deep kernel
sizes, and layer normalization to create extensive hierarchical representations of visual information. By
adjusting fine-grained upper layers on the meme dataset without keeping pretrained lower-level filters,
the encoder derives strong semantic features such as objects, context, and backgrounds that help form
the sentiment or intent of the meme.</p>
        <p>We employed ResNet-34, a residual network architecture with 34 layers, for Hindi memes. ResNet’s
skip connections address the vanishing gradient problem, allowing deeper feature learning without
loss of performance. The encoder successfully extracts both low-level (edges, textures) and high-level
(objects, scenes) visual features, which are essential in inferring humor, sarcasm, or abuse hidden in the
images.</p>
        <p>For Gujarati memes, we used ResNet-18, a light residual network of 18 layers. Although less deep
than ResNet-34, it ofers adequate feature extraction strength for the comparatively smaller dataset size.
The encoder retains key visual patterns while providing computational frugality, allowing for quicker
training and lowered danger of overfitting on resource-limited Gujarati meme data.</p>
        <p>For Bodo memes, we also used ResNet-34 as the image encoder. The structure of this architecture has
a good balance between computational power and strong representational ability, hence appropriate
for medium-resource tasks. Its hierarchical residual blocks allow salient features, like characters and
symbolic hints, to be extracted from an image, enhancing textual knowledge in memes for proper
classification.</p>
      </sec>
      <sec id="sec-4-4">
        <title>4.4. Fusion strategy</title>
        <p>Multimodal fusion of text and image features was conducted using the late fusion strategy. The text
encoder and image encoder’s output embeddings were first used. To be compatible with various
architectures and dimensionalities, both the embeddings were projected into one shared latent space via fully
connected layers. After being aligned, the text and image representations projected were concatenated
to create a shared multimodal feature vector. The combined representation was then fed through a
feed-forward projection layer and onto ReLU and dropout (p = 0.5) for overfitting prevention and
generalization improvement. This approach enables the model to integrate complementary information
from the textual and visual modalities eficiently, supporting strong classification in any language and
meme sets.
2https://huggingface.co/l3cube-pune/gujarati-bert</p>
      </sec>
      <sec id="sec-4-5">
        <title>4.5. Model Building</title>
        <sec id="sec-4-5-1">
          <title>4.5.1. Multi-task learning</title>
          <p>The fused representation was passed to four parallel classification heads for multi-task learning:
• Sentiment Classification: 3 classes (Positive, Neutral, Negative)
• Sarcasm Detection: 2 classes (Sarcastic, Non-Sarcastic)
• Vulgarity Detection: 2 classes (Vulgar, Non Vulgar)
• Abuse Detection: 2 classes (Abusive, Non-abusive)</p>
        </sec>
        <sec id="sec-4-5-2">
          <title>4.5.2. Loss Function and Optimization</title>
          <p>A Focal Loss with class-specific weights was used to handle severe class imbalance. Dynamic
taskspecific loss weighting was applied during training, where tasks with lower F1 scores received higher
weights in subsequent epochs. AdamW with diferential learning rates (1e-5 for encoders, 2e-5 for
classification layers) is used to build the model. Further, Learning Rate Scheduler (Linear Warmup +
Decay) is employed. Gradient Clipping and gradient accumulation were used to stabilize training under
limited GPU memory. The additional hyperparameters used in the multimodal experiments are shown
in Table1</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Experiments and Result</title>
      <p>The experiments were conducted using the HASOC-Meme dataset, which includes memes in Bengali,
Hindi, Gujarati, and Bodo, each comprising text and image modalities. The model was implemented
using PyTorch and the Hugging Face Transformers library.</p>
      <p>To ensure reproducibility and robustness, experiments were conducted with multiple random seeds
(42, 123, and 456). For each configuration, the models were trained and evaluated across all four
downstream tasks. The best-performing model was selected based on the average macro F1 score,
providing a balanced measure of performance across diferent classes. This selected model was then
used to generate predictions on the final test sets, ensuring consistency and reliability in the reported
results.</p>
      <p>The performance of the proposed multimodal multitask transformer model on the HASOC-Meme
dataset is summarized in the table 2, based on macro F1-scores and corresponding ranks in the shared
task.</p>
      <p>The model achieved the highest performance on Gujarati with F1-score of 0.63436 and Bodo obtained
F1-score of 0.63128, securing 2nd and 1st ranks, respectively, in the HASOC-meme shared task. Hindi
memes yielded a strong F1-score of 0.62398, also ranking 2nd. Bangla memes, despite the advanced
ConvNeXt-small architecture, obtained an F1-score of 0.60834, placing 5th, likely due to the complexity
of semantic features in Bangla meme imagery. The results highlight the efectiveness of tailored
image encoders (ConvNeXt-small, ResNet-34, ResNet-18) and the multitask framework in handling the
linguistic and visual diversity of multilingual memes.</p>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusion</title>
      <p>This study introduced a multimodal multitask transformer framework for hate speech and ofensive
content identification in the HASOC-meme dataset, covering Bengali, Hindi, Gujarati, and Bodo memes.
By incorporating advanced image encoders such as ConvNeXt-small for Bangla, ResNet-34 for Hindi
and Bodo, and ResNet-18 for Gujarati along with a fine-tuned IndicBERT text encoder, the model
efectively grasped the interplay of visual and textual cues in multilingual memes. The multitask
learning approach, optimizing for hate speech detection, ofensive content classification, and sentiment
analysis, improved generalization across various linguistic and cultural contexts. The model achieved
top ranks in the HASOC-meme shared task, with F1-scores of 0.63436 (Gujarati, 2nd), 0.63128 (Bodo,
1st), 0.62398 (Hindi, 2nd), and 0.60834 (Bangla, 5th). These results highlight the framework’s ability to
address the complexities of multimodal hate speech detection in low-resource Indic languages.</p>
    </sec>
    <sec id="sec-7">
      <title>Declaration on Generative AI</title>
      <p>In preparing this work, the author(s) utilized Grok3 for grammar and spelling checks. Paraphrasing
was handled via QuillBot. With this tool, the author(s) reviewed and revised the content as required,
while assuming full responsibility for the publication’s integrity.
[4] N. Marutyan, A. Jouljian, The hateful memes challenge: Detecting hate speech in multi-modal
memes (2024).
[5] A. Naseeb, M. Zain, N. Hussain, A. Qasim, F. Ahmad, G. Sidorov, A. Gelbukh, Machine learning-and
deep learning-based multi-model system for hate speech detection on facebook, Algorithms 18
(2025) 331.
[6] T. Ranasinghe, K. Ghosh, A. S. Pal, A. Senapati, A. E. Dmonte, M. Zampieri, S. Modha, S. Satapara,
Overview of the hasoc subtracks at fire 2023: Hate speech and ofensive content identification in
assamese, bengali, bodo, gujarati and sinhala, in: Proceedings of the 15th annual meeting of the
forum for information retrieval evaluation, 2023, pp. 13–15.
[7] F. Alkomah, X. Ma, A literature review of textual hate speech detection methods and datasets,</p>
      <p>Information 13 (2022) 273.
[8] B. Mathew, P. Saha, S. M. Yimam, C. Biemann, P. Goyal, A. Mukherjee, Hatexplain: A benchmark
dataset for explainable hate speech detection, in: Proceedings of the AAAI conference on artificial
intelligence, volume 35, 2021, pp. 14867–14875.
[9] M. Das, A. Mukherjee, Banglaabusememe: A dataset for bengali abusive meme classification, in:
Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, 2023,
pp. 15498–15512.
[10] D. Kiela, H. Firooz, A. Mohan, V. Goswami, A. Singh, P. Ringshia, D. Testuggine, The hateful
memes challenge: Detecting hate speech in multimodal memes, Advances in neural information
processing systems 33 (2020) 2611–2624.
[11] A. Rana, S. Jha, Emotion based hate speech detection using multimodal learning, arXiv preprint
arXiv:2202.06218 (2022).
[12] M. R. Karim, S. K. Dey, T. Islam, M. Shajalal, B. R. Chakravarthi, Multimodal hate speech detection
from bengali memes and texts, in: International Conference on Speech and Language Technologies
for Low-resource Languages, Springer, 2022, pp. 293–308.
[13] Koyel Ghosh and Mithun Das and Mwnthai Narzary and Saptarshi Saha and Shubhankar Barman
and Animesh Mukherjee and Sandip Modha and Debasis Ganguly and Utpal Garain and Sylvia Jaki
and Thomas Mandl, Overview of the HASOC Track at FIRE 2025: Abusive Meme Identification
— Shadows Behind the Laughter, in: K. Ghosh, T. Mandl, S. Pal, S. Majumdar, A. Chakraborty
(Eds.), Forum for Information Retrieval Evaluation (Working Notes) (FIRE 2025) December 17-20,
Varanasi , India, CEUR-WS.org, 2025.
[14] Koyel Ghosh and Mithun Das and Sumukh Patel and Nilotpal Bhandary and Alloy Das and Animesh
Mukherjee and Sandip Modha and Debasis Ganguly and Utpal Garain and Sylvia Jaki and Thomas
Mandl, Overview of the HASOC Track at FIRE 2025: Abusive Meme Identification — Shadows
Behind the Laughter, in: FIRE ’25: Proceedings of the 17th Annual Meeting of the Forum for
Information Retrieval Evaluation. December 17-20, Varanasi , India, Association for Computing
Machinery (ACM), New York, NY, USA, 2025.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>S.</given-names>
            <surname>Coelho</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Hegde</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. L.</given-names>
            <surname>Shashirekha</surname>
          </string-name>
          , et al., Mucs@
          <fpage>lt</fpage>
          -edi2023:
          <article-title>Detecting signs of depression in social media text</article-title>
          ,
          <source>in: Proceedings of the Third Workshop on Language Technology for Equality, Diversity and Inclusion</source>
          ,
          <year>2023</year>
          , pp.
          <fpage>295</fpage>
          -
          <lpage>299</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>W.</given-names>
            <surname>Yin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Zubiaga</surname>
          </string-name>
          ,
          <article-title>Towards generalisable hate speech detection: a review on obstacles and solutions</article-title>
          ,
          <source>PeerJ computer science 7</source>
          (
          <year>2021</year>
          )
          <article-title>e598</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A.</given-names>
            <surname>Hegde</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Shashirekha</surname>
          </string-name>
          ,
          <article-title>Transformer-driven multi-task learning for fake and hateful content detection</article-title>
          ,
          <source>in: Proceedings of the 21st International Conference on Natural Language Processing (ICON): Shared Task on Decoding Fake Narratives in Spreading Hateful Stories (Faux-Hate)</source>
          ,
          <year>2024</year>
          , pp.
          <fpage>29</fpage>
          -
          <lpage>35</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>