<!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>Multilingual Pretrained Models for Ofensive Language Identification in Dravidian Code-Mixed Text</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>Amrithkala M Shetty</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Shazia Mannan</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sharal Coelho</string-name>
          <xref ref-type="aff" rid="aff1">1</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>
        <aff id="aff2">
          <label>2</label>
          <institution>Department of Computer Science, Yenepoya (Deemed to be University)</institution>
          ,
          <addr-line>Bangalore Campus, Karnataka</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2026</year>
      </pub-date>
      <abstract>
        <p>Ofensive language identification in countries like India poses several challenges due to the usage of code-mixed and romanized variants of multiple languages by the users in their posts on social media. The challenge of ofensive language identification on social media for Dravidian languages is harder, considering the low resources available for the same. In this paper, we employed two multilingual transformer-based language models-multilingual BERT (mBERT) and XLM-RoBERTa-to perform ofensive language identification in Dravidian code-mixed languages. The languages in the task are romanized variants of four Dravidian languages: Malayalam, Tamil, Tulu, and Kannada. The proposed methodology makes use of Transfer Learning (TL) based Multilingual Bidirectional Encoder Representations from Transformers (mBERT) model and XLM-RoBERTa. These models achieved macro F1 scores of 0.475, 0.774, 0.453, and 0.819, securing 1st, 1st, 1st, and 2nd ranks for Kannada, Tamil, Tulu, and Malayalam languages, respectively. The proposed models yielded good results and are promising for efective ofensive speech identification in low resource settings.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Multilingual BERT</kwd>
        <kwd>XLM-RoBERTa</kwd>
        <kwd>code-mixed</kwd>
        <kwd>Transfer Learning</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Ofensive speech is defined as speech that causes a person to feel upset, resentful, annoyed, or insulted.
In recent years, social media such as Twitter, Facebook and Reddit have been increasingly used for
the propagation of ofensive speech and the organization of hate and ofense-based activities [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. In a
country like India with multiple native languages, users prefer to use their regional language in their
social media interactions. It has also been identified that users tend to use roman characters for texting
instead of the native script. This poses a severe challenge for the identification of ofensive speech,
considering the under-developed methodologies for handling code-mixed and romanized text.
      </p>
      <p>Until a few years ago, hate and ofensive speech were identified manually which is now an impossible
task due to the enormous amounts of data being generated daily on social media platforms. The need for
scalable automated methods for detecting hate speech has attracted significant research in the domains
of natural language processing and Machine Learning. Researchers develop and experiment with a
variety of techniques and tools such as bag of words models, N-grams, dictionary-based approaches,
and word sense disambiguation techniques. Recent developments in multilingual text classification are
led by Transformer architectures like mBERT and and XLM-RoBERTa.</p>
      <p>An additional advantage of these architectures, particularly XLM-RoBERTa, is that they give good
results even with lower-resource languages, and this particular aspect is beneficial to Indian languages,
which do not have properly established datasets. In our work, we focused on using these architectures
in multiple ways. However, there is a limitation in directly applying these models to romanized or
code-mixed text. The transformer models are trained on languages in their native script, not in the
romanized script in which users prefer to write online.</p>
      <p>This shared task presents a corpus for ofensive language identification of code-mixed text in Dravidian
languages (Tamil-English, Malayalam-English, Kannada-English, and Tulu-English). This task is further
complicated in low-resource languages where limited annotated datasets exist for ofensive speech
detection.</p>
      <p>The paper is organized as follows: Section 2 explores related work, followed by an overview of the
datasets in Section 3. Section 4 details the methodology, and Section 5 analyzes the results. The paper
wraps up with conclusions in Section 6.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>Researchers used a wide variety of techniques for the identification of ofensive languages. Few of the
research studies are described below.</p>
      <p>
        Mishra et al.[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] fine-tuned monolingual and multilingual BERT based network models to achieve
better results in identifying hate speech. Mishra et al.[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] fine-tuned monolingual and multilingual
BERT-based network models to gain more reasonable results in identifying hate speech. Code-mixed
Sentiment Analysis (SA) has gained attention due to the increasing use of multilingual text on content
social media platforms. For Tulu, a low-resource Dravidian language, Hegde et al. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] created a
gold-standard annotated corpus of 7,171 YouTube comments in trilingual code-mixed form
(TuluKannada-English), filling a major gap in resources. Their experiments using baseline ML models on this
dataset demonstrated encouraging results, laying the groundwork for future progress in Tulu SA [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], the paper addresses the identification of ofensive speech in code-mixed and romanized
Dravidian languages (Malayalam, Tamil, and Kannada), a challenging task due to low-resources settings.
The study explores zero-shot and few-shot learning with multilingual models, primarily XLM-RoBERTa
and mBERT1, enhanced through selective translation, transliteration, fine-tuning, and ensembling.
Additionally, interlanguage, inter-task, and multi-task transfer learning strategies are employed to use
English resources. The proposed approaches achieve strong results, demonstrating their efectiveness
for ofensive speech detection in low-resource multilingual contexts. The work [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] proposes an ensemble
deep learning model combining CNN and DNN for hate speech and ofensive post detection in Malayalam
and Tamil code-mixed and script-mixed MIoT texts. Using word-level, character-level, and Term
Frequency-Inverse Document Frequency features, the model achieved better performance with weighted
F1-scores of 0.91 (Tamil code-mixed), 0.78 (Malayalam code-mixed), and 0.95 (Malayalam script-mixed).
      </p>
      <p>
        The work [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] introduces a multilingual, manually annotated dataset of over 60,000 YouTube comments
in Tamil-English (44k), Kannada-English (7k), and Malayalam-English (20k) for SA and ofensive
language identification. The dataset, covering diverse code-mixing phenomena, was annotated by
volunteers with high inter-annotator agreement. The paper [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] proposes a multi-head attention-based
model for detecting ofensive content in code-mixed Tamil social media comments. Features extracted
from the attention model are classified using multiple algorithms, and final predictions are refined
through majority voting. Evaluated on the HASOC 2021 Tamil CodeMix dataset (Task 2–Subtask 1), the
system achieved a weighted F1 score of 0.83, securing 3rd place in the oficial rankings.
      </p>
      <p>Limited research has been conducted on ofensive language identification for Dravidian languages to
date. This work addresses the existing research gap by developing methods for identifying ofensive
speech in Dravidian languages. The proposed systems are designed to be adaptable, with potential
extensions to other Indian and international languages.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Task Description</title>
      <p>This shared task presents a gold-standard dataset for ofensive language detection in Tamil, Malayalam,
Kannada, and Tulu, enabling researchers to develop robust classification models. The more details of
the shared task are displayed in the task website 2. The dataset consists of social media comments and
posts that are categorized into four classes:
1http://huggingface.co/google-bert/bert-base-multilingual-cased
2https://dravidian-codemix.github.io/2025/
• Not Ofensive (NO): Content without any ofensive elements.
• Ofensive Untargeted (OU): Ofensive content that is not directed at a specific individual or entity.
• Ofensive Targeted (OT): Direct attacks on an individual or group, including hate speech targeting
a community, ethnicity, caste, or gender.
• Not Tamil/Not Malayalam/Not Kannada/Not Tulu (NT): Content that does not contain the Tamil,</p>
      <p>Malayalam, Kannada, or Tulu languages.</p>
      <p>The primary goal of this shared task is to build and evaluate systems that can automatically classify
social media text into these four categories. Participants will be provided with training, development,
and test datasets to develop their models. Given the real-world class imbalance in ofensive content,
models must be designed to handle the skewed distribution of data efectively.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Methodology</title>
      <p>In this study, we employed two multilingual transformer-based language models–multilingual BERT
(mBERT) and XLM-RoBERTa–to perform multilingual text classification tasks. These models are selected
due to their proven eficacy in handling diverse languages and contextual embeddings. To address
potential class imbalance in the dataset, we experimented with class weighting techniques during
training, which adjust the loss function to penalize misclassifications of underrepresented classes more
heavily. Specifically, class weights were computed inversely proportional to the class frequencies in the
training data.</p>
      <p>• mBERT with class weights : This setup utilized the base mBERT model
(bert-base-multilingualcased) fine-tuned with class weights applied to the cross-entropy loss. This configuration yielded
the best overall performance, achieving superior accuracy, F1-score, and generalization across
languages, likely due to mBERT’s balanced multilingual pre-training combined with efective
handling of class imbalance.
• XLM-RoBERTa with class weights: We fine-tuned the base XLM-RoBERTa model
(xlm-robertabase) incorporating the same class weighting strategy. While it demonstrated strong results,
particularly in cross-lingual transfer, it underperformed compared to the mBERT variant with
weights, possibly owing to diferences in pre-training objectives (e.g., XLM-RoBERTa’s focus
on masked language modeling across more languages but with less emphasis on next-sentence
prediction).
• mBERT without class weights: This served as a baseline, fine-tuning mBERT without any class
weighting, relying solely on standard cross-entropy loss. This approach resulted in noticeably
diferent predictions, with a bias toward majority classes and reduced performance on minority
classes, highlighting the importance of class weights in mitigating imbalance issues.</p>
      <p>
        These models are fine-tuned for ofensive language detection. This involves training the model on
taskspecific labeled data. During both pretraining and fine-tuning, the model utilizes attention mechanisms
to process the input text. It considers the context of each word by attending to its surrounding words,
capturing long-range dependencies efectively. Thus, mBERTmodel is designed to provide a powerful
and flexible framework for multilingual NLP tasks such as SA[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], named entity recognition, and language
identification, utilizing its pre-trained knowledge and ability to handle code-mixed text efectively with
the multilingual support.
      </p>
    </sec>
    <sec id="sec-5">
      <title>5. Experiments and Results</title>
      <p>Statistics of the dataset provided by the organizers of the shared task for the Ofensive Language
Identification in Dravidian Languages for Tasks are shown in Tables 1. bert-base-multilingual-cased- a
mBERT model from the huggingface repository is used to extract the feature vectors. After loading
the pre-trained mBERT model with its default parameter values, the model is frozen to prevent further
updates to its weights.</p>
      <p>The models are evaluated based on weighted F1 scores by incorporating class weights. Among the
proposed models, mbert model with weights obtained better results. The proposed models obtained
macro F1 scores of 0.475, 0.774, 0.453, and 0.819, securing 1st, 1st, 1st, and 2nd ranks for Kannada, Tamil,
Tulu, and Malayalam languages, respectively.</p>
      <p>From the Table 2, it is clear that the submitted predictions has exhibited better weighted F1 scores
comparing to other teams by securing top ranks. The proposed methodology has still exhibited low
macro F1 score for Kannada and Tamil text. The performance of the classifier across all four languages
is illustrated using confusion matrices in Figure 1. These matrices highlight not only the correctly
classified samples along the diagonal, but also the types of misclassifications that occur between classes.
It can be observed that most of the wrong classifications are due to lack of context. Table 3 shows the
sample text from Tulu and Kannada labeled Test sets along with their the actual and predicted labels.
The proposed model achieved lower macro F1 scores for Kannada and Tulu compared to the other two
languages evaluated. This reduced performance can be attributed to the significantly smaller dataset
sizes available for Kannada and Tulu as shown in Table 1. The limited training data likely hindered the
model’s ability to actually capture the linguistic nuances and code-mixed patterns prevalent in these
low-resource languages.</p>
      <p>(a) Kannada</p>
      <p>(b) Malayalam
(c) Tamil
(d) Tulu</p>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusion</title>
      <p>
        This paper describes the models submitted to the shared task ”Ofensive Language Identification in
Dravidian Languages” at FIRE 2025 [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. The proposed methodology makes use of Transfer Learning
(TL) based Multilingual Bidirectional Encoder Representations from Transformers (mBERT) model and
XLM-RoBERTa. These models achieved macro F1 scores of 0.475, 0.774, 0.453, and 0.819, securing 1st,
1st, 1st, and 2nd ranks for Kannada, Tamil, Tulu, and Malayalam languages, respectively. The proposed
models yielded good results and are promising for efective ofensive speech identification in low
resource settings.
      </p>
    </sec>
    <sec id="sec-7">
      <title>Declaration on Generative AI</title>
      <p>During the preparation of this work, the author(s) used Chat GPT-4 in order to:Grammar and spelling
check. Using this tool, the author(s) reviewed and edited the content as needed and take full responsibility
for the publication’s control</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A.</given-names>
            <surname>Hegde</surname>
          </string-name>
          , G. Kavya,
          <string-name>
            <given-names>S.</given-names>
            <surname>Coelho</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. L.</given-names>
            <surname>Shashirekha</surname>
          </string-name>
          , Mucs@ dravidianlangtech2023:
          <article-title>leveraging learning models to identify abusive comments in code-mixed dravidian languages</article-title>
          ,
          <source>in: Proceedings of the Third Workshop on Speech and Language Technologies for Dravidian Languages</source>
          ,
          <year>2023</year>
          , pp.
          <fpage>266</fpage>
          -
          <lpage>274</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>S.</given-names>
            <surname>Mishra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Mishra</surname>
          </string-name>
          , 3idiots at hasoc 2019:
          <article-title>Fine-tuning transformer neural networks for hate speech identification in indo-european languages</article-title>
          .,
          <source>in: FIRE (working notes)</source>
          ,
          <year>2019</year>
          , pp.
          <fpage>208</fpage>
          -
          <lpage>213</lpage>
          .
        </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>M. D.</given-names>
            <surname>Anusha</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Coelho</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. L.</given-names>
            <surname>Shashirekha</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B. R.</given-names>
            <surname>Chakravarthi</surname>
          </string-name>
          ,
          <article-title>Corpus creation for sentiment analysis in code-mixed Tulu text</article-title>
          , in: M.
          <string-name>
            <surname>Melero</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Sakti</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          Soria (Eds.),
          <source>Proceedings of the 1st Annual Meeting of the ELRA/ISCA Special Interest Group on Under-Resourced Languages, European Language Resources Association</source>
          , Marseille, France,
          <year>2022</year>
          , pp.
          <fpage>33</fpage>
          -
          <lpage>40</lpage>
          . URL: https://aclanthology.org/
          <year>2022</year>
          .sigul-
          <volume>1</volume>
          .5/.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <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>P.</given-names>
            <surname>Lamani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. L.</given-names>
            <surname>Shashirekha</surname>
          </string-name>
          , et al.,
          <string-name>
            <surname>Mucsd</surname>
          </string-name>
          @ dravidianlangtech2023:
          <article-title>Predicting sentiment in social media text using machine learning techniques</article-title>
          ,
          <source>in: Proceedings of the Third Workshop on Speech and Language Technologies for Dravidian Languages</source>
          ,
          <year>2023</year>
          , pp.
          <fpage>282</fpage>
          -
          <lpage>287</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>S.</given-names>
            <surname>Sai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Sharma</surname>
          </string-name>
          ,
          <article-title>Towards ofensive language identification for dravidian languages</article-title>
          ,
          <source>in: Proceedings of the first workshop on speech and language technologies for Dravidian languages</source>
          ,
          <year>2021</year>
          , pp.
          <fpage>18</fpage>
          -
          <lpage>27</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>A.</given-names>
            <surname>Kumar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Saumya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Singh</surname>
          </string-name>
          ,
          <article-title>Detecting dravidian ofensive posts in miot: A hybrid deep learning framework</article-title>
          ,
          <source>ACM Transactions on Asian and Low-Resource Language Information Processing</source>
          (
          <year>2023</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>B. R.</given-names>
            <surname>Chakravarthi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Priyadharshini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Muralidaran</surname>
          </string-name>
          , et al.,
          <article-title>Dravidiancodemix: sentiment analysis and ofensive language identification dataset for dravidian languages in code-mixed text</article-title>
          ,
          <source>Language Resources and Evaluation</source>
          <volume>56</volume>
          (
          <year>2022</year>
          )
          <fpage>765</fpage>
          -
          <lpage>806</lpage>
          . URL: https://doi.org/10.1007/s10579-022-09583-7. doi:
          <volume>10</volume>
          .1007/s10579-022-09583-7.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>S.</given-names>
            <surname>Divya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Sripriya</surname>
          </string-name>
          ,
          <article-title>Transformer based model for ofensive content recognition in dravidian languages</article-title>
          ,
          <source>Brazilian Journal of Development</source>
          <volume>9</volume>
          (
          <year>2023</year>
          )
          <fpage>30656</fpage>
          -
          <lpage>30667</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>N.</given-names>
            <surname>Sripriya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B. R.</given-names>
            <surname>Chakravarthi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Durairaj</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Bharathi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. C.</given-names>
            <surname>Navaneethakrishnan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. K.</given-names>
            <surname>Kumaresan</surname>
          </string-name>
          ,
          <string-name>
            <surname>A. M D</surname>
            , P. R. Hegde,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Vikram</surname>
          </string-name>
          ,
          <article-title>Overview of the shared task on ofensive language identification in dravidian code-mixed languages, in: Forum of Information Retrieval and Evaluation FIRE-</article-title>
          <year>2025</year>
          ,
          <year>2025</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>